Module platform

Class NumberTickUnit

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:
  • 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 (null not 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 (null not permitted).
      minorTickCount - the number of minor ticks.
  • 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.
    • equals

      public boolean equals(Object obj)
      Tests this formatter for equality with an arbitrary object.
      Overrides:
      equals in class TickUnit
      Parameters:
      obj - the object (null permitted).
      Returns:
      A boolean.
    • toString

      public String toString()
      Returns a string representing this unit.
      Overrides:
      toString in class Object
      Returns:
      A string.
    • hashCode

      public int hashCode()
      Returns a hash code for this instance.
      Overrides:
      hashCode in class TickUnit
      Returns:
      A hash code.