public class NumberTickUnitSource extends java.lang.Object implements TickUnitSource, java.io.Serializable
Constructor and Description |
---|
NumberTickUnitSource()
Creates a new instance.
|
NumberTickUnitSource(boolean integers)
Creates a new instance.
|
NumberTickUnitSource(boolean integers,
java.text.NumberFormat formatter)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
TickUnit |
getCeilingTickUnit(double size)
Returns the smallest tick unit available in the source 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 the smallest tick unit available in the source that is larger
than
unit or, if there is no larger unit, returns
unit . |
public NumberTickUnitSource()
public NumberTickUnitSource(boolean integers)
integers
- show integers only.public NumberTickUnitSource(boolean integers, java.text.NumberFormat formatter)
integers
- show integers only?formatter
- a formatter for the axis tick labels (null
permitted).public TickUnit getLargerTickUnit(TickUnit unit)
TickUnitSource
unit
or, if there is no larger unit, returns
unit
.getLargerTickUnit
in interface TickUnitSource
unit
- the unit (null
not permitted).public TickUnit getCeilingTickUnit(TickUnit unit)
TickUnitSource
getCeilingTickUnit
in interface TickUnitSource
unit
- the unit.public TickUnit getCeilingTickUnit(double size)
TickUnitSource
getCeilingTickUnit
in interface TickUnitSource
size
- the size.null
).public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object