lt.monarch.chart.mapper
Class RadarMapper
java.lang.Object
lt.monarch.chart.mapper.AbstractAxisMapper
lt.monarch.chart.mapper.AbstractRadarMapper
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
Method Summary
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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 coordinatevalue - 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 indexvalue - 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 indexvalue - position on the axis
- Returns:
- polar point in the polar coordinate system