lt.monarch.chart.chart2D.series
Class QuoteHLStrategy<ChartProjector extends Projector>
java.lang.Object
lt.monarch.chart.chart2D.series.AbstractQuoteStrategy<ChartProjector>
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
| Fields inherited from class lt.monarch.chart.chart2D.series.AbstractQuoteStrategy |
baseValue, dirty, mapper, metaModel, minMaxValues, model, paintMode, planePoint, projector, style, tempPoint, xMapper, yMapper, zoomMultiplier |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
p1
protected Point2D p1
p2
protected Point2D p2
np
protected Point2D np
QuoteHLStrategy
public QuoteHLStrategy()
- Stock High-Low strategy constructor
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 contextprojector - projector instancemapper - plane mapperhotMap - hot spot mapstyle - style objectbaseValue - base valueseries - scatter series instance
createLines
protected Line2D createLines(double x,
double min,
double max)
- Return primitive shape of stock
- Parameters:
x - value of keymin - value of lowmax - value of high
- Returns:
- stock primitive shape Line2D