|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.mapper.AxisMapperInverter
public class AxisMapperInverter extends java.lang.Object implements AxisMapper
Axis mapper inverter.
| Modifier and Type | Field and Description |
|---|---|
protected AxisMapper |
mapper
|
| Constructor and Description |
|---|
AxisMapperInverter(AxisMapper mapper)
|
| 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. |
AxisMapper |
getMapper()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AxisMapper mapper
| Constructor Detail |
|---|
public AxisMapperInverter(AxisMapper mapper)
| Method Detail |
|---|
public AxisMapper getMapper()
public void addListener(AxisMapperListener listener)
AxisMapper
addListener in interface AxisMapperlistener - listenerpublic void removeListener(AxisMapperListener listener)
AxisMapper
removeListener in interface AxisMapperlistener - listenerpublic AxisScale getScale()
AxisMapper
getScale in interface AxisMapperpublic double map(java.lang.Object key)
AxisMapper
map in interface AxisMapperkey - value in some coordinate spacepublic java.lang.Object mapBack(double pos)
AxisMapper
mapBack in interface AxisMapperpos - position in range [0,1]public java.lang.String formatKey(java.lang.Object key)
AxisMapper
formatKey in interface AxisMapperkey - value in some coordinate space
public void setProjectionRange(double min,
double max)
AxisMapper
setProjectionRange in interface AxisMappermin - range minimum in range [0,1]max - range maximum in range [0,1]public AxisMapperRange getProjectionRange()
AxisMapper
getProjectionRange in interface AxisMapper
public double getPreferredHeight(AbstractGraphics g,
AbstractTextPainter textPainter)
AxisMapper
getPreferredHeight in interface AxisMapperg - graphics contexttextPainter - text painter mode
public double getPreferredWidth(AbstractGraphics g,
AbstractTextPainter textPainter)
AxisMapper
getPreferredWidth in interface AxisMapperg - graphics contexttextPainter - text painter modepublic AxisMapperRange getViewRange()
AxisMapperAxisMapperRange object representing visible axis range. The object can
be used to set visible axis range. Returns normalized value from [0..1]
getViewRange in interface AxisMapper
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||