Class AxisCollection

java.lang.Object
org.jfree.chart.axis.AxisCollection

public class AxisCollection
extends Object
A collection of axes that have been assigned to the TOP, BOTTOM, LEFT or RIGHT of a chart.
  • Constructor Summary

    Constructors
    Constructor Description
    AxisCollection()
    Creates a new empty collection.
  • Method Summary

    Modifier and Type Method Description
    void add​(Axis axis, org.jfree.ui.RectangleEdge edge)
    Adds an axis to the collection.
    List<Axis> getAxesAtBottom()
    Returns a list of the axes (if any) that need to be drawn at the bottom of the plot area.
    List<Axis> getAxesAtLeft()
    Returns a list of the axes (if any) that need to be drawn at the left of the plot area.
    List<Axis> getAxesAtRight()
    Returns a list of the axes (if any) that need to be drawn at the right of the plot area.
    List<Axis> getAxesAtTop()
    Returns a list of the axes (if any) that need to be drawn at the top of the plot area.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AxisCollection

      public AxisCollection()
      Creates a new empty collection.
  • Method Details

    • getAxesAtTop

      public List<Axis> getAxesAtTop()
      Returns a list of the axes (if any) that need to be drawn at the top of the plot area.
      Returns:
      A list of axes.
    • getAxesAtBottom

      public List<Axis> getAxesAtBottom()
      Returns a list of the axes (if any) that need to be drawn at the bottom of the plot area.
      Returns:
      A list of axes.
    • getAxesAtLeft

      public List<Axis> getAxesAtLeft()
      Returns a list of the axes (if any) that need to be drawn at the left of the plot area.
      Returns:
      A list of axes.
    • getAxesAtRight

      public List<Axis> getAxesAtRight()
      Returns a list of the axes (if any) that need to be drawn at the right of the plot area.
      Returns:
      A list of axes.
    • add

      public void add​(Axis axis, org.jfree.ui.RectangleEdge edge)
      Adds an axis to the collection.
      Parameters:
      axis - the axis (null not permitted).
      edge - the edge of the plot that the axis should be drawn on (null not permitted).