java.lang.Object
org.jfree.chart.axis.TickUnit
org.jfree.chart.axis.NumberTickUnit
- All Implemented Interfaces:
Serializable
,Comparable
A numerical tick unit.
- See Also:
-
Constructor Summary
ConstructorDescriptionNumberTickUnit
(double size) Creates a new number tick unit.NumberTickUnit
(double size, NumberFormat formatter) Creates a new number tick unit.NumberTickUnit
(double size, NumberFormat formatter, int minorTickCount) Creates a new number tick unit. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests this formatter for equality with an arbitrary object.int
hashCode()
Returns a hash code for this instance.toString()
Returns a string representing this unit.valueToString
(double value) Converts a value to a string.Methods inherited from class org.jfree.chart.axis.TickUnit
compareTo, getMinorTickCount, getSize
-
Constructor Details
-
NumberTickUnit
public NumberTickUnit(double size) Creates a new number tick unit.- Parameters:
size
- the size of the tick unit.
-
NumberTickUnit
Creates a new number tick unit.- Parameters:
size
- the size of the tick unit.formatter
- a number formatter for the tick unit (null
not permitted).
-
NumberTickUnit
Creates a new number tick unit.- Parameters:
size
- the size of the tick unit.formatter
- a number formatter for the tick unit (null
not permitted).minorTickCount
- the number of minor ticks.
-
-
Method Details
-
valueToString
Converts a value to a string.- Overrides:
valueToString
in classTickUnit
- Parameters:
value
- the value.- Returns:
- The formatted string.
-
equals
Tests this formatter for equality with an arbitrary object. -
toString
Returns a string representing this unit. -
hashCode
public int hashCode()Returns a hash code for this instance.
-