public class CandlestickRenderer extends Renderer2D
SeriesRenderer
that draws candlesticks in its containing plot.Modifier and Type | Class and Description |
---|---|
protected static interface |
CandlestickRenderer.ProcessCandlesticks
Defines the signature of delegates called to process candlesticks.
|
Renderer2D.ProcessPoint, Renderer2D.ProcessRange
Constructor and Description |
---|
CandlestickRenderer(com.mindfusion.common.ObservableList<Series> series)
Initializes a new instance of the
CandlestickRenderer class. |
Modifier and Type | Method and Description |
---|---|
protected void |
draw(RenderContext context)
SeriesRenderer.draw override.
|
protected void |
drawHighlight(RenderContext context,
HitResult hitResult)
Renderer2D.drawHighlight override.
|
com.mindfusion.drawing.Brush |
effectiveFill(int seriesIndex,
int dataIndex,
RenderContext context)
Gets the brush that should be used to fill the representation of specified data item.
|
double |
getCandlestickWidth()
Gets the width of the candlesticks.
|
int |
getCloseDimension()
Gets the index of the dimension, containing close values.
|
int |
getHighDimension()
Gets the index of the dimension, containing high values.
|
int |
getLowDimension()
Gets the index of the dimension, containing low values.
|
int |
getOpenDimension()
Gets the index of the dimension, containing open values.
|
HitResult |
hitTest(RenderContext context,
java.awt.geom.Point2D location)
Renderer2D.hitTest override.
|
protected void |
measureDataRange(RenderContext context)
Renderer2D.measureDataRange override.
|
void |
setCandlestickWidth(double value)
Sets the width of the candlesticks.
|
void |
setCloseDimension(int value)
Sets the index of the dimension, containing close values.
|
void |
setHighDimension(int value)
Sets the index of the dimension, containing high values.
|
void |
setLowDimension(int value)
Sets the index of the dimension, containing low values.
|
void |
setOpenDimension(int value)
Sets the index of the dimension, containing open values.
|
domainAxis, domainData, domainSorted, enumSeries, enumVisiblePointPairs, enumVisiblePoints, enumVisibleRanges, getFirstInRange, getFirstInRange, getLastInRange, getLastInRange, getMaxXSum, getMaxXSumPositive, getMaxYSum, getMaxYSumPositive, getMinXSumNegative, getMinYSumNegative, getPixel, getPixel, getSeries, getXAxis, getYAxis, imageData, setSeries, setXAxis, setYAxis, startMeasureData, xData, xSorted, yData, ySorted
addPropertyChangeListener, createTextRenderer, dataChanged, domainDimension, effectiveLabelBackground, effectiveLabelBorderPen, effectiveStroke, getLabelBrush, getLabelFontName, getLabelFontSize, getLabelFontStyle, getSeriesStyle, getShowDataLabels, getShowHighlight, getShowToolTips, onPropertyChanged, onSeriesDataChanged, removePropertyChangeListener, searchStyle, setLabelBrush, setLabelFontName, setLabelFontSize, setLabelFontStyle, setSeriesStyle, setShowDataLabels, setShowHighlight, setShowToolTips, setToolTip
public CandlestickRenderer(com.mindfusion.common.ObservableList<Series> series)
CandlestickRenderer
class.series
- A list of Series
that should be rendered by this object.protected void measureDataRange(RenderContext context)
measureDataRange
in class Renderer2D
context
- A RenderContext instance.protected void draw(RenderContext context)
context
- A RenderContext instance.public HitResult hitTest(RenderContext context, java.awt.geom.Point2D location)
hitTest
in class Renderer2D
context
- A RenderContext instance.location
- A PointD specifying where to look for a candlestick.protected void drawHighlight(RenderContext context, HitResult hitResult)
drawHighlight
in class Renderer2D
context
- A RenderContext instance.hitResult
- A HitResult instance identifying highlighted data item.public int getOpenDimension()
public void setOpenDimension(int value)
public int getCloseDimension()
public void setCloseDimension(int value)
public int getLowDimension()
public void setLowDimension(int value)
public int getHighDimension()
public void setHighDimension(int value)
public double getCandlestickWidth()
public void setCandlestickWidth(double value)
public com.mindfusion.drawing.Brush effectiveFill(int seriesIndex, int dataIndex, RenderContext context)
effectiveFill
in class SeriesRenderer
seriesIndex
- An integer index of a Series within the list of series rendered by this SeriesRenderer.dataIndex
- An integer index of the data item in specified series.context
- A RenderContext instance.