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 Details

    • 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.
  • Method Details

    • valueToString

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