|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oberon.ooql.sdk.GraphStyler.Label
public class GraphStyler.Label
Generic chart label
Constructor Summary | |
---|---|
GraphStyler.Label(org.jdom.Element label)
Generates a label from XML element tree |
|
GraphStyler.Label(java.lang.String text)
Generates a new label with default font placed on the canvas origin (0,0) position |
|
GraphStyler.Label(java.lang.String text,
GraphStyler.Point position)
Generates a new label with default font |
|
GraphStyler.Label(java.lang.String text,
GraphStyler.Point position,
GraphStyler.Font font,
float angle)
Generates a new label |
Method Summary | |
---|---|
void |
fromXML(org.jdom.Element label)
Loads the label parameters from XML element tree |
float |
getAngle()
Get the label rotation angle (degrees) |
GraphStyler.Font |
getFont()
Get the label font |
int |
getHorizontalAlign()
Get the label horizontal alignment |
int |
getHorizontalPos()
Get the label horizontal position on the chart canvas |
GraphStyler.Point |
getPosition()
Get the label position on the chart canvas |
java.lang.String |
getText()
Get the label text |
int |
getVerticalAlign()
Get the label vertical alignment |
int |
getVerticalPos()
Get the label vertical position on the chart canvas |
void |
setAngle(float angle)
Set the label rotation angle (degrees) |
void |
setFont(GraphStyler.Font font)
Set the label font |
void |
setHorizontalAlign(int align)
Set the label horizontal alignment; see the TEXT ALIGNMENT constants |
void |
setHorizontalPos(int position)
Set the label horizontal position on the chart canvas |
void |
setText(java.lang.String text)
Set the label text |
void |
setVerticalAlign(int align)
Set the label vertical alignment; see the TEXT ALIGNMENT constants |
void |
setVerticalPos(int position)
Set the label vertical position on the chart canvas |
org.jdom.Element |
toXML(java.lang.String name)
Return the label parameters as XML element tree |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphStyler.Label(java.lang.String text)
text
- the label textpublic GraphStyler.Label(java.lang.String text, GraphStyler.Point position)
text
- the label textposition
- the label position on the chart canvaspublic GraphStyler.Label(java.lang.String text, GraphStyler.Point position, GraphStyler.Font font, float angle)
text
- the label textposition
- the label position on the chart canvasfont
- the label fontangle
- the rotation anglepublic GraphStyler.Label(org.jdom.Element label)
Method Detail |
---|
public void setText(java.lang.String text)
public java.lang.String getText()
public GraphStyler.Point getPosition()
public void setHorizontalPos(int position)
public int getHorizontalPos()
public void setVerticalPos(int position)
public int getVerticalPos()
public void setFont(GraphStyler.Font font)
public GraphStyler.Font getFont()
public void setAngle(float angle)
public float getAngle()
public void setHorizontalAlign(int align)
public int getHorizontalAlign()
public void setVerticalAlign(int align)
public int getVerticalAlign()
public org.jdom.Element toXML(java.lang.String name)
name
- the root XML tagpublic void fromXML(org.jdom.Element label)
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |