lt.monarch.chart.mapper
Class AnalogAxisMapper<AnalogAxisRange extends Range<?>>

java.lang.Object
  extended by lt.monarch.chart.mapper.AbstractAxisMapper
      extended by lt.monarch.chart.mapper.AnalogAxisMapper<AnalogAxisRange>
All Implemented Interfaces:
java.io.Serializable, AxisMapper
Direct Known Subclasses:
DateAxisMapper, LogAxisMapper, MathAxisMapper

public abstract class AnalogAxisMapper<AnalogAxisRange extends Range<?>>
extends AbstractAxisMapper

Abstract class for analog mappers.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
AnalogAxisMapper()
           
 
Method Summary
Modifier and Type Method and Description
protected abstract  java.text.Format[] getFormats()
          Gets axis mapper formats.
 double getPreferredHeight(AbstractGraphics g, AbstractTextPainter textPainter)
          Gets preferred height.
 double getPreferredWidth(AbstractGraphics g, AbstractTextPainter textPainter)
          Gets preferred width.
abstract  AnalogAxisRange getRange()
          Gets axis range.
abstract  AnalogAxisRange getVisibleRange()
          Gets visible range.
 
Methods inherited from class lt.monarch.chart.mapper.AbstractAxisMapper
addListener, fireMappingChanged, getProjectionRange, mapBack, removeListener, setProjectionRange
 
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, getScale, getViewRange, map
 

Constructor Detail

AnalogAxisMapper

public AnalogAxisMapper()
Method Detail

getRange

public abstract AnalogAxisRange getRange()
Gets axis range.

Returns:
axis range

getFormats

protected abstract java.text.Format[] getFormats()
Gets axis mapper formats.

Returns:
axis mapper formats

getPreferredHeight

public double getPreferredHeight(AbstractGraphics g,
                                 AbstractTextPainter textPainter)
Description copied from interface: AxisMapper
Gets preferred height.

Parameters:
g - graphics context
textPainter - text painter mode
Returns:
preferred height

getPreferredWidth

public double getPreferredWidth(AbstractGraphics g,
                                AbstractTextPainter textPainter)
Description copied from interface: AxisMapper
Gets preferred width.

Parameters:
g - graphics context
textPainter - text painter mode
Returns:
preferred width

getVisibleRange

public abstract AnalogAxisRange getVisibleRange()
Gets visible range. Not normalized values (real ones).

Returns:
visible range