|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.elegantj.graphx.TextAlign
TextAlign class provides the alignment of text to be rendered
| Field Summary | |
static int |
BASELINE
Specifies the constant for baseline alignment |
static int |
BOTTOM
Specifies the constant for bottom alignment |
static int |
CENTER
Specifies the constant for center alignment |
static int |
LEFT
Specifies the constant for left alignment |
static int |
RIGHT
Specifies the constant for right alignment |
static int |
TOP
Specifies the constant for top alignment |
| Constructor Summary | |
TextAlign()
Creates the TextAlign |
|
| Method Summary | |
void |
drawString(GraphicsEx inGraphicsEx,
java.lang.String inString,
java.awt.Color inStrColor,
boolean inBkVisible,
java.awt.Color inBkColor,
int inX,
int inY)
Draws the string with specified graphics at specified location |
java.awt.Polygon |
drawString(GraphicsEx inGraphicsEx,
java.lang.String inString,
java.awt.Color inStrColor,
boolean inBkVisible,
java.awt.Color inBkColor,
int inX,
int inY,
int iangle,
boolean isVertical)
Draws the string with specified graphics at specified location |
void |
drawString(GraphicsEx inGraphicsEx,
java.lang.String inString,
int inX,
int inY)
Draws the string with specified graphics at specified location |
void |
setAlignType(int inAlignType)
Sets the alignment |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int LEFT
public static final int RIGHT
public static final int CENTER
public static final int BASELINE
public static final int TOP
public static final int BOTTOM
| Constructor Detail |
public TextAlign()
| Method Detail |
public void setAlignType(int inAlignType)
inAlignType - the type of the alignment
public void drawString(GraphicsEx inGraphicsEx,
java.lang.String inString,
int inX,
int inY)
inGraphicsEx - the Graphics is used to render the textinString - the text to be renderedinX - the x-coordinate of the text locationinY - the y-coordinate of the text location
public void drawString(GraphicsEx inGraphicsEx,
java.lang.String inString,
java.awt.Color inStrColor,
boolean inBkVisible,
java.awt.Color inBkColor,
int inX,
int inY)
inGraphicsEx - the Graphics is used to render the textinString - the text to be renderedinBkVisible - Background is visible/hideinBkColor - Background colorinX - the x-coordinate of the text locationinY - the y-coordinate of the text location
public java.awt.Polygon drawString(GraphicsEx inGraphicsEx,
java.lang.String inString,
java.awt.Color inStrColor,
boolean inBkVisible,
java.awt.Color inBkColor,
int inX,
int inY,
int iangle,
boolean isVertical)
inGraphicsEx - the Graphics is used to render the textinString - the text to be renderedinBkVisible - Background is visible/hideinBkColor - Background colorinX - the x-coordinate of the text locationinY - the y-coordinate of the text locationiangle - the alingment angle of text
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||