|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.mapper.AbstractAxisMapper
lt.monarch.chart.mapper.AbstractRadarMapper
public abstract class AbstractRadarMapper extends AbstractAxisMapper
| Modifier and Type | Field and Description |
|---|---|
protected int |
axisCount
Number of axes |
protected AxisMapper |
axisMapper
An axis mapper object used to map data values on each radar axis |
protected double |
initAngle
The initial rotation angle for axis (in radians) |
protected java.util.ArrayList<AbstractDataModel> |
models
An array of registered data models |
double |
radius
Relative length of radar axes. |
| Constructor and Description |
|---|
AbstractRadarMapper(AxisMapper axisMapper)
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
formatKey(java.lang.Object key)
Provides text representation of the coordinate value. |
int |
getAxisCount()
Returns the number of axes in the chart. |
double |
getInitAxisPosition()
Returns the initial rotation angle for axis (in radians). |
double |
getPreferredHeight(AbstractGraphics g,
AbstractTextPainter textPainter)
Gets preferred height. |
double |
getPreferredWidth(AbstractGraphics g,
AbstractTextPainter textPainter)
Gets preferred width. |
AxisScale |
getScale()
Returns a scale object for this axis. |
AxisMapperRange |
getViewRange()
Gets an AxisMapperRange object representing visible axis range. |
abstract PolarPoint |
map(java.lang.Double angle,
java.lang.Object value)
Maps the polar values the polar point. |
double |
map(java.lang.Object key)
Deprecated. |
abstract 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. |
void |
setAxisCount(int axisCount)
|
void |
setInitAxisPosition(double angle)
Sets the initial rotation angle for axis (in radians). |
| 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 |
| Field Detail |
|---|
public final double radius
0.4d.
protected final AxisMapper axisMapper
protected java.util.ArrayList<AbstractDataModel> models
protected int axisCount
protected double initAngle
| Constructor Detail |
|---|
public AbstractRadarMapper(AxisMapper axisMapper)
| Method Detail |
|---|
public java.lang.String formatKey(java.lang.Object key)
AxisMapper
key - value in some coordinate space
public double getPreferredHeight(AbstractGraphics g,
AbstractTextPainter textPainter)
AxisMapper
g - graphics contexttextPainter - text painter mode
public double getPreferredWidth(AbstractGraphics g,
AbstractTextPainter textPainter)
AxisMapper
g - graphics contexttextPainter - text painter modepublic AxisScale getScale()
AxisMapper
public AxisMapperRange getViewRange()
AxisMapperAxisMapperRange object representing visible axis range. The object can
be used to set visible axis range. Returns normalized value from [0..1]
@Deprecated public double map(java.lang.Object key)
AxisMapper
key - value in some coordinate spacepublic void setAxisCount(int axisCount)
public int getAxisCount()
public void setInitAxisPosition(double angle)
angle - rotation angle in radianspublic double getInitAxisPosition()
public abstract PolarPoint map(java.lang.Double angle,
java.lang.Object value)
angle - angle of the polar coordinatevalue - radius of the polar coordinate
public abstract PolarPoint mapAxis(java.lang.Integer index,
java.lang.Object value)
index - radar axis indexvalue - position on the axis
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||