i-net Clear Reports

com.inet.report.chart.plot
Class AreaPlot

java.lang.Object
  extended by com.inet.report.chart.plot.AbstractPlot
      extended by com.inet.report.chart.plot.StandardPlot
          extended by com.inet.report.chart.plot.AreaPlot
All Implemented Interfaces:
ChartPlot, java.io.Serializable

public class AreaPlot
extends StandardPlot

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:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.inet.report.chart.plot.AbstractPlot
AbstractPlot.GradientSetting
 
Field Summary
static AreaStyle DEFAULT_STYLE
          Default 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_MAX
 
Fields 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
AreaPlot()
          Creates a area plot with default properties.
AreaPlot(AreaStyle style)
          Creates a area plot with defined chart style.
 
Method Summary
 ChartStyle getStyle()
          Returns the style of this chart, ie. the general category this plot belongs to.
 void readProperties(org.w3c.dom.Element element, Chart2 chart)
          Reads the chart properties from the DOMParser Element.
 void setCategoryAxis(GroupAxis categoryAxis)
          Sets the axis for categories of this plot.
 void setDataAxis(ContinuousNumberAxis dataAxis)
          Sets the axis for data of this plot.
 void setStyle(AreaStyle style)
          Sets the chart style of this plot.
 
Methods inherited from class com.inet.report.chart.plot.StandardPlot
getCategoryAxis, getDataAxis, getDataset, getItemLabelPosition, getSubProperties, isShowCumulativeValues, refreshAutoTitles, saveSubProperties, setCategoryAxis, setDataAxis, setDataset, setItemLabelPosition, setShowCumulativeValues
 
Methods inherited from class com.inet.report.chart.plot.AbstractPlot
getBackColor, getColorFormula, getColorSequence, getForegroundAlpha, getGradientSetting, getItemLabelColor, getItemLabelFont, getItemLabelFormat, getItemShape, getOutlineColor, getOutlineStyle, getOutlineWidth, getReferencedObject, isColorBySeries, isDrawOutline, isSameColorsForSameGroups, isShowLabel, isShowValue, saveProperties, setBackColor, setColorBySeries, setColorFormula, setColorSequence, setDrawOutline, setForegroundAlpha, setGradientSetting, setItemLabelColor, setItemLabelFont, setItemLabelFormat, setItemShape, setOutlineColor, setOutlineStyle, setOutlineWidth, setSameColorsForSameGroups, setShowLabel, setShowValue
 

Field Detail

DEFAULT_STYLE

public static final AreaStyle DEFAULT_STYLE
Default chart style with this plot.

Constructor Detail

AreaPlot

public AreaPlot()
Creates a area plot with default properties.

Since:
8.0

AreaPlot

public AreaPlot(AreaStyle style)
Creates a area plot with defined chart style. Initializes all properties with default values.

Parameters:
style - the chart style (null not permitted)
Since:
8.0
See Also:
AreaStyle
Method Detail

setCategoryAxis

public void setCategoryAxis(GroupAxis categoryAxis)
Sets the axis for categories of this plot. The category axis shows the values of the first group field.

Parameters:
categoryAxis - the group axis (null not permitted)
Since:
8.0
See Also:
StandardPlot.getCategoryAxis(), GroupAxis

setDataAxis

public void setDataAxis(ContinuousNumberAxis dataAxis)
Sets the axis for data of this plot. The data axis shows the summarized values of the data fields.

Parameters:
dataAxis - the data axis (null not permitted)
Since:
8.0
See Also:
StandardPlot.getDataAxis(), ContinuousNumberAxis

getStyle

public ChartStyle getStyle()
Returns the style of this chart, ie. the general category this plot belongs to.

Specified by:
getStyle in class StandardPlot
Returns:
the style
See Also:
BarStyle.BAR2D, LineStyle.LINE_MARKER, AreaStyle.AREA2D_STACKED

setStyle

public void setStyle(AreaStyle style)
Sets the chart style of this plot.

Parameters:
style - the style (null not permitted)
Since:
8.0
See Also:
getStyle(), AreaStyle

readProperties

public void readProperties(org.w3c.dom.Element element,
                           Chart2 chart)
Reads the chart properties from the DOMParser Element.

Specified by:
readProperties in interface ChartPlot
Overrides:
readProperties in class StandardPlot
Parameters:
element - the DOMParser Element
chart - the chart

i-net Clear Reports

Copyright © 1999-2011 by i-net software GmbH