com.jrefinery.chart
Class Tick
java.lang.Object
|
+--com.jrefinery.chart.Tick
- public class Tick
- extends java.lang.Object
Represents the dimensions of a tick on an axis (used during the process of
drawing a chart, but not retained).
- Author:
- DG
Constructor Summary |
Tick(java.lang.Object value,
java.lang.String text,
float x,
float y)
Standard constructor: creates a Tick with the specified properties. |
Tick(java.lang.String text,
float x,
float y)
Standard constructor: creates a Tick with the specified properties. |
Method Summary |
double |
getNumericalValue()
Returns the numerical value of the tick, or null if the value is not a number. |
java.lang.String |
getText()
Returns the text version of the tick value. |
float |
getX()
Returns the x-coordinate of the tick label. |
float |
getY()
Returns the y-coordinate of the tick label. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Tick
public Tick(java.lang.Object value,
java.lang.String text,
float x,
float y)
- Standard constructor: creates a Tick with the specified properties.
- Parameters:
value
- the tick value.text
- the formatted version of the tick value.x
- the x-coordinate of the tick label.y
- the y-coordinate of the tick label.
Tick
public Tick(java.lang.String text,
float x,
float y)
- Standard constructor: creates a Tick with the specified properties.
- Parameters:
text
- the formatted version of the tick value.x
- the x-coordinate of the tick.y
- the y-coordinate of the tick.
getNumericalValue
public double getNumericalValue()
- Returns the numerical value of the tick, or null if the value is not a number.
- Returns:
- the tick value.
getText
public java.lang.String getText()
- Returns the text version of the tick value.
- Returns:
- the formatted version of the tick value;
getX
public float getX()
- Returns the x-coordinate of the tick label.
- Returns:
- the x-coordinate of the tick label.
getY
public float getY()
- Returns the y-coordinate of the tick label.
- Returns:
- the y-coordinate of the tick label.