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
Base read-only implementation of
JRChartAxis
.- Author:
- Barry Klawans (barry@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JRChart
The Chart object containing the dataset and plot to use with this axis.protected JRMultiAxisPlot
protected AxisPositionEnum
Where to position the axis. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new axis that will be added to the specified chart.JRBaseChartAxis
(JRChartAxis axis, ChartsBaseObjectFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionclone()
clone
(JRMultiAxisPlot multiAxisPlot) getChart()
Returns the chart that contains the dataset and plot to use for this axis.Returns the position of this axis.
-
Field Details
-
position
Where to position the axis. -
multiAxisPlot
-
chart
The Chart object containing the dataset and plot to use with this axis.
-
-
Constructor Details
-
JRBaseChartAxis
public JRBaseChartAxis()Construct a new axis that will be added to the specified chart. -
JRBaseChartAxis
-
-
Method Details
-
getPosition
Returns the position of this axis.- Specified by:
getPosition
in interfaceJRChartAxis
- Returns:
- the position of this axis
-
getMultiAxisPlot
- Specified by:
getMultiAxisPlot
in interfaceJRChartAxis
-
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
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
clone
- Specified by:
clone
in interfaceJRChartAxis
-