Class JRBaseChartAxis

java.lang.Object
net.sf.jasperreports.charts.base.JRBaseChartAxis
All Implemented Interfaces:
Serializable, Cloneable, JRChartAxis, JRCloneable
Direct Known Subclasses:
JRDesignChartAxis

public class JRBaseChartAxis extends Object implements JRChartAxis, Serializable
Base read-only implementation of JRChartAxis.
Author:
Barry Klawans (barry@users.sourceforge.net)
See Also:
  • Field Details

    • positionValue

      protected AxisPositionEnum positionValue
      Where to position the axis.
    • chart

      protected JRChart 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

      public JRBaseChartAxis(JRChartAxis axis, JRBaseObjectFactory factory)
  • Method Details

    • getPositionValue

      public AxisPositionEnum getPositionValue()
      Returns the position of this axis.
      Specified by:
      getPositionValue in interface JRChartAxis
      Returns:
      the position of this axis
    • getChart

      public JRChart 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 interface JRChartAxis
      Returns:
      the chart that contains the dataset and plot for this axis
    • clone

      public Object clone()
      Specified by:
      clone in interface JRCloneable
      Overrides:
      clone in class Object
    • clone

      public JRChartAxis clone(JRChart parentChart)
      Specified by:
      clone in interface JRChartAxis