Package org.jfree.chart.axis
Class NumberTickUnit
java.lang.Object
org.jfree.chart.axis.TickUnit
org.jfree.chart.axis.NumberTickUnit
- All Implemented Interfaces:
Serializable
,Comparable
- Direct Known Subclasses:
SymbolicTickUnit
public class NumberTickUnit extends TickUnit implements Serializable
A numerical tick unit.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description NumberTickUnit(double size)
Creates a new number tick unit.NumberTickUnit(double size, NumberFormat formatter)
Creates a new number tick unit. -
Method Summary
Modifier and Type Method Description String
valueToString(double value)
Converts a value to a string.
-
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.
-
-
Method Details
-
valueToString
Converts a value to a string.- Overrides:
valueToString
in classTickUnit
- Parameters:
value
- the value.- Returns:
- the formatted string.
-