|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AxisMapper extends java.io.Serializable
AxisMapper is responsible for mapping an Object value of some coordinate space into a double
value in range [0,1].
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(AxisMapperListener listener)
Adds a mapper change listener. |
java.lang.String |
formatKey(java.lang.Object key)
Provides text representation of the coordinate value. |
double |
getPreferredHeight(AbstractGraphics g,
AbstractTextPainter textPainter)
Gets preferred height. |
double |
getPreferredWidth(AbstractGraphics g,
AbstractTextPainter textPainter)
Gets preferred width. |
AxisMapperRange |
getProjectionRange()
Gets axis projection range. |
AxisScale |
getScale()
Returns a scale object for this axis. |
AxisMapperRange |
getViewRange()
Gets an AxisMapperRange object representing visible axis range. |
double |
map(java.lang.Object key)
Finds the position for the coordinate value. |
java.lang.Object |
mapBack(double pos)
Converts the position on the coordinate axis to the value in some coordinate space. |
void |
removeListener(AxisMapperListener listener)
Removes a mapper change listener. |
void |
setProjectionRange(double min,
double max)
Sets axis projection range. |
| Method Detail |
|---|
void addListener(AxisMapperListener listener)
listener - listenervoid removeListener(AxisMapperListener listener)
listener - listenerAxisScale getScale()
double map(java.lang.Object key)
key - value in some coordinate spacejava.lang.Object mapBack(double pos)
pos - position in range [0,1]java.lang.String formatKey(java.lang.Object key)
key - value in some coordinate space
void setProjectionRange(double min,
double max)
min - range minimum in range [0,1]max - range maximum in range [0,1]AxisMapperRange getProjectionRange()
AxisMapperRange getViewRange()
AxisMapperRange object representing visible axis range. The object can
be used to set visible axis range. Returns normalized value from [0..1]
double getPreferredHeight(AbstractGraphics g,
AbstractTextPainter textPainter)
g - graphics contexttextPainter - text painter mode
double getPreferredWidth(AbstractGraphics g,
AbstractTextPainter textPainter)
g - graphics contexttextPainter - text painter mode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||