se.lth.control.plot
Class AxisPoint
java.lang.Object
|
+--se.lth.control.plot.AxisPoint
- public class AxisPoint
- extends java.lang.Object
A class representing tickmarks and labels for a plot axis.
Field Summary |
java.lang.String |
label
The label to be put on the axis point. |
double |
position
The positon of the point in a [0.0, 1.0] space. |
int |
tickLevel
The tickmark level. |
double |
value
The original value to be mapped to a particular point on the axis. |
Method Summary |
boolean |
equals(java.lang.Object obj)
Compares this object against the specified object. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
value
public double value
- The original value to be mapped to a particular point on the axis.
This is not used by the actual drawing classes, but is included
for completeness.
position
public double position
- The positon of the point in a [0.0, 1.0] space.
label
public java.lang.String label
- The label to be put on the axis point.
tickLevel
public int tickLevel
- The tickmark level. The highest level has value 0, increasing
values mean lower level. Negative values mean no tickmark.
AxisPoint
public AxisPoint()
hashCode
public int hashCode()
- Returns:
- a
hashCode
value for this object. - Overrides:
- hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Compares this object against the specified object.
The result is
true
if and only if the argument is
not null
and is an AxisPoint
object
such that the respective components are equal according to the rules
of Double.equal()
, String.equal()
- Parameters:
obj
- the object to compare with.- Returns:
true
if the objects are the same;
false
otherwise.- Overrides:
- equals in class java.lang.Object
toString
public java.lang.String toString()
- Returns:
- A String representation of this AxisPoint object.
- Overrides:
- toString in class java.lang.Object