Package org.jfree.chart.axis
Class AxisState
java.lang.Object
org.jfree.chart.axis.AxisState
Instances of this class are used to carry state information for an axis
during the drawing process. By retaining this information in a separate
object, it is possible for multiple threads to draw the same axis to
different output targets (each drawing will maintain separate state
information).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcursorDown(double units) Moves the cursor down by the specified number of Java 2D units.voidcursorLeft(double units) Moves the cursor left by the specified number of Java 2D units.voidcursorRight(double units) Moves the cursor right by the specified number of Java 2D units.voidcursorUp(double units) Moves the cursor up by the specified number of Java 2D units.doubleReturns the cursor position.doublegetMax()Returns the maximum width/height.getTicks()Returns the list of ticks.voidmoveCursor(double units, RectangleEdge edge) Moves the cursor outwards by the specified number of units.voidsetCursor(double cursor) Sets the cursor position.voidsetMax(double max) Sets the maximum width/height.voidSets the list of ticks.
-
Constructor Details
-
AxisState
public AxisState()Creates a new axis state. -
AxisState
Creates a new axis state.- Parameters:
cursor- the cursor.
-
-
Method Details
-
getCursor
Returns the cursor position.- Returns:
- The cursor position.
-
setCursor
Sets the cursor position.- Parameters:
cursor- the cursor position.
-
moveCursor
Moves the cursor outwards by the specified number of units.- Parameters:
units- the units.edge- the edge.
-
cursorUp
Moves the cursor up by the specified number of Java 2D units.- Parameters:
units- the units.
-
cursorDown
Moves the cursor down by the specified number of Java 2D units.- Parameters:
units- the units.
-
cursorLeft
Moves the cursor left by the specified number of Java 2D units.- Parameters:
units- the units.
-
cursorRight
Moves the cursor right by the specified number of Java 2D units.- Parameters:
units- the units.
-
getTicks
Returns the list of ticks.- Returns:
- The list of ticks.
-
setTicks
Sets the list of ticks.- Parameters:
ticks- the ticks.
-
getMax
Returns the maximum width/height.- Returns:
- The maximum width/height.
-
setMax
Sets the maximum width/height.- Parameters:
max- the maximum width/height.
-