|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.Tick
@Equality public class Tick
Defines a tick on an axis. A tick has a numerical value, used for positioning, and optionally a text label. Ticks with no label are considered minor.
Constructor Summary | |
---|---|
Tick(double value)
Constructs a minor tick. |
|
Tick(double value,
String label)
Constructs a tick. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String |
getLabel()
Returns this tick's text label. |
double |
getValue()
Returns this tick's numeric value. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Tick(double value)
value
- numeric valuepublic Tick(double value, String label)
value
- numeric valuelabel
- text labelMethod Detail |
---|
public double getValue()
public String getLabel()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |