lt.monarch.chart.chart2D.series
Class QuoteOHLCStrategy

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

public class QuoteOHLCStrategy
extends QuoteHLCStrategy<Projector2D>

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

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.chart2D.series.QuoteHLCStrategy
np, p1, 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
QuoteOHLCStrategy()
          Stock Open-High-Low-Close strategy constructor
 
Method Summary
Modifier and Type Method and Description
protected  Line2D[] createLines(double w, double x, double min, double max, double open, double close)
          Return primitive shape array of stock
 
Methods inherited from class lt.monarch.chart.chart2D.series.QuoteHLCStrategy
dispose, draw, getRelativeWidth, setRelativeWidth
 
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
 

Constructor Detail

QuoteOHLCStrategy

public QuoteOHLCStrategy()
Stock Open-High-Low-Close strategy constructor

Method Detail

createLines

protected Line2D[] createLines(double w,
                               double x,
                               double min,
                               double max,
                               double open,
                               double close)
Description copied from class: QuoteHLCStrategy
Return primitive shape array of stock

Overrides:
createLines in class QuoteHLCStrategy<Projector2D>
Parameters:
w - width of open or close
x - key data column, which corresponds to X value
min - extent data column, which corresponds low value
max - value data column, which corresponds high value
open - extra data column, which corresponds open value
close - extra2 data column, which corresponds close value
Returns:
stock primitive array of shape Line2D