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
public class JRDesignChartAxis extends JRBaseChartAxis implements JRChangeEventsSupport
JRChartAxis
implementation to be used for report design.- Author:
- Barry Klawans (barry@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_CHART
static String
PROPERTY_POSITION
-
Fields inherited from class net.sf.jasperreports.charts.base.JRBaseChartAxis
chart, multiAxisPlot, position
-
-
Constructor Summary
Constructors Constructor Description JRDesignChartAxis(JRMultiAxisPlot multiAxisPlot)
Construct a new axis that will be added to the specified multiaxis chart plot.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addElement(JRElement element)
Sets the chart that contains the dataset and plot for this axis.Object
clone()
JRPropertyChangeSupport
getEventSupport()
Returns the property change support object for this instance.void
setChart(JRDesignChart chart)
Set the chart that contains the dataset and plot to use for this axis.void
setPosition(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 Detail
-
PROPERTY_CHART
public static final String PROPERTY_CHART
- See Also:
- Constant Field Values
-
PROPERTY_POSITION
public static final String PROPERTY_POSITION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JRDesignChartAxis
public JRDesignChartAxis(JRMultiAxisPlot multiAxisPlot)
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 Detail
-
setPosition
public void setPosition(AxisPositionEnum position)
Sets the position of this axis' value line relative to the multiple axis chart.- Parameters:
position
- the position of this axis
-
setChart
public void setChart(JRDesignChart chart)
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
public void addElement(JRElement element)
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
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classJRBaseChartAxis
-
getEventSupport
public JRPropertyChangeSupport getEventSupport()
Description copied from interface:JRChangeEventsSupport
Returns the property change support object for this instance.- Specified by:
getEventSupport
in interfaceJRChangeEventsSupport
- Returns:
- the property change support object for this instance
-
-