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

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

public class VectorStrategy<ChartProjector extends Projector>
extends AbstractVectorStrategy<ChartProjector>

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  Point2D linePt1
           
protected  Point2D linePt2
           
protected  Point2D np
           
 
Fields inherited from class lt.monarch.chart.chart2D.series.AbstractVectorStrategy
baseValue, dirty, mapper, metaModel, minMaxValues, model, projector, style, xMapper, yMapper, zoomMultiplier
 
Constructor Summary
Constructor and Description
VectorStrategy()
           
 
Method Summary
Modifier and Type Method and Description
 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.
 double getArrowAngle()
          Return angle of the arrow head
 double getInnerArrowHeadPosition()
          Return inner position of the arrow head
 void setArrowAngle(double arrowAngle)
          Sets the angle of the arrow head.
 void setInnerArrowHeadPosition(double innerArrowHeadPosition)
          Sets the inner position of the arrow head.
 
Methods inherited from class lt.monarch.chart.chart2D.series.AbstractVectorStrategy
finalize, getMinMaxValues, getModel, projectPoint
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

linePt1

protected Point2D linePt1

linePt2

protected Point2D linePt2

np

protected Point2D np
Constructor Detail

VectorStrategy

public VectorStrategy()
Method Detail

draw

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

Overrides:
draw in class AbstractVectorStrategy<ChartProjector extends Projector>
Parameters:
g - graphics context
projector - projector instance
mapper - plane mapper
hotMap - hot spot map
style - style object
baseValue - base value
series - scatter series instance

setArrowAngle

public void setArrowAngle(double arrowAngle)
Sets the angle of the arrow head. It can be between 5 to 45 degrees.

Parameters:
arrowAngle - Arrow head angle

getArrowAngle

public double getArrowAngle()
Return angle of the arrow head

Returns:
Arrow head angle (in degrees)

setInnerArrowHeadPosition

public void setInnerArrowHeadPosition(double innerArrowHeadPosition)
Sets the inner position of the arrow head. The value has to be between 0.2 and 1; The values are clamped at 0.2 and 1.0.

Parameters:
innerArrowHeadPosition - The innerArrowHeadPosition to set.

getInnerArrowHeadPosition

public double getInnerArrowHeadPosition()
Return inner position of the arrow head

Returns:
Inner position of the arrow head

dispose

public void dispose()
Description copied from class: AbstractVectorStrategy
Disposes the object

Specified by:
dispose in class AbstractVectorStrategy<ChartProjector extends Projector>