Klasse CombinedPlot
java.lang.Object
com.inet.report.chart.plot.CombinedPlot
- Alle implementierten Schnittstellen:
ChartPlot, Serializable
-
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic final intThis combine type allows show several charts side by side.static final intThis combine type allows show several charts side by side.static final intThis combine type allows show several charts in same plot.static final intThis combine type allows show several charts in same plot.static final StringXML token for a combined plot element. -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreates a empty CombinedPlot.CombinedPlot(int combineType) Creates a empty CombinedPlot. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidaddPlot(AbstractPlot plot) The list of plots contains either only one unspecified plot or more combinable plots.intReturns the combine type.Returns nothing (null).getPlot(int index) Returns the chart plot at the specified position in this list.voidreadProperties(Element element, Chart2 chart) Reads the chart properties from the DOMParser Element.voidrefreshAutoTitles(Chart2 chart) Reads out the data column names from dataset and refreshes the chart labels.removePlot(int index) Removes the chart plot at the specified position in this list.voidsaveProperties(PrintWriter out, int depth) Writes the properties of this chart plot toPrintWriter.voidsetCombineType(int combineType) Sets the combine type.intsize()Returns the number of chart plots in this list.
-
Felddetails
-
TOKEN_COMBINED_PLOT
-
COMBINE_ONE_PLOT_WITH_COMMON_GROUP_AXIS
public static final int COMBINE_ONE_PLOT_WITH_COMMON_GROUP_AXISThis combine type allows show several charts in same plot. The common axis is the category axis.- Siehe auch:
-
COMBINE_ONE_PLOT_WITH_COMMON_DATA_AXIS
public static final int COMBINE_ONE_PLOT_WITH_COMMON_DATA_AXISThis combine type allows show several charts in same plot. The common axis is the data axis.- Siehe auch:
-
COMBINE_MULTIPLE_PLOTS_WITH_COMMON_GROUP_AXIS
public static final int COMBINE_MULTIPLE_PLOTS_WITH_COMMON_GROUP_AXISThis combine type allows show several charts side by side. The common axis is the category axis.- Siehe auch:
-
COMBINE_MULTIPLE_PLOTS_WITH_COMMON_DATA_AXIS
public static final int COMBINE_MULTIPLE_PLOTS_WITH_COMMON_DATA_AXISThis combine type allows show several charts side by side. The common axis is the data axis.- Siehe auch:
-
-
Konstruktordetails
-
CombinedPlot
public CombinedPlot()Creates a empty CombinedPlot. The CombinedPlot is a container for CombinablePlot and CombinableContinuousPlot. This allows to display more than one chart in same plot. Sets the default combine type with all charts in one plot and with common category axis.- Seit:
- 8.0
- Siehe auch:
-
CombinedPlot
public CombinedPlot(int combineType) Creates a empty CombinedPlot. The CombinedPlot is a container for CombinablePlot and CombinableContinuousPlot. This allows to display more than one chart in same plot.- Parameter:
combineType- the type of combining- Löst aus:
IllegalArgumentException- by unknown combine type- Seit:
- 8.0
- Siehe auch:
-
-
Methodendetails
-
addPlot
The list of plots contains either only one unspecified plot or more combinable plots. Appends the current plot to the end of this list. Note: you can combine only 2D plot asBarPlot,LinePlot,AreaPlotorContinuousAreaPlot,ContinuousBarPlot,ContinuousLinePlot.- Parameter:
plot- the plot to be appended to this list- Löst aus:
IllegalArgumentException- if this plot is not combinable or by unsupported combination of plots.- Seit:
- 8.0
- Siehe auch:
-
removePlot
Removes the chart plot at the specified position in this list. Shifts any subsequent elements to the left (subtracts one from their indices).- Parameter:
index- the index of the plot to removed- Gibt zurück:
- the plot that was removed from the list.
- Löst aus:
IndexOutOfBoundsException- if index out of range(index < 0 || index >= size()).- Seit:
- 8.0
- Siehe auch:
-
getPlot
Returns the chart plot at the specified position in this list.- Parameter:
index- index of plot to return- Gibt zurück:
- the chart plot at the specified position in this list.
- Löst aus:
IndexOutOfBoundsException- if index is out of range(index < 0 || index >= size()).- Seit:
- 8.0
- Siehe auch:
-
size
public int size()Returns the number of chart plots in this list.- Gibt zurück:
- the number of plots in this list.
- Seit:
- 8.0
- Siehe auch:
-
getCombineType
public int getCombineType()Returns the combine type. Several charts side by side or several charts in a same plot.- Gibt zurück:
- the combine type.
- Seit:
- 8.0
- Siehe auch:
-
setCombineType
public void setCombineType(int combineType) Sets the combine type. This flag controls the charts displayed side by side or in a same plot and the common axis of all charts.- Parameter:
combineType- the type.- Löst aus:
IllegalArgumentException- if unsupported combination of plots.- Seit:
- 8.0
- Siehe auch:
-
refreshAutoTitles
Reads out the data column names from dataset and refreshes the chart labels. Please use this function to refresh the chart labels if the data was be changed.- Angegeben von:
refreshAutoTitlesin SchnittstelleChartPlot- Parameter:
chart- the chart
-
saveProperties
Writes the properties of this chart plot toPrintWriter.- Angegeben von:
savePropertiesin SchnittstelleChartPlot- Parameter:
out- the outputdepth- the depth of XML indent
-
getReferencedObject
- Angegeben von:
getReferencedObjectin SchnittstelleChartPlot- Gibt zurück:
- the list of objects.
-
readProperties
Reads the chart properties from the DOMParser Element.- Angegeben von:
readPropertiesin SchnittstelleChartPlot- Parameter:
element- the DOMParser Elementchart- the chart
-
getDataset
Returns nothing (null). To gets the datasets of this chart usegetPlot(int)abdChartPlot.getDataset()of each plot.- Angegeben von:
getDatasetin SchnittstelleChartPlot- Gibt zurück:
- the dataset.
- Seit:
- 8.0
- Siehe auch:
-