Package com.inet.report.chart.plot
Class ContinuousAreaPlot
java.lang.Object
com.inet.report.chart.plot.AbstractPlot
com.inet.report.chart.plot.StandardPlot
com.inet.report.chart.plot.ContinuousAreaPlot
- All Implemented Interfaces:
ChartPlot,Serializable
A general class for plotting data of groups of values. This plot can
use data from any class that implements the
BaseDataset interface.- Since:
- 8.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inet.report.chart.plot.AbstractPlot
AbstractPlot.GradientSetting -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContinuousAreaStyleDefault chart style with this plot.Fields inherited from class com.inet.report.chart.plot.StandardPlot
ITEM_LABEL_POSITION_BASE, ITEM_LABEL_POSITION_CENTER, ITEM_LABEL_POSITION_INSIDE_OF_MAX, ITEM_LABEL_POSITION_OUTSIDE_OF_MAXFields inherited from class com.inet.report.chart.plot.AbstractPlot
DEFAULT_COLOR_SEQUENCE, DEFAULT_FOREGROUND_ALPHA, DEFAULT_ITEM_LABEL_COLOR, DEFAULT_ITEM_LABEL_FONT, DEFAULT_OUTLINE_COLOR, DEFAULT_OUTLINE_STYLE, DEFAULT_OUTLINE_WIDTH, TOKEN_PLOT -
Constructor Summary
ConstructorsConstructorDescriptionCreates a continuous area plot with default properties.Creates a continuous area plot with defined chart style. -
Method Summary
Modifier and TypeMethodDescriptiongetStyle()Returns the style of this chart, ie. the general category this plot belongs to.voidreadProperties(Element element, Chart2 chart) Reads the chart properties from the DOMParser Element.voidsetCategoryAxis(com.inet.report.chart.axis.ContinuousAxis categoryAxis) Sets a category axis.voidsetDataAxis(ContinuousNumberAxis dataAxis) Sets a data axis of this plot.voidsetStyle(ContinuousAreaStyle style) Sets the chart style of this plot.Methods inherited from class com.inet.report.chart.plot.StandardPlot
getCategoryAxis, getDataAxis, getDataset, getItemLabelPosition, getReferencedObject, getSubProperties, isShowCumulativeValues, refreshAutoTitles, saveSubProperties, setCategoryAxis, setDataAxis, setDataset, setItemLabelPosition, setShowCumulativeValuesMethods inherited from class com.inet.report.chart.plot.AbstractPlot
getBackColor, getColorFormula, getColorSequence, getForegroundAlpha, getGradientSetting, getItemLabelColor, getItemLabelFont, getItemLabelFormat, getItemLabelFormatFormula, getItemShape, getOutlineColor, getOutlineStyle, getOutlineWidth, isColorBySeries, isDrawOutline, isSameColorsForSameGroups, isShowLabel, isShowValue, saveProperties, setBackColor, setColorBySeries, setColorFormula, setColorSequence, setDrawOutline, setForegroundAlpha, setGradientSetting, setItemLabelColor, setItemLabelFont, setItemLabelFormat, setItemLabelFormatFormula, setItemShape, setOutlineColor, setOutlineStyle, setOutlineWidth, setSameColorsForSameGroups, setShowLabel, setShowValue
-
Field Details
-
DEFAULT_AREA_STYLE
Default chart style with this plot.
-
-
Constructor Details
-
ContinuousAreaPlot
public ContinuousAreaPlot()Creates a continuous area plot with default properties.- Since:
- 8.0
-
ContinuousAreaPlot
Creates a continuous area plot with defined chart style. Initializes all properties with default values.- Parameters:
style- the chart style (nullnot permitted)- Since:
- 8.0
- See Also:
-
-
Method Details
-
setCategoryAxis
public void setCategoryAxis(com.inet.report.chart.axis.ContinuousAxis categoryAxis) Sets a category axis. Note: the date chart style supports only aContinuousDateAxis, the number style supports onlyContinuousNumberAxis.- Parameters:
categoryAxis- the category axis (nullnot permitted)- Throws:
IllegalArgumentException- if the axis isnullor from not supported type.- Since:
- 8.0
- See Also:
-
setDataAxis
Sets a data axis of this plot. The data axis shows the summarized values of the data fields.- Parameters:
dataAxis- the data axis (nullnot permitted)- Throws:
IllegalArgumentException- if the axis isnull.- Since:
- 8.0
- See Also:
-
getStyle
Returns the style of this chart, ie. the general category this plot belongs to.- Specified by:
getStylein classStandardPlot- Returns:
- the style
- See Also:
-
setStyle
Sets the chart style of this plot. Note: if you change the chart style from date to number all number are lost.- Parameters:
style- the chart style (nullnot permitted)- Since:
- 8.0
- See Also:
-
readProperties
Reads the chart properties from the DOMParser Element.- Specified by:
readPropertiesin interfaceChartPlot- Overrides:
readPropertiesin classStandardPlot- Parameters:
element- the DOMParser Elementchart- the chart
-