OBEROn SDK

com.oberon.ooql.sdk
Class GraphStyler.TextLine

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

public class GraphStyler.TextLine
extends java.lang.Object

Chart Line with a Label


Constructor Summary
GraphStyler.TextLine(org.jdom.Element textLine)
          Generates the textline from XML element tree
GraphStyler.TextLine(GraphStyler.Label text, GraphStyler.VPoint start, GraphStyler.VPoint end)
           
 
Method Summary
 void fromXML(org.jdom.Element textLine)
          Loads the textline parameters from XML element tree
 GraphStyler.VPoint getEndPosition()
          Get the line end point
 GraphStyler.Label getLabel()
          Get the text label
 int getLineStyle()
          Get the line style
 GraphStyler.VPoint getStartPosition()
          Get the line start point
 void setLineStyle(int style)
          Set the line style
 org.jdom.Element toXML(java.lang.String name)
          Return the textline as XML element tree
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphStyler.TextLine

public GraphStyler.TextLine(GraphStyler.Label text,
                            GraphStyler.VPoint start,
                            GraphStyler.VPoint end)
Parameters:
text - the text label
start - start point
end - end point

GraphStyler.TextLine

public GraphStyler.TextLine(org.jdom.Element textLine)
Generates the textline from XML element tree

Method Detail

getLabel

public GraphStyler.Label getLabel()
Get the text label


getStartPosition

public GraphStyler.VPoint getStartPosition()
Get the line start point


getEndPosition

public GraphStyler.VPoint getEndPosition()
Get the line end point


setLineStyle

public void setLineStyle(int style)
Set the line style

Parameters:
style - the line style; see the LINESTYLE constants

getLineStyle

public int getLineStyle()
Get the line style


toXML

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

Parameters:
name - the root XML tag

fromXML

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


OBEROn SDK

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