|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.mapper.NullAxisMapper
public class NullAxisMapper extends java.lang.Object implements AxisMapper
Dummy Axis mapper, which just passes through all numeric values.
| Constructor and Description |
|---|
NullAxisMapper()
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(AxisMapperListener listener)
Dummy implementation - does nothing. |
java.lang.String |
formatKey(java.lang.Object key)
Dummy implementation - returns empty string. |
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()
Dummy implementation - returns null. |
AxisMapperRange |
getViewRange()
Gets an AxisMapperRange object representing visible axis range. |
double |
map(java.lang.Object key)
Dummy implementation - casts the key to Number and returns it's double value. |
java.lang.Object |
mapBack(double pos)
Dummy implementation - returns null. |
void |
removeListener(AxisMapperListener listener)
Dummy implementation - does nothing. |
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 |
| Constructor Detail |
|---|
public NullAxisMapper()
| 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 listenerpublic AxisScale getScale()
getScale in interface AxisMapperpublic double map(java.lang.Object key)
map in interface AxisMapperkey - the key to mappublic java.lang.Object mapBack(double pos)
mapBack in interface AxisMapperpos - position on mapping rangepublic java.lang.String formatKey(java.lang.Object key)
formatKey in interface AxisMapperkey - the key to format
public void setProjectionRange(double min,
double max)
setProjectionRange in interface AxisMappermin - range minimum in range [0,1]max - range maximum in range [0,1]public AxisMapperRange getProjectionRange()
getProjectionRange in interface AxisMapperpublic 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
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 mode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||