|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.components.range2.LinearTickCalculator
public class LinearTickCalculator
Uses Range to find optimal tick distribution for LinearRange.
Constructor Summary | |
---|---|
LinearTickCalculator(int tickSpacing,
boolean boundTicksVisible)
Creates a new LinearTickCollector object. |
Method Summary | |
---|---|
Tick[] |
calculateTicks(int length,
Range range,
RangedValue rangedValue)
Calculates ticks using some default TickParameters. |
Tick[] |
calculateTicks(int length,
TickParameters measurer,
Range range,
RangedValue rangedValue)
Calculates ticks using the given TickParameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinearTickCalculator(int tickSpacing, boolean boundTicksVisible)
tickSpacing
- Minimum space between minor ticks.boundTicksVisible
- a flag indicating whether the range's bounds should be visibleMethod Detail |
---|
public Tick[] calculateTicks(int length, Range range, RangedValue rangedValue)
TickCalculator
calculateTicks
in interface TickCalculator
length
- the available space for ticks in the displayerrange
- range which provides transformation to absolute/relative valuesrangedValue
- the value bounds
public Tick[] calculateTicks(int length, TickParameters measurer, Range range, RangedValue rangedValue)
TickCalculator
calculateTicks
in interface TickCalculator
length
- the available space for ticks in the displayermeasurer
- TickParameters used to measure ticksrange
- range which provides transformation to absolute/relative valuesrangedValue
- the value bounds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |