OBEROn SDK

com.oberon.ooql.sdk
Class GraphStyler.Font

java.lang.Object
  extended by com.oberon.ooql.sdk.GraphStyler.Font
Enclosing class:
GraphStyler

public class GraphStyler.Font
extends java.lang.Object

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

GraphStyler.Font

public GraphStyler.Font()

GraphStyler.Font

public GraphStyler.Font(int font,
                        int style,
                        int dimension)
Generate new font

Parameters:
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

setCharFont

public void setCharFont(int font)
Set the font family

Parameters:
font - the font family; see FONT FAMILY constants

getCharFont

public int getCharFont()
Get the font family


setCharStyle

public void setCharStyle(int style)
Set the font style

Parameters:
style - the font style; see FONT STYLE constants

getCharStyle

public int getCharStyle()
Get the font style


setCharDim

public void setCharDim(int dimension)
Set the character size


getCharDim

public int getCharDim()
Get the character size


setCharColor

public void setCharColor(GraphStyler.Color color)
Set the character color (default = Black)


getCharColor

public GraphStyler.Color getCharColor()
Get the character color


toXML

public org.jdom.Element toXML(java.lang.String name)
Return the font parameters as XML element tree

Parameters:
name - the root XML tag

fromXML

public void fromXML(org.jdom.Element font)
Loads the font parameters from XML element tree


OBEROn SDK

Copyright © 2008-2014 Mirko Solazzi. All Rights Reserved.