public abstract class OhlcRenderableSeriesBase extends BaseRenderableSeries
IOhlcDataSeriesValues
based renderable seriesModifier and Type | Field and Description |
---|---|
protected com.scichart.core.framework.SmartPropertyDouble |
dataPointWidthProperty |
protected com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.PenStyle> |
strokeDownStyleProperty |
protected com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.PenStyle> |
strokeUpStyleProperty |
clipToBoundsProperty, drawNaNAsProperty, invalidateElementCallback, isSelectedProperty, isVisibleProperty, opacityProperty, resamplingModeProperty, strokeStyleProperty, TAG, xAxisIdProperty, yAxisIdProperty, zeroLineYProperty
Modifier | Constructor and Description |
---|---|
protected |
OhlcRenderableSeriesBase(OhlcRenderPassData currentRenderPassData,
IHitProvider hitProvider,
INearestPointProvider nearestPointProvider)
Creates a new instance of
OhlcRenderableSeriesBase class |
Modifier and Type | Method and Description |
---|---|
void |
applyThemeProvider(IThemeProvider themeProvider)
Applies specified theme to current instance
|
protected void |
disposeCachedData()
This method is called when series should dispose any cached data
|
protected void |
drawAsLines(com.scichart.drawing.common.IAssetManager2D assetManager,
ISeriesDrawingManager drawingManager,
OhlcRenderPassData rpd)
Draws this series as vertical lines
|
double |
getDataPointWidth()
Gets a value between 0.0 and 1.0 which defines the fraction of available space each column should occupy
|
int |
getSeriesColor()
Gets the color which represents this
IRenderableSeries instance. |
com.scichart.drawing.common.PenStyle |
getStrokeDownStyle()
Gets the
PenStyle used for wicks and outlines on down-candles (close < open) |
com.scichart.drawing.common.PenStyle |
getStrokeUpStyle()
Gets the
PenStyle used for wicks and outlines on up-candles (close > open) |
com.scichart.data.model.IRange |
getXRange()
Returns the data range of the
IRenderableSeries on X direction by querying the associated data series
Individual RenderableSeries implementations may override this method to provide custom ranging on per-series basis |
protected void |
internalUpdate(com.scichart.drawing.common.IAssetManager2D assetManager,
RenderPassState renderPassState)
Updates this renderable series instances
|
protected void |
internalUpdateRenderPassData(ISeriesRenderPassData renderPassDataToUpdate,
IDataSeries<?,?> dataSeries,
com.scichart.data.numerics.ResamplingMode resamplingMode,
com.scichart.data.numerics.pointresamplers.IPointResamplerFactory factory)
Updates the current render pass data using the data series, resampling factory passed in
|
protected boolean |
isOfValidType(IDataSeries dataSeries)
Checks whether the data series instance is valid for this series
|
void |
setDataPointWidth(double dataPointWidth)
Sets a value between 0.0 and 1.0 which defines the fraction of available space each column should occupy
|
void |
setStrokeDownStyle(com.scichart.drawing.common.PenStyle strokeStyle)
Sets the
PenStyle used for wicks and outlines on down-candles (close < open) |
void |
setStrokeUpStyle(com.scichart.drawing.common.PenStyle strokeStyle)
Sets the
PenStyle used for wicks and outlines on up-candles (close > open) |
addIsSelectedChangeListener, addIsVisibleChangeListener, attachTo, decrementSuspend, detach, drawPointMarkers, getClipToBounds, getContext, getCurrentRenderPassData, getDataSeries, getDataSeriesLock, getDrawNaNAs, getIsSelected, getIsSuspended, getIsVisible, getOpacity, getPaletteProvider, getParentSurface, getPointMarker, getRenderPassDataLock, getRenderPassDataTransformation, getResamplingMode, getSelectedSeriesStyle, getSeriesInfoProvider, getServices, getStrokeStyle, getXAxis, getXAxisId, getYAxis, getYAxisId, getYRange, getYZeroCoord, getZeroLineY, hasDataSeries, hitTest, hitTest, internalDraw, invalidateElement, isAttached, isUpdateOfRenderPassDataRequired, isValidForDrawing, isValidForUpdate, onDraw, onRenderSurfaceChanged, removeIsSelectedChangeListener, removeIsVisibleChangeListener, resumeUpdates, setClipRect, setClipToBounds, setDataSeries, setDrawNaNAs, setIsSelected, setIsVisible, setOpacity, setPaletteProvider, setPointMarker, setRenderPassDataTransformation, setResamplingMode, setSelectedSeriesStyle, setSeriesInfoProvider, setStrokeStyle, setXAxisId, setYAxisId, setZeroLineY, suspendUpdates, update, updateRenderPassData, verticalSliceHitTest
protected final com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.PenStyle> strokeUpStyleProperty
protected final com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.PenStyle> strokeDownStyleProperty
protected final com.scichart.core.framework.SmartPropertyDouble dataPointWidthProperty
protected OhlcRenderableSeriesBase(OhlcRenderPassData currentRenderPassData, IHitProvider hitProvider, INearestPointProvider nearestPointProvider)
OhlcRenderableSeriesBase
classcurrentRenderPassData
- The render pass data instancehitProvider
- The hit provider instancenearestPointProvider
- The nearest point provider instancepublic final com.scichart.drawing.common.PenStyle getStrokeUpStyle()
PenStyle
used for wicks and outlines on up-candles (close > open)PenStyle
public final void setStrokeUpStyle(com.scichart.drawing.common.PenStyle strokeStyle)
PenStyle
used for wicks and outlines on up-candles (close > open)strokeStyle
- The stroke up PenStyle
public final com.scichart.drawing.common.PenStyle getStrokeDownStyle()
PenStyle
used for wicks and outlines on down-candles (close < open)PenStyle
public final void setStrokeDownStyle(com.scichart.drawing.common.PenStyle strokeStyle)
PenStyle
used for wicks and outlines on down-candles (close < open)strokeStyle
- The stroke down PenStyle
public final double getDataPointWidth()
public final void setDataPointWidth(double dataPointWidth)
dataPointWidth
- The data point widthpublic int getSeriesColor()
IRenderableSeries
instance.getSeriesColor
in interface IRenderableSeries
getSeriesColor
in class BaseRenderableSeries
IRenderableSeries
instance.public void applyThemeProvider(IThemeProvider themeProvider)
applyThemeProvider
in interface IThemeable
applyThemeProvider
in class BaseRenderableSeries
themeProvider
- The IThemeProvider
instance which provides new theme for current instanceprotected void internalUpdate(com.scichart.drawing.common.IAssetManager2D assetManager, RenderPassState renderPassState)
internalUpdate
in class BaseRenderableSeries
assetManager
- The IAssetManager2D
used for this render passrenderPassState
- The RenderPassState
for this render passprotected void disposeCachedData()
disposeCachedData
in class BaseRenderableSeries
protected void internalUpdateRenderPassData(ISeriesRenderPassData renderPassDataToUpdate, IDataSeries<?,?> dataSeries, com.scichart.data.numerics.ResamplingMode resamplingMode, com.scichart.data.numerics.pointresamplers.IPointResamplerFactory factory) throws java.lang.Exception
internalUpdateRenderPassData
in class BaseRenderableSeries
renderPassDataToUpdate
- The render pass data to updatedataSeries
- The data series associated with this renderable series instanceresamplingMode
- The resampling mode associated with this renderable series instancefactory
- The IPointResamplerFactory
to usejava.lang.Exception
- If any exception occursprotected final void drawAsLines(com.scichart.drawing.common.IAssetManager2D assetManager, ISeriesDrawingManager drawingManager, OhlcRenderPassData rpd)
assetManager
- The IAssetManager2D
for this render passdrawingManager
- The ISeriesDrawingManager
for this render passrpd
- The current render pass dataprotected final boolean isOfValidType(IDataSeries dataSeries)
isOfValidType
in class BaseRenderableSeries
dataSeries
- The data series instance to checkpublic com.scichart.data.model.IRange getXRange()
IRenderableSeries
on X direction by querying the associated data series
Individual RenderableSeries implementations may override this method to provide custom ranging on per-series basisgetXRange
in interface IRenderableSeries
getXRange
in class BaseRenderableSeries