|
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.Font
public class GraphStyler.Font
Generic text font
Constructor Summary | |
---|---|
GraphStyler.Font()
|
|
GraphStyler.Font(int font,
int style,
int dimension)
Generate new font |
Method Summary | |
---|---|
void |
fromXML(org.jdom.Element font)
Loads the font parameters from XML element tree |
GraphStyler.Color |
getCharColor()
Get the character color |
int |
getCharDim()
Get the character size |
int |
getCharFont()
Get the font family |
int |
getCharStyle()
Get the font style |
void |
setCharColor(GraphStyler.Color color)
Set the character color (default = Black) |
void |
setCharDim(int dimension)
Set the character size |
void |
setCharFont(int font)
Set the font family |
void |
setCharStyle(int style)
Set the font style |
org.jdom.Element |
toXML(java.lang.String name)
Return the font 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.Font()
public GraphStyler.Font(int font, int style, int dimension)
font
- the font family; see FONT FAMILY constants (default=Arial)style
- the font style; see FONT STYLE constants (default=Normal)dimension
- the character size (default=9)Method Detail |
---|
public void setCharFont(int font)
font
- the font family; see FONT FAMILY constantspublic int getCharFont()
public void setCharStyle(int style)
style
- the font style; see FONT STYLE constantspublic int getCharStyle()
public void setCharDim(int dimension)
public int getCharDim()
public void setCharColor(GraphStyler.Color color)
public GraphStyler.Color getCharColor()
public org.jdom.Element toXML(java.lang.String name)
name
- the root XML tagpublic void fromXML(org.jdom.Element font)
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |