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

java.lang.Object
  extended by lt.monarch.chart.chart2D.series.AbstractQuoteStrategy<ChartProjector>
      extended by lt.monarch.chart.chart2D.series.QuoteHLStrategy<ChartProjector>
All Implemented Interfaces:
java.io.Serializable

public class QuoteHLStrategy<ChartProjector extends Projector>
extends AbstractQuoteStrategy<ChartProjector>

Stock series drawing strategy. This strategy draws series as a sequence of the High-Low symbols

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  Point2D np
           
protected  Point2D p1
           
protected  Point2D p2
           
 
Fields inherited from class lt.monarch.chart.chart2D.series.AbstractQuoteStrategy
baseValue, dirty, mapper, metaModel, minMaxValues, model, paintMode, planePoint, projector, style, tempPoint, xMapper, yMapper, zoomMultiplier
 
Constructor Summary
Constructor and Description
QuoteHLStrategy()
          Stock High-Low strategy constructor
 
Method Summary
Modifier and Type Method and Description
protected  Line2D createLines(double x, double min, double max)
          Return primitive shape of stock
 void dispose()
          Disposes the object
 void draw(AbstractGraphics g, ChartProjector projector, PlaneMapper mapper, HotSpotMap hotMap, Style style, java.lang.Object baseValue, StockSeries series)
          Draws the series in the chart area.
 
Methods inherited from class lt.monarch.chart.chart2D.series.AbstractQuoteStrategy
finalize, getMinMaxValues, projectPoint
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

p1

protected Point2D p1

p2

protected Point2D p2

np

protected Point2D np
Constructor Detail

QuoteHLStrategy

public QuoteHLStrategy()
Stock High-Low strategy constructor

Method Detail

dispose

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

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

draw

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

Overrides:
draw in class AbstractQuoteStrategy<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

createLines

protected Line2D createLines(double x,
                             double min,
                             double max)
Return primitive shape of stock

Parameters:
x - value of key
min - value of low
max - value of high
Returns:
stock primitive shape Line2D