|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.mapper.AbstractAxisMapper
public abstract class AbstractAxisMapper extends java.lang.Object implements AxisMapper, java.io.Serializable
Base implementation of axis mapper.
| Constructor and Description |
|---|
AbstractAxisMapper()
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(AxisMapperListener listener)
Adds specified axis mapper listener to receive notification when axis mapping changed. |
protected void |
fireMappingChanged()
Notifies all listeners that axis mapping changed. |
AxisMapperRange |
getProjectionRange()
Returns projection range of this axis mapper. |
java.lang.Object |
mapBack(double pos)
Default implementation of AxisMapper mapBack method. |
void |
removeListener(AxisMapperListener listener)
Removes specified axis mapper listener so that it no longer receives notifications from this mapper. |
void |
setProjectionRange(double min,
double max)
Sets projection range for this axis mapper. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface lt.monarch.chart.mapper.AxisMapper |
|---|
formatKey, getPreferredHeight, getPreferredWidth, getScale, getViewRange, map |
| Constructor Detail |
|---|
public AbstractAxisMapper()
| Method Detail |
|---|
public void addListener(AxisMapperListener listener)
addListener in interface AxisMapperlistener - the axis mapper listenerpublic void removeListener(AxisMapperListener listener)
removeListener in interface AxisMapperlistener - the axis mapper listenerprotected void fireMappingChanged()
public java.lang.Object mapBack(double pos)
mapBack method. Every axis mapper that
supports back mapping should override this method.
mapBack in interface AxisMapperpos - position in range [0,1]AxisMapper.mapBack(double)
public void setProjectionRange(double min,
double max)
setProjectionRange in interface AxisMappermin - range lower boundmax - range upper boundAxisMapperRangepublic AxisMapperRange getProjectionRange()
getProjectionRange in interface AxisMapperAxisMapperRange
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||