|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AxisScale extends java.io.Serializable
AxisScale lists axis measurement marks and labels.
| Modifier and Type | Method and Description |
|---|---|
int |
findNearestMark(double d)
Finds the nearest mark from the given position on the axis. |
java.lang.String |
getLabelAt(int i)
Returns an appropriate label for the axis mark. |
java.lang.String |
getLabelAt(int i,
java.util.Locale locale)
Returns an appropriate label for the axis mark formatted according to the given Locale. |
int |
getMarkCount()
Returns the axis mark count. |
AxisScale |
getSubScale()
Returns a sub-scale for the scale. |
double |
mapMark(int i)
Finds the position for the axis measurement mark. |
double[] |
mapMarkTicks(int i)
Finds the position for the axis measurement mark ticks (some scales marks can have 2 or more ticks). |
| Method Detail |
|---|
double mapMark(int i)
i - label indexint findNearestMark(double d)
d - position on axis in range [0,1]int getMarkCount()
java.lang.String getLabelAt(int i)
i - label index
java.lang.String getLabelAt(int i,
java.util.Locale locale)
i - label indexlocale - the localeAxisScale getSubScale()
double[] mapMarkTicks(int i)
i - label index
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||