|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfree.chart.axis.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. |
static TickUnits |
createIntegerTickUnits()
Deprecated. this method has been moved to the NumberAxis class. |
static TickUnits |
createIntegerTickUnits(java.util.Locale locale)
Deprecated. this method has been moved to the NumberAxis class. |
static TickUnits |
createStandardTickUnits()
Deprecated. this method has been moved to the NumberAxis class. |
static TickUnits |
createStandardTickUnits(java.util.Locale locale)
Deprecated. this method has been moved to the NumberAxis class. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TickUnits()
Method Detail |
public void add(TickUnit unit)
The tick units are maintained in ascending order.
unit
- the tick unit to add.public TickUnit getLargerTickUnit(TickUnit unit)
unit
- the unit.
public TickUnit getCeilingTickUnit(TickUnit unit)
unit
- the unit.
public TickUnit getCeilingTickUnit(double size)
size
- the size.
public static TickUnits createStandardTickUnits()
If you don't like these defaults, create your own instance of TickUnits and then pass it to the setStandardTickUnits(...) method in the NumberAxis class.
public static TickUnits createIntegerTickUnits()
public static TickUnits createStandardTickUnits(java.util.Locale locale)
If you don't like these defaults, create your own instance of TickUnits and then pass it to the setStandardTickUnits(...) method in the NumberAxis class.
locale
- the locale to use to represent Numbers.
public static TickUnits createIntegerTickUnits(java.util.Locale locale)
locale
- the locale to use to represent Numbers.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |