|
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.GraphValues
public class GraphValues
Manages the chart values
Nested Class Summary | |
---|---|
class |
GraphValues.DataLabel
Defines a label for chart label axis or for a pie slice |
Constructor Summary | |
---|---|
GraphValues()
|
|
GraphValues(org.jdom.Element values)
|
|
GraphValues(GraphStyler graphStyler)
Generates random chart values for preview |
|
GraphValues(java.lang.String xmlValues)
|
Method Summary | |
---|---|
void |
addDataLabel(GraphValues.DataLabel label)
Add a label to the label array |
void |
addPieLabels(GraphValues.DataLabel[] labels)
Add labels for a new pie |
void |
addPieValues(double[] values)
Add values for a new pie |
void |
addSeriesValues(double[] values)
Add values for a new series |
void |
fromXML(org.jdom.Element values)
Loads the chart values from XML element tree |
void |
fromXMLData(java.lang.String xmlValues)
Loads the chart values from XML string |
int |
getDataCount()
Return the maximum number of values among all series. |
int |
getDataCount(int pieNdx)
Get the number of values for a given pie |
GraphValues.DataLabel |
getDataLabel(int labelNdx)
Get a label by its label array index |
java.util.Vector<GraphValues.DataLabel> |
getDataLabels()
Return the label array |
double[] |
getLabelValues(int labelNdx)
Get all series values for a specific label |
double |
getMaxSumValue()
Return the maximum summarized value. |
double |
getMaxValue()
Return the absolute maximum among all series values |
double |
getMinValue()
Return the absolute minimum among all series values |
int |
getPieCount()
Get the number of pies |
GraphValues.DataLabel |
getPieLabel(int pieNdx,
int labelNdx)
Get a pie label. |
GraphValues.DataLabel[] |
getPieLabels(int pieNdx)
Get the pie labels |
double[] |
getPieValues(int pieNdx)
Get pie values |
int |
getSeriesCount()
Return the number of series |
double[] |
getSeriesValues(int seriesNdx)
Get the series value array |
java.util.Vector<double[]> |
getValues()
Get all series data |
java.lang.String |
getXMLData()
Return the chart values XML representation |
void |
removeDataLabel(int labelNdx)
Remove a label from the label array |
void |
removePieValues(int pieNdx)
Remove a pie |
void |
removeSeriesValues(int seriesNdx)
Remove a series |
void |
setSeriesValue(int seriesNdx,
int labelNdx,
double value)
Set a series value |
org.jdom.Element |
toXML()
Return the chart values as XML element tree |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphValues()
public GraphValues(java.lang.String xmlValues)
xmlValues
- a String containing the chart values in XML formatpublic GraphValues(org.jdom.Element values)
values
- a XML element tree representing the chart valuespublic GraphValues(GraphStyler graphStyler)
graphStyler
- represents the graph featuresMethod Detail |
---|
public void addSeriesValues(double[] values)
values
- an array containing the valuespublic void setSeriesValue(int seriesNdx, int labelNdx, double value)
seriesNdx
- the series index (>=1)labelNdx
- the label index (index for the value array)value
- the value to setpublic void removeSeriesValues(int seriesNdx)
seriesNdx
- the series index (>=1)public double[] getSeriesValues(int seriesNdx)
seriesNdx
- the series index (>=1)public java.util.Vector<double[]> getValues()
public double[] getLabelValues(int labelNdx)
labelNdx
- the label index
public int getSeriesCount()
public int getDataCount()
public double getMinValue()
public double getMaxValue()
public double getMaxSumValue()
public void addDataLabel(GraphValues.DataLabel label)
public void removeDataLabel(int labelNdx)
labelNdx
- the label indexpublic GraphValues.DataLabel getDataLabel(int labelNdx)
labelNdx
- the label index
If the label is not defined returns "Item<labelNdx+1>"public java.util.Vector<GraphValues.DataLabel> getDataLabels()
GraphValues.DataLabel
spublic void addPieValues(double[] values)
values
- an array containing the valuespublic void removePieValues(int pieNdx)
pieNdx
- the pie indexpublic double[] getPieValues(int pieNdx)
pieNdx
- the pie indexpublic int getPieCount()
public int getDataCount(int pieNdx)
pieNdx
- the pie indexpublic void addPieLabels(GraphValues.DataLabel[] labels)
labels
- an array containing the labelspublic GraphValues.DataLabel[] getPieLabels(int pieNdx)
pieNdx
- the pie indexpublic GraphValues.DataLabel getPieLabel(int pieNdx, int labelNdx)
pieNdx
- the pie indexlabelNdx
- the label index
If label is not defined returns "Pie<pieNdx>-Item<labelNdx+1>"public java.lang.String getXMLData()
public org.jdom.Element toXML()
public void fromXMLData(java.lang.String xmlValues)
public void fromXML(org.jdom.Element values)
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |