Package org.jfree.chart.axis
Class AxisCollection
java.lang.Object
org.jfree.chart.axis.AxisCollection
A collection of axes that have been assigned to the TOP, BOTTOM, LEFT or
RIGHT of a chart. This class is used internally by JFreeChart, you won't
normally need to use it yourself.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
The axes that need to be drawn at the bottom of the plot area.private final List
The axes that need to be drawn at the left of the plot area.private final List
The axes that need to be drawn at the right of the plot area.private final List
The axes that need to be drawn at the top of the plot area. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Axis axis, RectangleEdge edge) Adds an axis to the collection.Returns a list of the axes (if any) that need to be drawn at the bottom of the plot area.Returns a list of the axes (if any) that need to be drawn at the left of the plot area.Returns a list of the axes (if any) that need to be drawn at the right of the plot area.Returns a list of the axes (if any) that need to be drawn at the top of the plot area.
-
Field Details
-
axesAtTop
The axes that need to be drawn at the top of the plot area. -
axesAtBottom
The axes that need to be drawn at the bottom of the plot area. -
axesAtLeft
The axes that need to be drawn at the left of the plot area. -
axesAtRight
The axes that need to be drawn at the right of the plot area.
-
-
Constructor Details
-
AxisCollection
public AxisCollection()Creates a new empty collection.
-
-
Method Details
-
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
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
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
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
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).
-