Package net.sf.jasperreports.charts.base
Class JRBaseMultiAxisPlot
- java.lang.Object
-
- net.sf.jasperreports.charts.base.JRBaseChartPlot
-
- net.sf.jasperreports.charts.base.JRBaseMultiAxisPlot
-
- All Implemented Interfaces:
Serializable
,Cloneable
,JRChartPlot
,JRMultiAxisPlot
,JRChangeEventsSupport
,JRCloneable
- Direct Known Subclasses:
JRDesignMultiAxisPlot
public class JRBaseMultiAxisPlot extends JRBaseChartPlot implements JRMultiAxisPlot
An immutable representation of the layout options of a multiple axis chart.- Author:
- Barry Klawans (bklawans@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.jasperreports.charts.base.JRBaseChartPlot
JRBaseChartPlot.JRBaseSeriesColor
-
Nested classes/interfaces inherited from interface net.sf.jasperreports.charts.JRChartPlot
JRChartPlot.JRSeriesColor
-
-
Field Summary
Fields Modifier and Type Field Description protected List<JRChartAxis>
axes
All the axes contained in this plot.-
Fields inherited from class net.sf.jasperreports.charts.base.JRBaseChartPlot
backcolor, backgroundAlpha, chart, foregroundAlpha, labelRotation, orientation, PROPERTY_BACKCOLOR, PROPERTY_BACKGROUND_ALPHA, PROPERTY_FOREGROUND_ALPHA, PROPERTY_LABEL_ROTATION, PROPERTY_ORIENTATION, PROPERTY_SERIES_COLORS, seriesColors
-
-
Constructor Summary
Constructors Constructor Description JRBaseMultiAxisPlot(JRChartPlot multiAxisPlot, JRChart chart)
Constructs a copy of an existing multiple axis chart plot.JRBaseMultiAxisPlot(JRMultiAxisPlot multiAxisPlot, ChartsBaseObjectFactory factory)
Creates a copy of an existing multiple axis chart plot and registers any expression contained in the plot with the specified factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone(JRChart parentChart)
void
collectExpressions(ChartsExpressionCollector collector)
Adds all the expression used by this plot with the specified collector.List<JRChartAxis>
getAxes()
Returns a List of all the children axis.-
Methods inherited from class net.sf.jasperreports.charts.base.JRBaseChartPlot
addSeriesColor, clearSeriesColors, clone, getBackcolor, getBackgroundAlpha, getChart, getEventSupport, getForegroundAlpha, getLabelRotation, getOrientation, getOwnBackcolor, getSeriesColors, getStyleResolver, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, setSeriesColors
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.charts.JRChartPlot
addSeriesColor, clearSeriesColors, getBackcolor, getBackgroundAlpha, getChart, getForegroundAlpha, getLabelRotation, getOrientation, getOwnBackcolor, getSeriesColors, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, setSeriesColors
-
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
-
-
-
-
Field Detail
-
axes
protected List<JRChartAxis> axes
All the axes contained in this plot. Each entry indicates a chart containing the dataset and layout of that entry and where to draw that chart's range axis. All entries in the list are of the typeJRChartAxis
-
-
Constructor Detail
-
JRBaseMultiAxisPlot
public JRBaseMultiAxisPlot(JRChartPlot multiAxisPlot, JRChart chart)
Constructs a copy of an existing multiple axis chart plot.- Parameters:
multiAxisPlot
- the plot to copy
-
JRBaseMultiAxisPlot
public JRBaseMultiAxisPlot(JRMultiAxisPlot multiAxisPlot, ChartsBaseObjectFactory factory)
Creates a copy of an existing multiple axis chart plot and registers any expression contained in the plot with the specified factory. Since the plot contains multiple other charts nested inside of it all of the expressions used by those charts is also registered with the factory.- Parameters:
multiAxisPlot
- the plot to copyfactory
- the factory to register expressions with
-
-
Method Detail
-
getAxes
public List<JRChartAxis> getAxes()
Description copied from interface:JRMultiAxisPlot
Returns a List of all the children axis. Each element is of typeJRChartAxis
.- Specified by:
getAxes
in interfaceJRMultiAxisPlot
-
collectExpressions
public void collectExpressions(ChartsExpressionCollector collector)
Adds all the expression used by this plot with the specified collector. All collected expression that are also registered with a factory will be included with the report is compiled.- Specified by:
collectExpressions
in interfaceJRChartPlot
- Parameters:
collector
- the expression collector to use
-
clone
public Object clone(JRChart parentChart)
- Specified by:
clone
in interfaceJRChartPlot
- Overrides:
clone
in classJRBaseChartPlot
-
-