lt.monarch.chart.mapper
Class RadarMapper

java.lang.Object
  extended by lt.monarch.chart.mapper.AbstractAxisMapper
      extended by lt.monarch.chart.mapper.AbstractRadarMapper
          extended by lt.monarch.chart.mapper.RadarMapper
All Implemented Interfaces:
java.io.Serializable, AxisMapper

public class RadarMapper
extends AbstractRadarMapper

Maps radar data model data to PolarPoint. Keeps track of several data models, which are used in a single radar chart and determines the number of radar axes required.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.mapper.AbstractRadarMapper
axisCount, axisMapper, initAngle, models, radius
 
Constructor Summary
Constructor and Description
RadarMapper(AxisMapper axisMapper)
          Constructs a new radar mapper object.
 
Method Summary
Modifier and Type Method and Description
 PolarPoint map(java.lang.Double angle, java.lang.Object value)
          Maps the polar values the polar point.
 PolarPoint mapAxis(java.lang.Integer index, java.lang.Double value, PolarPoint pp)
          Maps the point on the specified radar axis to the polar point, when the relative position on the radar axis is already known.
 PolarPoint mapAxis(java.lang.Integer index, java.lang.Object value)
          Maps the point on the specified radar axis to the polar point, when the relative position on the radar axis is already known.
 
Methods inherited from class lt.monarch.chart.mapper.AbstractRadarMapper
formatKey, getAxisCount, getInitAxisPosition, getPreferredHeight, getPreferredWidth, getScale, getViewRange, map, setAxisCount, setInitAxisPosition
 
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
 

Constructor Detail

RadarMapper

public RadarMapper(AxisMapper axisMapper)
Constructs a new radar mapper object.

Parameters:
axisMapper - An axis mapper object used to map data values on each radar axis.
Method Detail

map

public PolarPoint map(java.lang.Double angle,
                      java.lang.Object value)
Maps the polar values the polar point.

Specified by:
map in class AbstractRadarMapper
Parameters:
angle - angle of the polar coordinate
value - radius of the polar coordinate
Returns:
polar point in the polar coordinate system

mapAxis

public PolarPoint mapAxis(java.lang.Integer index,
                          java.lang.Object value)
Maps the point on the specified radar axis to the polar point, when the relative position on the radar axis is already known.

Specified by:
mapAxis in class AbstractRadarMapper
Parameters:
idx - radar axis index
value - position on the axis
Returns:
polar point in the polar coordinate system

mapAxis

public PolarPoint mapAxis(java.lang.Integer index,
                          java.lang.Double value,
                          PolarPoint pp)
Maps the point on the specified radar axis to the polar point, when the relative position on the radar axis is already known.

Parameters:
idx - radar axis index
value - position on the axis
Returns:
polar point in the polar coordinate system