|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.chart.plot.CombinedPlot
public class CombinedPlot
A general class for plotting data of different plots.
| Field Summary | |
|---|---|
static int |
COMBINE_MULTIPLE_PLOTS_WITH_COMMON_DATA_AXIS
This combine type allows show several charts side by side. |
static int |
COMBINE_MULTIPLE_PLOTS_WITH_COMMON_GROUP_AXIS
This combine type allows show several charts side by side. |
static int |
COMBINE_ONE_PLOT_WITH_COMMON_DATA_AXIS
This combine type allows show several charts in same plot. |
static int |
COMBINE_ONE_PLOT_WITH_COMMON_GROUP_AXIS
This combine type allows show several charts in same plot. |
static java.lang.String |
TOKEN_COMBINED_PLOT
XML token for a combined plot element. |
| Constructor Summary | |
|---|---|
CombinedPlot()
Creates a empty CombinedPlot. |
|
CombinedPlot(int combineType)
Creates a empty CombinedPlot. |
|
| Method Summary | |
|---|---|
void |
addPlot(AbstractPlot plot)
The list of plots contains either only one unspecified plot or more combinable plots. |
int |
getCombineType()
Returns the combine type. |
BaseDataset |
getDataset()
Returns nothing ( null). |
AbstractPlot |
getPlot(int index)
Returns the chart plot at the specified position in this list. |
java.util.List |
getReferencedObject()
Returns a list of referenced i-net Clear Reports objects: Field or Group |
void |
readProperties(org.w3c.dom.Element element,
Chart2 chart)
Reads the chart properties from the DOMParser Element. |
void |
refreshAutoTitles(Chart2 chart)
Reads out the data column names from dataset and refreshes the chart labels. |
AbstractPlot |
removePlot(int index)
Removes the chart plot at the specified position in this list. |
void |
saveProperties(java.io.PrintWriter out,
int depth)
Writes the properties of this chart plot to PrintWriter. |
void |
setCombineType(int combineType)
Sets the combine type. |
int |
size()
Returns the number of chart plots in this list. |
| Field Detail |
|---|
public static final java.lang.String TOKEN_COMBINED_PLOT
public static final int COMBINE_ONE_PLOT_WITH_COMMON_GROUP_AXIS
public static final int COMBINE_ONE_PLOT_WITH_COMMON_DATA_AXIS
public static final int COMBINE_MULTIPLE_PLOTS_WITH_COMMON_GROUP_AXIS
public static final int COMBINE_MULTIPLE_PLOTS_WITH_COMMON_DATA_AXIS
| Constructor Detail |
|---|
public CombinedPlot()
setCombineType(int)public CombinedPlot(int combineType)
combineType - the type of combining
java.lang.IllegalArgumentException - by unknown combine typesetCombineType(int),
COMBINE_MULTIPLE_PLOTS_WITH_COMMON_GROUP_AXIS,
COMBINE_MULTIPLE_PLOTS_WITH_COMMON_DATA_AXIS,
COMBINE_ONE_PLOT_WITH_COMMON_GROUP_AXIS,
COMBINE_ONE_PLOT_WITH_COMMON_DATA_AXIS| Method Detail |
|---|
public void addPlot(AbstractPlot plot)
BarPlot, LinePlot, AreaPlot or ContinuousAreaPlot, ContinuousBarPlot, ContinuousLinePlot.
plot - the plot to be appended to this list
java.lang.IllegalArgumentException - if this plot is not combinable or by unsupported combination of plots.getPlot(int),
removePlot(int),
size(),
AbstractPlotpublic AbstractPlot removePlot(int index)
index - the index of the plot to removed
java.lang.IndexOutOfBoundsException - if index out of range (index
< 0 || index >= size()).addPlot(AbstractPlot),
getPlot(int),
size(),
AbstractPlotpublic AbstractPlot getPlot(int index)
index - index of plot to return
java.lang.IndexOutOfBoundsException - if index is out of range (index
< 0 || index >= size()).addPlot(AbstractPlot),
removePlot(int),
size(),
AbstractPlotpublic int size()
addPlot(AbstractPlot),
removePlot(int),
getPlot(int)public int getCombineType()
setCombineType(int),
COMBINE_MULTIPLE_PLOTS_WITH_COMMON_GROUP_AXIS,
COMBINE_MULTIPLE_PLOTS_WITH_COMMON_DATA_AXIS,
COMBINE_ONE_PLOT_WITH_COMMON_GROUP_AXIS,
COMBINE_ONE_PLOT_WITH_COMMON_DATA_AXISpublic void setCombineType(int combineType)
combineType - the type.
java.lang.IllegalArgumentException - if unsupported combination of plots.getCombineType(),
COMBINE_MULTIPLE_PLOTS_WITH_COMMON_GROUP_AXIS,
COMBINE_MULTIPLE_PLOTS_WITH_COMMON_DATA_AXIS,
COMBINE_ONE_PLOT_WITH_COMMON_GROUP_AXIS,
COMBINE_ONE_PLOT_WITH_COMMON_DATA_AXISpublic void refreshAutoTitles(Chart2 chart)
refreshAutoTitles in interface ChartPlotchart - the chart
public void saveProperties(java.io.PrintWriter out,
int depth)
PrintWriter.
saveProperties in interface ChartPlotout - the outputdepth - the depth of XML indentpublic java.util.List getReferencedObject()
Field or Group
getReferencedObject in interface ChartPlot
public void readProperties(org.w3c.dom.Element element,
Chart2 chart)
readProperties in interface ChartPlotelement - the DOMParser Elementchart - the chartpublic BaseDataset getDataset()
null).
To gets the datasets of this chart use getPlot(int) abd ChartPlot.getDataset() of each plot.
getDataset in interface ChartPlotChartPlot.getDataset()
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||