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, resamplingModeProperty, strokeStyleProperty, TAG, xAxisIdProperty, yAxisIdProperty, zeroLineYProperty
invalidateElementCallback, isSelectedProperty, isVisibleProperty, opacityProperty, services
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) |
attachTo, detach, drawPointMarkers, getClipToBounds, getContext, getCurrentRenderPassData, getDataSeries, getDataSeriesLock, getDrawNaNAs, getPaletteProvider, getParentSurface, getPointMarker, getRenderPassDataLock, getRenderPassDataTransformation, getResamplingMode, getSeriesInfoProvider, getStrokeStyle, getXAxis, getXAxisId, getYAxis, getYAxisId, getYRange, getYZeroCoord, getZeroLineY, hasDataSeries, hitTest, hitTest, internalDraw, invalidateElement, isUpdateOfRenderPassDataRequired, isValidForDrawing, isValidForUpdate, onDataSeriesChanged, onDraw, onRenderSurfaceChanged, onStrokeStyleChanged, setClipRect, setClipToBounds, setDataSeries, setDrawNaNAs, setPaletteProvider, setPointMarker, setRenderPassDataTransformation, setResamplingMode, setSeriesInfoProvider, setStrokeStyle, setXAxisId, setYAxisId, setZeroLineY, update, updateRenderPassData, verticalSliceHitTest
addIsSelectedChangeListener, addIsVisibleChangeListener, decrementSuspend, getIsSelected, getIsSuspended, getIsVisible, getOpacity, getSelectedSeriesStyle, getServices, getUpdateSuspenderCount, isAttached, removeIsSelectedChangeListener, removeIsVisibleChangeListener, resumeUpdates, setIsSelected, setIsVisible, setOpacity, setSelectedSeriesStyle, suspendUpdates
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addIsSelectedChangeListener, addIsVisibleChangeListener, getIsSelected, getIsVisible, getOpacity, getSelectedSeriesStyle, removeIsSelectedChangeListener, removeIsVisibleChangeListener, setIsSelected, setIsVisible, setOpacity, setSelectedSeriesStyle
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