OBEROn SDK

com.oberon.ooql.sdk
Class GraphStyler.Series

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

public class GraphStyler.Series
extends java.lang.Object

Chart data series


Constructor Summary
GraphStyler.Series(org.jdom.Element series)
          Defines the series from XML element tree
GraphStyler.Series(java.lang.String name)
          Defines a new series with default color RED
GraphStyler.Series(java.lang.String name, GraphStyler.Color color)
          Defines a new series
 
Method Summary
 void fromXML(org.jdom.Element series)
          Loads the series from XML element tree
 GraphStyler.Color getColor()
          Get the series color
 java.lang.String getName()
          Get the series name / title
 int getPointDim()
          Get the series point dimension for line and area charts
 int getPointStyle()
          Get the series point style for line and area charts; see the POINT STYLE constants
 int getWidth()
          Get the bar / line width
 boolean isDisplayValues()
          Check if data values are visible
 boolean isPointFilled()
          Get the point fill condition for line and area charts
 void setColor(GraphStyler.Color color)
          Set the series point / line / area / bar color
 void setDisplayValues(boolean values)
          Show / Hide the data values
 void setName(java.lang.String name)
          Set the series name / title
 void setPointDim(int size)
          Set the series point dimension for line and area charts
 void setPointFilled(boolean fill)
          Set the point fill style for line and area charts
 void setPointStyle(int style)
          Set the series point style for line and area charts; see the POINT STYLE constants
 void setWidth(int width)
          Set the bar / line width
 org.jdom.Element toXML()
          Return the series as XML element tree
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphStyler.Series

public GraphStyler.Series(java.lang.String name)
Defines a new series with default color RED

Parameters:
name - the series title or name

GraphStyler.Series

public GraphStyler.Series(java.lang.String name,
                          GraphStyler.Color color)
Defines a new series

Parameters:
name - the series title or name
color - the point / line / area / bar color

GraphStyler.Series

public GraphStyler.Series(org.jdom.Element series)
Defines the series from XML element tree

Method Detail

setName

public void setName(java.lang.String name)
Set the series name / title


getName

public java.lang.String getName()
Get the series name / title


setColor

public void setColor(GraphStyler.Color color)
Set the series point / line / area / bar color


getColor

public GraphStyler.Color getColor()
Get the series color


setPointStyle

public void setPointStyle(int style)
Set the series point style for line and area charts; see the POINT STYLE constants


getPointStyle

public int getPointStyle()
Get the series point style for line and area charts; see the POINT STYLE constants


setPointDim

public void setPointDim(int size)
Set the series point dimension for line and area charts


getPointDim

public int getPointDim()
Get the series point dimension for line and area charts


setPointFilled

public void setPointFilled(boolean fill)
Set the point fill style for line and area charts


isPointFilled

public boolean isPointFilled()
Get the point fill condition for line and area charts


setDisplayValues

public void setDisplayValues(boolean values)
Show / Hide the data values


isDisplayValues

public boolean isDisplayValues()
Check if data values are visible


setWidth

public void setWidth(int width)
Set the bar / line width


getWidth

public int getWidth()
Get the bar / line width


toXML

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


fromXML

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


OBEROn SDK

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