public class

StandardTickUnitSource

extends Object
implements Serializable TickUnitSource
java.lang.Object
   ↳ org.jfree.chart.axis.StandardTickUnitSource

Class Overview

A source that can used by the NumberAxis class to obtain a suitable TickUnit. Instances of this class are Serializable from version 1.0.7 onwards. Cloning is not supported, because instances are immutable.

Summary

Public Constructors
StandardTickUnitSource()
Default constructor.
Public Methods
boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
TickUnit getCeilingTickUnit(double size)
Returns the tick unit in the collection that is greater than or equal to the specified size.
TickUnit getCeilingTickUnit(TickUnit unit)
Returns the tick unit in the collection that is greater than or equal to (in size) the specified unit.
TickUnit getLargerTickUnit(TickUnit unit)
Returns a tick unit that is larger than the supplied unit.
int hashCode()
Returns a hash code for this instance.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.jfree.chart.axis.TickUnitSource

Public Constructors

public StandardTickUnitSource ()

Default constructor.

Public Methods

public boolean equals (Object obj)

Tests this instance for equality with an arbitrary object.

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

public TickUnit getCeilingTickUnit (double size)

Returns the tick unit in the collection that is greater than or equal to the specified size.

Parameters
size the size.
Returns
  • A unit from the collection.

public TickUnit getCeilingTickUnit (TickUnit unit)

Returns the tick unit in the collection that is greater than or equal to (in size) the specified unit.

Parameters
unit the unit (null not permitted).
Returns
  • A unit from the collection.

public TickUnit getLargerTickUnit (TickUnit unit)

Returns a tick unit that is larger than the supplied unit.

Parameters
unit the unit (null not permitted).
Returns
  • A tick unit that is larger than the supplied unit.

public int hashCode ()

Returns a hash code for this instance.

Returns
  • A hash code.