|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cosylab.gui.components.range2.DefaultTickParameters
public class DefaultTickParameters
| Constructor Summary | |
|---|---|
DefaultTickParameters()
Default constructor for DefaultTickCallback (tick width is 50, format is %3.2f). |
|
DefaultTickParameters(int tickWidth,
java.lang.String format)
Constructs a new DefaultTickParameters object with the given tickWidth and string format used to format values. |
|
| Method Summary | |
|---|---|
java.lang.String |
formatNumber(double value)
Formats the input value to a specific print format. |
int |
measureTick(double position,
java.lang.String text)
Returns size of tick label in pixels. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTickParameters()
public DefaultTickParameters(int tickWidth,
java.lang.String format)
tickWidth - format - | Method Detail |
|---|
public int measureTick(double position,
java.lang.String text)
TickParameters
measureTick in interface TickParametersposition - relative position of the tick on 0..1.text - label to display, may be empty string or null.
public java.lang.String formatNumber(double value)
TickParameters
formatNumber in interface TickParametersvalue - double to be formatted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||