org.jfree.chart.axis

Class StandardTickUnitSource

Implemented Interfaces:
TickUnitSource

public class StandardTickUnitSource
extends java.lang.Object
implements TickUnitSource

A source that can used by the NumberAxis class to obtain a suitable TickUnit.

Method Summary

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.

Method Details

getCeilingTickUnit

public TickUnit getCeilingTickUnit(double size)
Returns the tick unit in the collection that is greater than or equal to the specified size.
Specified by:
getCeilingTickUnit in interface TickUnitSource
Parameters:
size - the size.
Returns:
A unit from the collection.

getCeilingTickUnit

public TickUnit getCeilingTickUnit(TickUnit unit)
Returns the tick unit in the collection that is greater than or equal to (in size) the specified unit.
Specified by:
getCeilingTickUnit in interface TickUnitSource
Parameters:
unit - the unit (null not permitted).
Returns:
A unit from the collection.

getLargerTickUnit

public TickUnit getLargerTickUnit(TickUnit unit)
Returns a tick unit that is larger than the supplied unit.
Specified by:
getLargerTickUnit in interface TickUnitSource
Parameters:
unit - the unit (null not permitted).
Returns:
A tick unit that is larger than the supplied unit.