|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.jrefinery.chart.TickUnits
public class TickUnits
A collection of tick units.
| Field Summary | |
|---|---|
protected java.util.List |
units
Storage for the tick units. |
| 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()
Returns a collection of tick units for integer values. |
static TickUnits |
createStandardTickUnits()
Creates the standard tick units. |
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 |
| Field Detail |
|---|
protected java.util.List units
| Constructor Detail |
|---|
public TickUnits()
| Method Detail |
|---|
public void add(TickUnit unit)
The tick units are maintained in ascending order.
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()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||