|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oberon.ooql.sdk.GraphStyler.Pie
public class GraphStyler.Pie
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 |
---|
public GraphStyler.Pie(GraphStyler.Point position)
position
- the pie position on the chart canvaspublic GraphStyler.Pie(GraphStyler.Point position, int radius)
position
- the pie position on the chart canvasradius
- the pie external radiuspublic GraphStyler.Pie(org.jdom.Element pie)
Method Detail |
---|
public GraphStyler.Point getPosition()
public void setHorizontalPos(int position)
public int getHorizontalPos()
public void setVerticalPos(int position)
public int getVerticalPos()
public void setLegendHorizPos(int position)
public int getLegendHorizPos()
public void setLegendVertPos(int position)
public int getLegendVertPos()
public GraphStyler.Point getLegendPosition()
public void setExternalRadius(int radius)
public int getExternalRadius()
public void setInternalRadius(int radius)
public int getInternalRadius()
public void setSliceSpace(int space)
public int getSliceSpace()
public void setLabelRadius(int radius)
radius
- the circle radius where the labels are positioned
If radius = -1 (default) the labels are placed externally and values internallypublic int getLabelRadius()
public void setDisplayValues(boolean values)
public boolean isDisplayValues()
public void setDisplayLabels(boolean labels)
public boolean isDisplayLabels()
public void addColor(GraphStyler.Color color)
public void setColor(GraphStyler.Color color, int index)
index
- the slice indexpublic void removeColor(int index)
index
- the slice indexpublic GraphStyler.Color getColor(int index)
index
- the slice indexpublic java.util.Vector<GraphStyler.Color> getColors()
public org.jdom.Element toXML()
public void fromXML(org.jdom.Element label)
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |