lt.monarch.chart.chart2D.series
Class RadarSeries

java.lang.Object
  extended by lt.monarch.chart.engine.AbstractChartObject<Tags>
      extended by lt.monarch.chart.AbstractChartSeries<Tags,ChartProjector>
          extended by lt.monarch.chart.chart2D.series.MarkerDecorableSeries<SeriesPaintTags,Projector2D>
              extended by lt.monarch.chart.chart2D.series.RadarSeries
All Implemented Interfaces:
java.io.Serializable, AbstractMarkerSeries, ChartEntity, ChartObject, ChartSeries, StyleEditorEntity

public class RadarSeries
extends MarkerDecorableSeries<SeriesPaintTags,Projector2D>

Displays a set of radar series. Radar series is essentially a line chart in a polar coordinate system.

See Also:
Serialized Form

Nested Class Summary
Modifier and Type Class and Description
 
Nested classes/interfaces inherited from class lt.monarch.chart.chart2D.series.MarkerDecorableSeries
MarkerDecorableSeries.MarkerEntity
 
Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.chart2D.series.MarkerDecorableSeries
baseValue, colorMapper, markerPainter, markers, minMaxValues, pseudoModel
 
Fields inherited from class lt.monarch.chart.AbstractChartSeries
metaModel, modelValidator, seriesName, seriesTransform, showLegend, showNullValues, symbol, xMapper, yMapper, zMapper
 
Fields inherited from class lt.monarch.chart.engine.AbstractChartObject
AXIS_SORT_POSITION, BREAK_LINE_POSITION, DEFAULT_SORT_POSITION, GRID_SORT_POSITION, MARKER_SERIES_SORT_POSITION, MARKERS_SORT_POSITION, paintStyle, SERIES_SORT_POSITION, sortPosition, style
 
Constructor Summary
Constructor and Description
RadarSeries(AbstractRadarMapper mapper, DataModel model)
          Constructs a new RadarSeries object
RadarSeries(AbstractRadarMapper mapper, DataModel model, MetaDataModel metaModel)
          Constructs a new RadarSeries object
 
Method Summary
Modifier and Type Method and Description
 void draw(AbstractGraphics g)
          Renders chart object on the Graphics context.
 java.util.ArrayList<java.util.ArrayList<MarkerConstraints>> getMarkerConstraints()
           
protected  GeneralPoint getPointForConstraint(ArrayDataModel model, int index)
           
 AbstractRadarStrategy<Projector2D> getStrategy()
          Gets line drawing strategy.
protected  void initLegendSymbol()
          Initializes a new LegendSymbol used for representing radar series in legend.
 void setStrategy(RadarStrategies strategy)
          Sets line drawing strategy.
 
Methods inherited from class lt.monarch.chart.chart2D.series.MarkerDecorableSeries
addMarker, addMarker, addMarker, calculateNullValue, copy, dataConstraintExtraction, drawMarkers, drawMarkers, generateConstaint, getBaseValue, getColorMapper, getKeyType, getMarkers, getMarkerStyle, getMaxValue, getMinValue, getPaintMode, getSortPosition, layout, mapMinMaxValue, removeMarker, setBaseValue, setColorMapper, setPaintMode
 
Methods inherited from class lt.monarch.chart.AbstractChartSeries
activate, checkDataModelRequirements, createLegendEntries, createLegendEntry, createLegendSymbol, deactivate, fillEntitySheet, getChartObjectBounds, getDataModel, getDescription, getMetaDataModel, getModelValidator, getName, getNearestChildEntity, getParentEntity, getProjector, getSeriesColor, getShortDescription, getShowNullValues, getXMapper, getYMapper, getZMapper, handleDataModelChangeEvent, setLegendSymbol, setName, setShowNullValues, setValidateData, showLegend, updateClippingToProjector
 
Methods inherited from class lt.monarch.chart.engine.AbstractChartObject
chart, copy, dispose, finalize, getChart, getPaintStyle, getParent, getStyle, getStyle, invalidate, isVisible, repaint, repaint, setChart, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface lt.monarch.chart.engine.ChartObject
dispose, getChart, getStyle, getStyle, invalidate, isVisible, repaint, repaint, setChart
 
Methods inherited from interface lt.monarch.chart.engine.StyleEditorEntity
getParent, getStyle
 

Constructor Detail

RadarSeries

public RadarSeries(AbstractRadarMapper mapper,
                   DataModel model)
Constructs a new RadarSeries object

Parameters:
mapper - radar mapper
model - data model

RadarSeries

public RadarSeries(AbstractRadarMapper mapper,
                   DataModel model,
                   MetaDataModel metaModel)
Constructs a new RadarSeries object

Parameters:
mapper - radar mapper
model - data model
model - data model
Method Detail

initLegendSymbol

protected void initLegendSymbol()
Initializes a new LegendSymbol used for representing radar series in legend.


setStrategy

public void setStrategy(RadarStrategies strategy)
Sets line drawing strategy. If you want to set your own custom strategy set it directly to the stylesheet, using tag "strategy", e.g. style.setObject("strategy", new MyStrategy());

Parameters:
strategy - drawing strategy

getStrategy

public AbstractRadarStrategy<Projector2D> getStrategy()
Gets line drawing strategy.

Returns:
line drawing strategy

draw

public void draw(AbstractGraphics g)
Description copied from interface: ChartObject
Renders chart object on the Graphics context.

Specified by:
draw in interface ChartObject
Overrides:
draw in class MarkerDecorableSeries<SeriesPaintTags,Projector2D>
Parameters:
g - graphics context

getPointForConstraint

protected GeneralPoint getPointForConstraint(ArrayDataModel model,
                                             int index)
Overrides:
getPointForConstraint in class MarkerDecorableSeries<SeriesPaintTags,Projector2D>

getMarkerConstraints

public java.util.ArrayList<java.util.ArrayList<MarkerConstraints>> getMarkerConstraints()
Overrides:
getMarkerConstraints in class MarkerDecorableSeries<SeriesPaintTags,Projector2D>