public class NumberTickUnit extends TickUnit implements java.io.Serializable
Constructor and Description |
---|
NumberTickUnit(double size)
Creates a new number tick unit.
|
NumberTickUnit(double size,
java.text.NumberFormat formatter)
Creates a new number tick unit.
|
NumberTickUnit(double size,
java.text.NumberFormat formatter,
int minorTickCount)
Creates a new number tick unit.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Tests this formatter for equality with an arbitrary object.
|
int |
hashCode()
Returns a hash code for this instance.
|
java.lang.String |
toString()
Returns a string representing this unit.
|
java.lang.String |
valueToString(double value)
Converts a value to a string.
|
compareTo, getMinorTickCount, getSize
public NumberTickUnit(double size)
size
- the size of the tick unit.public NumberTickUnit(double size, java.text.NumberFormat formatter)
size
- the size of the tick unit.formatter
- a number formatter for the tick unit (null
not permitted).public NumberTickUnit(double size, java.text.NumberFormat formatter, int minorTickCount)
size
- the size of the tick unit.formatter
- a number formatter for the tick unit (null
not permitted).minorTickCount
- the number of minor ticks.public java.lang.String valueToString(double value)
valueToString
in class TickUnit
value
- the value.public boolean equals(java.lang.Object obj)
public java.lang.String toString()
toString
in class java.lang.Object