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:
  • Field Details

  • Constructor Details

    • 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 Details

    • 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 to setChart(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 interface JRCloneable
      Overrides:
      clone in class JRBaseChartAxis
    • getEventSupport

      public JRPropertyChangeSupport getEventSupport()
      Description copied from interface: JRChangeEventsSupport
      Returns the property change support object for this instance.
      Specified by:
      getEventSupport in interface JRChangeEventsSupport
      Returns:
      the property change support object for this instance