public class NumberTickUnitSource extends Object implements TickUnitSource, Serializable
Constructor and Description |
---|
NumberTickUnitSource()
Creates a new instance.
|
NumberTickUnitSource(boolean integers)
Creates a new instance.
|
NumberTickUnitSource(boolean integers,
NumberFormat formatter)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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, 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
).Jas4pp 1.5 © Java Analysis Studio for Particle Physics