public class

NumberTickUnit

extends TickUnit
implements Serializable
java.lang.Object
   ↳ org.jfree.chart.axis.TickUnit
     ↳ org.jfree.chart.axis.NumberTickUnit

Class Overview

A numerical tick unit.

Summary

Public Constructors
NumberTickUnit(double size)
Creates a new number tick unit.
NumberTickUnit(double size, NumberFormat formatter)
Creates a new number tick unit.
NumberTickUnit(double size, NumberFormat formatter, int minorTickCount)
Creates a new number tick unit.
Public Methods
boolean equals(Object obj)
Tests this formatter for equality with an arbitrary object.
int hashCode()
Returns a hash code for this instance.
String toString()
Returns a string representing this unit.
String valueToString(double value)
Converts a value to a string.
[Expand]
Inherited Methods
From class org.jfree.chart.axis.TickUnit
From class java.lang.Object
From interface java.lang.Comparable

Public Constructors

public NumberTickUnit (double size)

Creates a new number tick unit.

Parameters
size the size of the tick unit.

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

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.

Public Methods

public boolean equals (Object obj)

Tests this formatter for equality with an arbitrary object.

Parameters
obj the object (null permitted).
Returns
  • A boolean.

public int hashCode ()

Returns a hash code for this instance.

Returns
  • A hash code.

public String toString ()

Returns a string representing this unit.

Returns
  • A string.

public String valueToString (double value)

Converts a value to a string.

Parameters
value the value.
Returns
  • The formatted string.