|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.odesys.chart.LabelHelper
LabelHelper is used internaly to draw the labels of the Charts. The text is drawn at the specified position with the specified alignment. Multiple line text is allowed.
Field Summary | |
static int |
BOTTOM
Constant used to specify alignment to the bottom. |
static int |
CENTER
Constant used to specify alignment to the center. |
static int |
LEFT
Constant used to specify alignment to the left. |
static int |
RIGHT
Constant used to specify alignment to the right. |
static int |
TOP
Constant used to specify alignment to the top. |
Constructor Summary | |
LabelHelper()
Creates a new LabelHelper instance |
|
LabelHelper(java.lang.String text,
int x,
int y,
int horzAlign,
int vertAlign)
Creates a new LabelHelper instance with the specified text, position and alignment. |
Method Summary | |
int |
getHorzAlignment()
Gets the horizontal alignment of this Label |
java.awt.Point |
getPos()
Gets the position of the Label. |
java.awt.Dimension |
getSize(java.awt.FontMetrics fm)
Calculates the size this LabelHelper based on the specified FontMetrics. |
int |
getTextAlignment()
Gets the text alignment of this LabelHelper. |
int |
getVertAlignment()
Gets the vertical alignment of this LabelHelper |
void |
paint(java.awt.Graphics g)
Draws this LabelHelper in the specified Graphics context. |
void |
setHorzAlignment(int horzAlign)
Sets the norizontal alignment of this LabelHelper (e.g. |
void |
setPos(int x,
int y)
Sets the position of this LabelHelper. |
void |
setText(java.lang.String text)
Sets the text of this LabelHelper. |
void |
setTextAlignment(int textAlign)
Sets the text alignment inside this LabelHelper. |
void |
setVertAlignment(int vertAlign)
Sets the vertical alignment of this LabelHelper (e.g. |
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 TOP
public static final int BOTTOM
public static final int CENTER
Constructor Detail |
public LabelHelper()
public LabelHelper(java.lang.String text, int x, int y, int horzAlign, int vertAlign)
Method Detail |
public java.awt.Dimension getSize(java.awt.FontMetrics fm)
public void paint(java.awt.Graphics g)
public void setText(java.lang.String text)
public void setPos(int x, int y)
public java.awt.Point getPos()
public void setHorzAlignment(int horzAlign)
public int getHorzAlignment()
public void setVertAlignment(int vertAlign)
public int getVertAlignment()
public void setTextAlignment(int textAlign)
public int getTextAlignment()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |