com.jrefinery.chart
Class NumberTickUnit

java.lang.Object
  |
  +--com.jrefinery.chart.TickUnit
        |
        +--com.jrefinery.chart.NumberTickUnit
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
SymbolicTickUnit

public class NumberTickUnit
extends TickUnit

A numerical tick unit.

Author:
DG

Constructor Summary
NumberTickUnit(double size, java.text.NumberFormat formatter)
          Creates a new number tick unit.
 
Method Summary
 java.lang.String valueToString(double value)
          Converts a value to a string.
 
Methods inherited from class com.jrefinery.chart.TickUnit
compareTo, getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberTickUnit

public NumberTickUnit(double size,
                      java.text.NumberFormat formatter)
Creates a new number tick unit.
Parameters:
size - the size of the tick unit.
formatter - a number formatter for the tick unit.
Method Detail

valueToString

public java.lang.String valueToString(double value)
Converts a value to a string.
Overrides:
valueToString in class TickUnit
Parameters:
value - the value.
Returns:
the formatted string.