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 JRChartThe Chart object containing the dataset and plot to use with this axis.protected JRMultiAxisPlotprotected AxisPositionEnumWhere 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:
getPositionin interfaceJRChartAxis- Returns:
- the position of this axis
-
getMultiAxisPlot
- Specified by:
getMultiAxisPlotin 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:
getChartin interfaceJRChartAxis- Returns:
- the chart that contains the dataset and plot for this axis
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
clone
- Specified by:
clonein interfaceJRChartAxis
-