Package net.sf.jasperreports.charts.base
Class JRBaseChartAxis
- java.lang.Object
-
- net.sf.jasperreports.charts.base.JRBaseChartAxis
-
- All Implemented Interfaces:
Serializable
,Cloneable
,JRChartAxis
,JRCloneable
- Direct Known Subclasses:
JRDesignChartAxis
public class JRBaseChartAxis extends Object implements JRChartAxis, Serializable
Base read-only implementation ofJRChartAxis
.- Author:
- Barry Klawans (barry@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JRChart
chart
The Chart object containing the dataset and plot to use with this axis.protected JRMultiAxisPlot
multiAxisPlot
protected AxisPositionEnum
position
Where to position the axis.
-
Constructor Summary
Constructors Constructor Description JRBaseChartAxis()
Construct a new axis that will be added to the specified chart.JRBaseChartAxis(JRChartAxis axis, ChartsBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
JRChartAxis
clone(JRMultiAxisPlot multiAxisPlot)
JRChart
getChart()
Returns the chart that contains the dataset and plot to use for this axis.JRMultiAxisPlot
getMultiAxisPlot()
AxisPositionEnum
getPosition()
Returns the position of this axis.
-
-
-
Field Detail
-
position
protected AxisPositionEnum position
Where to position the axis.
-
multiAxisPlot
protected JRMultiAxisPlot multiAxisPlot
-
chart
protected JRChart chart
The Chart object containing the dataset and plot to use with this axis.
-
-
Constructor Detail
-
JRBaseChartAxis
public JRBaseChartAxis()
Construct a new axis that will be added to the specified chart.
-
JRBaseChartAxis
public JRBaseChartAxis(JRChartAxis axis, ChartsBaseObjectFactory factory)
-
-
Method Detail
-
getPosition
public AxisPositionEnum getPosition()
Returns the position of this axis.- Specified by:
getPosition
in interfaceJRChartAxis
- Returns:
- the position of this axis
-
getMultiAxisPlot
public JRMultiAxisPlot getMultiAxisPlot()
- Specified by:
getMultiAxisPlot
in interfaceJRChartAxis
-
getChart
public JRChart getChart()
Returns the chart that contains the dataset and plot to use for this axis. The plot is used to figure out how to render the dataset when adding to the multiple axis chart.- Specified by:
getChart
in interfaceJRChartAxis
- Returns:
- the chart that contains the dataset and plot for this axis
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
clone
public JRChartAxis clone(JRMultiAxisPlot multiAxisPlot)
- Specified by:
clone
in interfaceJRChartAxis
-
-