lt.monarch.chart.chart2D.series
Class AbstractVectorStrategy<ChartProjector extends Projector>

java.lang.Object
  extended by lt.monarch.chart.chart2D.series.AbstractVectorStrategy<ChartProjector>
All Implemented Interfaces:
java.io.Serializable, AbstractStrategy
Direct Known Subclasses:
VectorStrategy

public abstract class AbstractVectorStrategy<ChartProjector extends Projector>
extends java.lang.Object
implements AbstractStrategy, java.io.Serializable

Abstract drawing strategy. Should be used as a strategy patter in series for the series drawing customization.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  java.lang.Object baseValue
          Base value
protected  boolean dirty
          True, if dirty, otherwise -false
protected  PlaneMapper mapper
          Plane mapper (for polar, or Cartesian coordinates)
protected  MetaDataModel metaModel
          Meta data model
protected  java.util.Map<DataColumnType,MinMaxValues> minMaxValues
          Min Max values
protected  ArrayDataModel model
          Chart data model
protected  Projector projector
          Point projector
protected  Style style
          Series style
protected  AxisMapper xMapper
          X axis mapper
protected  AxisMapper yMapper
          Y axis mapper
protected  double zoomMultiplier
          Zoom multiplier
 
Constructor Summary
Constructor and Description
AbstractVectorStrategy()
           
 
Method Summary
Modifier and Type Method and Description
abstract  void dispose()
          Disposes the object
 void draw(AbstractGraphics g, ChartProjector projector, PlaneMapper mapper, HotSpotMap hotMap, Style style, java.lang.Object baseValue, VectorSeries series)
          Draws the series in the chart area.
protected  void finalize()
           
protected  java.util.Map<DataColumnType,MinMaxValues> getMinMaxValues()
          Gets the minMaxValues value
 ArrayDataModel getModel()
          Gets strategy data model
protected  Point2D projectPoint(Projector projector, GeneralPoint ptt, Point2D planePoint, double x, double y)
          Projects the point
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xMapper

protected AxisMapper xMapper
X axis mapper


yMapper

protected AxisMapper yMapper
Y axis mapper


mapper

protected PlaneMapper mapper
Plane mapper (for polar, or Cartesian coordinates)


model

protected ArrayDataModel model
Chart data model


metaModel

protected MetaDataModel metaModel
Meta data model


style

protected Style style
Series style


zoomMultiplier

protected double zoomMultiplier
Zoom multiplier


baseValue

protected java.lang.Object baseValue
Base value


minMaxValues

protected java.util.Map<DataColumnType,MinMaxValues> minMaxValues
Min Max values


dirty

protected boolean dirty
True, if dirty, otherwise -false


projector

protected Projector projector
Point projector

Constructor Detail

AbstractVectorStrategy

public AbstractVectorStrategy()
Method Detail

draw

public void draw(AbstractGraphics g,
                 ChartProjector projector,
                 PlaneMapper mapper,
                 HotSpotMap hotMap,
                 Style style,
                 java.lang.Object baseValue,
                 VectorSeries series)
Draws the series in the chart area.

Parameters:
g - graphics context
projector - projector instance
mapper - plane mapper
hotMap - hot spot map
style - style object
baseValue - base value
series - scatter series instance

dispose

public abstract void dispose()
Disposes the object


finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

getMinMaxValues

protected java.util.Map<DataColumnType,MinMaxValues> getMinMaxValues()
Gets the minMaxValues value

Returns:
the minMaxValues value

getModel

public ArrayDataModel getModel()
Description copied from interface: AbstractStrategy
Gets strategy data model

Specified by:
getModel in interface AbstractStrategy
Returns:
strategy data model

projectPoint

protected Point2D projectPoint(Projector projector,
                               GeneralPoint ptt,
                               Point2D planePoint,
                               double x,
                               double y)
Projects the point

Parameters:
projector - projector
ptt - template point
planePoint - template point to map plane coordinates
x - x coordinate to map
y - y coordinate to map