Class JRDesignChartAxis
java.lang.Object
net.sf.jasperreports.charts.base.JRBaseChartAxis
net.sf.jasperreports.charts.design.JRDesignChartAxis
- All Implemented Interfaces:
Serializable,Cloneable,JRChartAxis,JRChangeEventsSupport,JRCloneable
JRChartAxis implementation to be used for report design.- Author:
- Barry Klawans (barry@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsFields inherited from class net.sf.jasperreports.charts.base.JRBaseChartAxis
chart, multiAxisPlot, position -
Constructor Summary
ConstructorsConstructorDescriptionJRDesignChartAxis(JRMultiAxisPlot multiAxisPlot) Construct a new axis that will be added to the specified multiaxis chart plot. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElement(JRElement element) Sets the chart that contains the dataset and plot for this axis.clone()Returns the property change support object for this instance.voidsetChart(JRDesignChart chart) Set the chart that contains the dataset and plot to use for this axis.voidsetPosition(AxisPositionEnum position) Sets the position of this axis' value line relative to the multiple axis chart.Methods inherited from class net.sf.jasperreports.charts.base.JRBaseChartAxis
clone, getChart, getMultiAxisPlot, getPosition
-
Field Details
-
PROPERTY_CHART
- See Also:
-
PROPERTY_POSITION
- See Also:
-
-
Constructor Details
-
JRDesignChartAxis
Construct a new axis that will be added to the specified multiaxis chart plot.- Parameters:
multiAxisPlot- the plot that the axis will be added to
-
-
Method Details
-
setPosition
Sets the position of this axis' value line relative to the multiple axis chart.- Parameters:
position- the position of this axis
-
setChart
Set 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 (ie as a line or bar chart) when adding it to the multiple axis chart.- Parameters:
chart- the chart that contains the dataset and plot for this axis
-
addElement
Sets the chart that contains the dataset and plot for this axis. Identical tosetChart(net.sf.jasperreports.charts.design.JRDesignChart)but is called by the XML digester when parsing the report source.- Parameters:
element-
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classJRBaseChartAxis
-
getEventSupport
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-