OBEROn SDK

com.oberon.ooql.sdk
Class GraphStyler.Pie

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

public class GraphStyler.Pie
extends java.lang.Object

Chart pie


Constructor Summary
GraphStyler.Pie(org.jdom.Element pie)
          Defines the pie from XML element tree
GraphStyler.Pie(GraphStyler.Point position)
          Defines a new pie
GraphStyler.Pie(GraphStyler.Point position, int radius)
          Defines a new pie
 
Method Summary
 void addColor(GraphStyler.Color color)
          Add a slice color
 void fromXML(org.jdom.Element label)
          Loads the pie as XML element tree
 GraphStyler.Color getColor(int index)
          Return a slice color
 java.util.Vector<GraphStyler.Color> getColors()
          Return the slice colors
 int getExternalRadius()
          Get the pie external radius
 int getHorizontalPos()
          Get the pie horizontal position on the chart canvas
 int getInternalRadius()
          Get the pie internal radius
 int getLabelRadius()
          Get the label radial position
 int getLegendHorizPos()
          Get the pie legend horizontal position on the chart canvas
 GraphStyler.Point getLegendPosition()
          Get the pie legend position on the chart canvas
 int getLegendVertPos()
          Get the pie legend vertical position on the chart canvas
 GraphStyler.Point getPosition()
          Get the pie position on the chart canvas
 int getSliceSpace()
          Get the slice space
 int getVerticalPos()
          Get the pie vertical position on the chart canvas
 boolean isDisplayLabels()
          Check if labels are visible
 boolean isDisplayValues()
          Check if data values are visible
 void removeColor(int index)
          Remove a slice color
 void setColor(GraphStyler.Color color, int index)
          Set a slice color
 void setDisplayLabels(boolean labels)
          Show / Hide the labels
 void setDisplayValues(boolean values)
          Show / Hide the data values
 void setExternalRadius(int radius)
          Set the pie external radius (>=20)
 void setHorizontalPos(int position)
          Set the pie horizontal position on the chart canvas
 void setInternalRadius(int radius)
          Set the pie internal radius (default=0).
 void setLabelRadius(int radius)
          Set the label radial position
 void setLegendHorizPos(int position)
          Set the pie legend horizontal position on the chart canvas
 void setLegendVertPos(int position)
          Set the pie legend vertical position on the chart canvas
 void setSliceSpace(int space)
          Set the slice space (default=0)
 void setVerticalPos(int position)
          Set the pie vertical position on the chart canvas
 org.jdom.Element toXML()
          Return the pie as XML element tree
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphStyler.Pie

public GraphStyler.Pie(GraphStyler.Point position)
Defines a new pie

Parameters:
position - the pie position on the chart canvas

GraphStyler.Pie

public GraphStyler.Pie(GraphStyler.Point position,
                       int radius)
Defines a new pie

Parameters:
position - the pie position on the chart canvas
radius - the pie external radius

GraphStyler.Pie

public GraphStyler.Pie(org.jdom.Element pie)
Defines the pie from XML element tree

Method Detail

getPosition

public GraphStyler.Point getPosition()
Get the pie position on the chart canvas


setHorizontalPos

public void setHorizontalPos(int position)
Set the pie horizontal position on the chart canvas


getHorizontalPos

public int getHorizontalPos()
Get the pie horizontal position on the chart canvas


setVerticalPos

public void setVerticalPos(int position)
Set the pie vertical position on the chart canvas


getVerticalPos

public int getVerticalPos()
Get the pie vertical position on the chart canvas


setLegendHorizPos

public void setLegendHorizPos(int position)
Set the pie legend horizontal position on the chart canvas


getLegendHorizPos

public int getLegendHorizPos()
Get the pie legend horizontal position on the chart canvas


setLegendVertPos

public void setLegendVertPos(int position)
Set the pie legend vertical position on the chart canvas


getLegendVertPos

public int getLegendVertPos()
Get the pie legend vertical position on the chart canvas


getLegendPosition

public GraphStyler.Point getLegendPosition()
Get the pie legend position on the chart canvas


setExternalRadius

public void setExternalRadius(int radius)
Set the pie external radius (>=20)


getExternalRadius

public int getExternalRadius()
Get the pie external radius


setInternalRadius

public void setInternalRadius(int radius)
Set the pie internal radius (default=0). If the value is positive, the pie becomes a torus


getInternalRadius

public int getInternalRadius()
Get the pie internal radius


setSliceSpace

public void setSliceSpace(int space)
Set the slice space (default=0)


getSliceSpace

public int getSliceSpace()
Get the slice space


setLabelRadius

public void setLabelRadius(int radius)
Set the label radial position

Parameters:
radius - the circle radius where the labels are positioned If radius = -1 (default) the labels are placed externally and values internally

getLabelRadius

public int getLabelRadius()
Get the label radial position


setDisplayValues

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


isDisplayValues

public boolean isDisplayValues()
Check if data values are visible


setDisplayLabels

public void setDisplayLabels(boolean labels)
Show / Hide the labels


isDisplayLabels

public boolean isDisplayLabels()
Check if labels are visible


addColor

public void addColor(GraphStyler.Color color)
Add a slice color


setColor

public void setColor(GraphStyler.Color color,
                     int index)
Set a slice color

Parameters:
index - the slice index

removeColor

public void removeColor(int index)
Remove a slice color

Parameters:
index - the slice index

getColor

public GraphStyler.Color getColor(int index)
Return a slice color

Parameters:
index - the slice index

getColors

public java.util.Vector<GraphStyler.Color> getColors()
Return the slice colors


toXML

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


fromXML

public void fromXML(org.jdom.Element label)
Loads the pie as XML element tree


OBEROn SDK

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