|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.axis.TickUnits
public class TickUnits
A collection of tick units, used by the DateAxis
and
NumberAxis
classes.
Constructor Summary | |
---|---|
TickUnits()
Constructs a new collection of tick units. |
Method Summary | |
---|---|
void |
add(TickUnit unit)
Adds a tick unit to the collection. |
java.lang.Object |
clone()
Returns a clone of the collection. |
boolean |
equals(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TickUnits()
Method Detail |
---|
public void add(TickUnit unit)
unit
- the tick unit to add (null
not permitted).public int size()
This method is required for the XML writer.
public TickUnit get(int pos)
This method is required for the XML writer.
pos
- the position in the list.
public TickUnit getLargerTickUnit(TickUnit unit)
getLargerTickUnit
in interface TickUnitSource
unit
- the unit.
public TickUnit getCeilingTickUnit(TickUnit unit)
getCeilingTickUnit
in interface TickUnitSource
unit
- the unit.
public TickUnit getCeilingTickUnit(double size)
getCeilingTickUnit
in interface TickUnitSource
size
- the size.
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if an item in the collection does not
support cloning.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to test (null
permitted).
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |