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).
void | cursorDown(double units) - Moves the cursor down by the specified number of Java 2D units.
|
void | cursorLeft(double units) - Moves the cursor left by the specified number of Java 2D units.
|
void | cursorRight(double units) - Moves the cursor right by the specified number of Java 2D units.
|
void | cursorUp(double units) - Moves the cursor up by the specified number of Java 2D units.
|
double | getCursor() - Returns the cursor position.
|
double | getMax() - Returns the maximum width/height.
|
List | getTicks() - Returns the list of ticks.
|
void | moveCursor(double units, RectangleEdge edge) - Moves the cursor outwards by the specified number of units.
|
void | setCursor(double cursor) - Sets the cursor position.
|
void | setMax(double max) - Sets the maximum width/height.
|
void | setTicks(List ticks) - Sets the list of ticks.
|
AxisState
public AxisState()
Creates a new axis state.
AxisState
public AxisState(double cursor)
Creates a new axis state.
cursorDown
public void cursorDown(double units)
Moves the cursor down by the specified number of Java 2D units.
cursorLeft
public void cursorLeft(double units)
Moves the cursor left by the specified number of Java 2D units.
cursorRight
public void cursorRight(double units)
Moves the cursor right by the specified number of Java 2D units.
cursorUp
public void cursorUp(double units)
Moves the cursor up by the specified number of Java 2D units.
getCursor
public double getCursor()
Returns the cursor position.
getMax
public double getMax()
Returns the maximum width/height.
- The maximum width/height.
getTicks
public List getTicks()
Returns the list of ticks.
moveCursor
public void moveCursor(double units,
RectangleEdge edge)
Moves the cursor outwards by the specified number of units.
units
- the units.edge
- the edge.
setCursor
public void setCursor(double cursor)
Sets the cursor position.
cursor
- the cursor position.
setMax
public void setMax(double max)
Sets the maximum width/height.
max
- the maximum width/height.
setTicks
public void setTicks(List ticks)
Sets the list of ticks.