java.lang.Object
org.jfree.chart.axis.StandardTickUnitSource
- All Implemented Interfaces:
Serializable
,TickUnitSource
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.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests this instance for equality with an arbitrary object.getCeilingTickUnit
(double size) Returns the tick unit in the collection that is greater than or equal to the specified size.getCeilingTickUnit
(TickUnit unit) Returns the tick unit in the collection that is greater than or equal to (in size) the specified unit.getLargerTickUnit
(TickUnit unit) Returns a tick unit that is larger than the supplied unit.int
hashCode()
Returns a hash code for this instance.
-
Constructor Details
-
StandardTickUnitSource
public StandardTickUnitSource()Default constructor.
-
-
Method Details
-
getLargerTickUnit
Returns a tick unit that is larger than the supplied unit.- Specified by:
getLargerTickUnit
in interfaceTickUnitSource
- Parameters:
unit
- the unit (null
not permitted).- Returns:
- A tick unit that is larger than the supplied unit.
-
getCeilingTickUnit
Returns the tick unit in the collection that is greater than or equal to (in size) the specified unit.- Specified by:
getCeilingTickUnit
in interfaceTickUnitSource
- Parameters:
unit
- the unit (null
not permitted).- Returns:
- A unit from the collection.
-
getCeilingTickUnit
Returns the tick unit in the collection that is greater than or equal to the specified size.- Specified by:
getCeilingTickUnit
in interfaceTickUnitSource
- Parameters:
size
- the size.- Returns:
- A unit from the collection.
-
equals
Tests this instance for equality with an arbitrary object. -
hashCode
public int hashCode()Returns a hash code for this instance.
-