OBEROn SDK

com.oberon.ooql.sdk
Class GraphStyler.Legend

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

public class GraphStyler.Legend
extends java.lang.Object

Chart Legend


Constructor Summary
GraphStyler.Legend()
           
 
Method Summary
 void fromXML(org.jdom.Element legend)
          Loads the legend parameters from XML element tree
 GraphStyler.Color getBgColor()
          Get the legend background color
 GraphStyler.Color getBorderColor()
          Get the legend background color
 GraphStyler.Font getFont()
          Get the legend text font
 GraphStyler.Point getPosition()
          Get the legend position
 java.lang.String getTitle()
          Get the legend title
 void setBgColor(GraphStyler.Color color)
          Set the legend background color
 void setBorderColor(GraphStyler.Color color)
          Set the legend border color
 void setFont(GraphStyler.Font font)
          Set the legend text font
 void setPosition(GraphStyler.Point position)
          Set the legend position
 void setTitle(java.lang.String title)
          Set the legend title
 org.jdom.Element toXML()
          Return the legend parameters as XML element tree
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphStyler.Legend

public GraphStyler.Legend()
Method Detail

setTitle

public void setTitle(java.lang.String title)
Set the legend title


getTitle

public java.lang.String getTitle()
Get the legend title


setPosition

public void setPosition(GraphStyler.Point position)
Set the legend position

Parameters:
position - the point representing the position on the chart canvas

getPosition

public GraphStyler.Point getPosition()
Get the legend position


setBgColor

public void setBgColor(GraphStyler.Color color)
Set the legend background color


getBgColor

public GraphStyler.Color getBgColor()
Get the legend background color


setBorderColor

public void setBorderColor(GraphStyler.Color color)
Set the legend border color


getBorderColor

public GraphStyler.Color getBorderColor()
Get the legend background color


setFont

public void setFont(GraphStyler.Font font)
Set the legend text font


getFont

public GraphStyler.Font getFont()
Get the legend text font


toXML

public org.jdom.Element toXML()
Return the legend parameters as XML element tree


fromXML

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


OBEROn SDK

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