- java.lang.Object
-
- org.jfree.chart.axis.TickUnit
-
- org.jfree.chart.axis.NumberTickUnit
-
- All Implemented Interfaces:
Serializable,Comparable
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.NumberTickUnit(double size, NumberFormat formatter, int minorTickCount)Creates a new number tick unit.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Tests this formatter for equality with an arbitrary object.inthashCode()Returns a hash code for this instance.StringtoString()Returns a string representing this unit.StringvalueToString(double value)Converts a value to a string.-
Methods inherited from class org.jfree.chart.axis.TickUnit
compareTo, getMinorTickCount, getSize
-
-
-
-
Constructor Detail
-
NumberTickUnit
public NumberTickUnit(double size)
Creates a new number tick unit.- Parameters:
size- the size of the tick unit.
-
NumberTickUnit
public NumberTickUnit(double size, NumberFormat formatter)
Creates a new number tick unit.- Parameters:
size- the size of the tick unit.formatter- a number formatter for the tick unit (nullnot permitted).
-
NumberTickUnit
public NumberTickUnit(double size, NumberFormat formatter, int minorTickCount)
Creates a new number tick unit.- Parameters:
size- the size of the tick unit.formatter- a number formatter for the tick unit (nullnot permitted).minorTickCount- the number of minor ticks.
-
-
Method Detail
-
valueToString
public String valueToString(double value)
Converts a value to a string.- Overrides:
valueToStringin classTickUnit- Parameters:
value- the value.- Returns:
- The formatted string.
-
equals
public boolean equals(Object obj)
Tests this formatter for equality with an arbitrary object.
-
-