org.jfree.chart.axis
Class TickUnits
java.lang.Objectorg.jfree.chart.axis.TickUnits
- Cloneable, Serializable, TickUnitSource
TickUnits()- Constructs a new collection of tick units.
|
void | add(TickUnit unit)- Adds a tick unit to the collection.
|
Object | clone()- Returns a clone of the collection.
|
boolean | equals(Object obj)- Tests an object for equality with this instance.
|
TickUnit | get(int pos)- Returns the tickunit on the given position.
|
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 | size()- Returns the number of tick units in this collection.
|
TickUnits
public TickUnits()
Constructs a new collection of tick units.
add
public void add(TickUnit unit)
Adds a tick unit to the collection. The tick units are maintained in
ascending order.
unit - the tick unit to add (null not permitted).
clone
public Object clone()
throws CloneNotSupportedException Returns a clone of the collection.
equals
public boolean equals(Object obj)
Tests an object for equality with this instance.
obj - the object to test (null permitted).
get
public TickUnit get(int pos)
Returns the tickunit on the given position.
This method is required for the XML writer.
pos - the position in the list.
size
public int size()
Returns the number of tick units in this collection.
This method is required for the XML writer.
- The number of units in this collection.