Class NumberTickUnit

  extended by com.jrefinery.chart.TickUnit
      extended by com.jrefinery.chart.NumberTickUnit
All Implemented Interfaces:

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
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


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

Constructor Detail


public NumberTickUnit(double size,
                      java.text.NumberFormat formatter)
Creates a new number tick unit.

size - The size of the tick unit.
formatter - A number formatter for the tick unit.
Method Detail


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.

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.