com.jrefinery.chart
Class NumberTickUnit

java.lang.Object
  extended by com.jrefinery.chart.TickUnit
      extended by com.jrefinery.chart.NumberTickUnit
All Implemented Interfaces:
java.lang.Comparable

public class NumberTickUnit
extends TickUnit

A numerical tick unit.


Field Summary
protected  java.text.NumberFormat formatter
          A formatter for the tick unit.
 
Fields inherited from class com.jrefinery.chart.TickUnit
size
 
Constructor Summary
NumberTickUnit(double size, java.text.NumberFormat formatter)
          Creates a new number tick unit.
 
Method Summary
 java.lang.String valueToString(double value)
          Converts the supplied 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
 

Field Detail

formatter

protected java.text.NumberFormat formatter
A formatter for the tick unit.

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)
Description copied from class: TickUnit
Converts the supplied value to a string.

Subclasses of TickUnit may implement special formatting by overriding this method.

Overrides:
valueToString in class TickUnit


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.