|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.chart2D.series.AbstractQuoteStrategy<ChartProjector>
lt.monarch.chart.chart2D.series.QuoteHLCStrategy<ChartProjector>
public class QuoteHLCStrategy<ChartProjector extends Projector> extends AbstractQuoteStrategy<ChartProjector>
Stock series drawing strategy. This strategy draws series as a sequence of the High-Low-Close symbols
| 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 and Description |
|---|
QuoteHLCStrategy()
Stock High-Low-Close strategy constructor |
| 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 |
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. |
double |
getRelativeWidth()
Returns relative stock element width in interval [0;1]. |
void |
setRelativeWidth(double width)
Sets relative stock element width in interval [0;1]. |
| 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 |
|---|
protected Point2D p1
protected Point2D p2
protected Point2D np
| Constructor Detail |
|---|
public QuoteHLCStrategy()
| Method Detail |
|---|
public void dispose()
AbstractQuoteStrategy
dispose in class AbstractQuoteStrategy<ChartProjector extends Projector>
public void draw(AbstractGraphics g,
ChartProjector projector,
PlaneMapper mapper,
HotSpotMap hotMap,
Style style,
java.lang.Object baseValue,
StockSeries series)
AbstractQuoteStrategy
draw in class AbstractQuoteStrategy<ChartProjector extends Projector>g - graphics contextprojector - projector instancemapper - plane mapperhotMap - hot spot mapstyle - style objectbaseValue - base valueseries - scatter series instance
protected Line2D[] createLines(double w,
double x,
double min,
double max,
double open,
double close)
w - width of open or closex - key data column, which corresponds to X valuemin - extent data column, which corresponds low valuemax - value data column, which corresponds high valueopen - extra data column, which corresponds open valueclose - extra2 data column, which corresponds close valuepublic void setRelativeWidth(double width)
width - relative width in interval [0;1]public double getRelativeWidth()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||