org.jfree.chart.axis
public class TickUnits extends Object implements TickUnitSource, Cloneable, Serializable
Constructor Summary | |
---|---|
TickUnits()
Constructs a new collection of tick units. |
Method Summary | |
---|---|
void | add(TickUnit unit)
Adds a tick unit to the collection.
|
Object | clone()
Returns a clone of the collection.
|
boolean | equals(Object object)
Tests an object for equality with this instance.
|
TickUnit | get(int pos)
Returns the tickunit on the given position.
|
TickUnit | getCeilingTickUnit(TickUnit unit)
Returns the tick unit in the collection that is greater than or equal
to (in size) the specified unit.
|
TickUnit | getCeilingTickUnit(double size)
Returns the tick unit in the collection that is greater than or equal
to the specified size.
|
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.
|
The tick units are maintained in ascending order.
Parameters: unit the tick unit to add.
Returns: A clone.
Throws: CloneNotSupportedException if an item in the collection does not support cloning.
Parameters: object the object to test.
Returns: A boolean.
This method is required for the XML writer.
Parameters: pos the position in the list.
Returns: The tickunit.
Parameters: unit the unit.
Returns: A unit from the collection.
Parameters: size the size.
Returns: A unit from the collection.
Parameters: unit the unit.
Returns: A tick unit that is larger than the supplied unit.
This method is required for the XML writer.
Returns: The number of units in this collection.