|
|||||||||
| 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.QuoteCandleStrategy<ChartProjector>
public class QuoteCandleStrategy<ChartProjector extends Projector> extends AbstractQuoteStrategy<ChartProjector>
Stock series drawing strategy. This strategy draws series as a sequence of the candle 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 |
|---|
QuoteCandleStrategy()
Stock QuoteCandle strategy constructor |
| Modifier and Type | Method and Description |
|---|---|
protected Line2D[] |
createLines(double w,
Polygon2D polygon,
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 |
setCandleWidthRange(long min,
long max)
Sets stock candle width range in pixels. |
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 QuoteCandleStrategy()
| Method Detail |
|---|
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,
Polygon2D polygon,
double x,
double min,
double max,
double open,
double close)
w - width of open or closepolygon - hot spot rectangle shape, which drawing, if he is selectedx - 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()
public void setCandleWidthRange(long min,
long max)
min - minimal width of stock symbol.max - maximal width of stock symbol.public void dispose()
AbstractQuoteStrategy
dispose in class AbstractQuoteStrategy<ChartProjector extends Projector>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||