public abstract class StackedSeriesCollectionBase<T extends IStackedRenderableSeries> extends com.scichart.core.observable.ObservableCollection<T> implements IRenderableSeries, ISciChartSurfaceProvider
IStackedRenderableSeries
within SciChart.Modifier and Type | Field and Description |
---|---|
protected com.scichart.charting.visuals.renderableSeries.InvalidateRenderableSeriesCallback |
invalidateElementCallback |
protected com.scichart.core.framework.SmartPropertyBoolean |
isSelectedProperty |
protected com.scichart.core.framework.SmartPropertyBoolean |
isVisibleProperty |
protected static java.lang.String |
OPERATION_NOT_SUPPORTED_MESSAGE |
protected com.scichart.core.framework.SmartProperty<com.scichart.data.numerics.ResamplingMode> |
resamplingModeProperty |
protected static java.lang.String |
TAG |
protected com.scichart.core.framework.SmartProperty<java.lang.String> |
xAxisIdProperty |
protected com.scichart.core.framework.SmartProperty<java.lang.String> |
yAxisIdProperty |
Modifier | Constructor and Description |
---|---|
protected |
StackedSeriesCollectionBase(ISeriesInfoProvider seriesInfoProvider)
Creates a new instance of
StackedSeriesCollectionBase class |
Modifier and Type | Method and Description |
---|---|
void |
addIsSelectedChangeListener(RenderableSeriesChangeListener listener)
Add the listener which should be invoked if this series becomes selected/unselected
|
void |
addIsVisibleChangeListener(RenderableSeriesChangeListener listener)
Add the listener which should be invoked if this series becomes visible/invisible
|
void |
applyThemeProvider(IThemeProvider themeProvider)
Applies specified theme to current instance
|
void |
attachTo(com.scichart.core.IServiceContainer services) |
void |
decrementSuspend() |
void |
detach() |
android.content.Context |
getContext() |
ISeriesRenderPassData |
getCurrentRenderPassData()
Returns the current
ISeriesRenderPassData instance which is used for render pass |
IDataSeries |
getDataSeries()
Gets the
IDataSeries associated with this series |
IReadWriteLock |
getDataSeriesLock()
Gets the
IReadWriteLock instance to lock data series |
boolean |
getIsSelected()
Gets whether this series is selected
|
boolean |
getIsSuspended() |
boolean |
getIsVisible()
Gets whether this series is visible when drawn
|
float |
getOpacity()
Gets the opacity factor applied to
IRenderableSeries the when it is rendered on SciChartSurface . |
IPaletteProvider |
getPaletteProvider()
Gets the
IPaletteProvider instance associated with this series |
ISciChartSurface |
getParentSurface()
Gets the parent surface that this instance is associated with
|
IPointMarker |
getPointMarker()
Gets the
IPointMarker for this renderable series |
IReadWriteLock |
getRenderPassDataLock()
Gets the
IReadWriteLock instance to lock render pass data |
IRenderPassDataTransformation |
getRenderPassDataTransformation()
Get's the
IRenderPassDataTransformation instance associated with this series. |
com.scichart.data.numerics.ResamplingMode |
getResamplingMode()
Gets the
ResamplingMode used when drawing this series |
ISeriesStyle |
getSelectedSeriesStyle()
Gets the
ISeriesStyle which is applied when series is selected |
int |
getSeriesColor()
Gets the color which represents this
IRenderableSeries instance. |
ISeriesInfoProvider |
getSeriesInfoProvider()
Gets the
ISeriesInfoProvider instance associated with this series. |
com.scichart.core.IServiceContainer |
getServices() |
com.scichart.drawing.common.PenStyle |
getStrokeStyle()
Gets the stroke style for this renderable series
|
IAxis |
getXAxis()
Gets the XAxis that this
IRenderableSeries is associated with |
java.lang.String |
getXAxisId()
Gets the id of XAxis that this
IRenderableSeries is associated with |
IAxis |
getYAxis()
Gets the YAxis that this
IRenderableSeries is associated with |
java.lang.String |
getYAxisId()
Gets the id of YAxis that this
IRenderableSeries is associated with |
boolean |
hasDataSeries()
Gets whether this renderable series has data series to draw
|
void |
hitTest(HitTestInfo hitTestResult,
float x,
float y)
Performs a hit-test at the specific point (x,y coordinate on the parent
IRenderableSeriesArea |
void |
hitTest(HitTestInfo hitTestResult,
float x,
float y,
float hitTestRadius)
Performs a hit-test at the specific point (x,y coordinate on the parent
IRenderableSeriesArea |
protected abstract void |
internalUpdate(com.scichart.drawing.common.IAssetManager2D assetManager2D,
RenderPassState renderPassState)
Updates this renderable series instance and it's children.
|
void |
invalidateElement() |
boolean |
isAttached() |
boolean |
isValidForDrawing()
Checks whether this series is valid for drawing
|
boolean |
isValidForUpdate()
Checks whether this series is valid for update
|
void |
onDraw(com.scichart.drawing.common.IRenderContext2D renderContext,
com.scichart.drawing.common.IAssetManager2D assetManager) |
void |
onRenderSurfaceChanged()
Called when new
IRenderSurface instance is set for parent ISciChartSurface |
void |
removeIsSelectedChangeListener(RenderableSeriesChangeListener listener)
Removes the listener which should invoke if this series become selected/unselected
|
void |
removeIsVisibleChangeListener(RenderableSeriesChangeListener listener)
Removes the listener which should invoke if this series become visible/invisible
|
void |
resumeUpdates(com.scichart.core.framework.IUpdateSuspender suspender) |
void |
setDataSeries(IDataSeries dataSeries)
Sets the
IDataSeries associated with this series |
void |
setIsSelected(boolean isSelected)
Sets whether this series is selected
|
void |
setIsVisible(boolean isVisible)
Sets whether this series is visible when drawn
|
void |
setOpacity(float opacity)
Sets the opacity factor applied to
IRenderableSeries the when it is rendered on SciChartSurface . |
void |
setPaletteProvider(IPaletteProvider paletteProvider)
Set the
IPaletteProvider instance associated with this series |
void |
setPointMarker(IPointMarker pointMarker)
Sets the
IPointMarker for this renderable series |
void |
setRenderPassDataTransformation(IRenderPassDataTransformation renderPassDataTransformation)
Set's the
IRenderPassDataTransformation instance associated with this series. |
void |
setResamplingMode(com.scichart.data.numerics.ResamplingMode resamplingMode)
Sets the
ResamplingMode used when drawing this series |
void |
setSelectedSeriesStyle(ISeriesStyle selectedSeriesStyle)
Sets the
ISeriesStyle which is applied when series is selected |
void |
setSeriesInfoProvider(ISeriesInfoProvider seriesInfoProvider)
Sets the
ISeriesInfoProvider instance associated with this series. |
void |
setStrokeStyle(com.scichart.drawing.common.PenStyle strokeStyle)
Sets the stroke style of this renderable series
|
void |
setXAxisId(java.lang.String xAxisId)
Sets the id of XAxis that this
IRenderableSeries is associated with |
void |
setYAxisId(java.lang.String yAxisId)
Sets the id of YAxis that this
IRenderableSeries is associated with |
com.scichart.core.framework.IUpdateSuspender |
suspendUpdates() |
void |
update(com.scichart.drawing.common.IAssetManager2D assetManager,
RenderPassState renderPassState)
Updates the state of this
IUpdatable before rendering |
void |
updateRenderPassData(IAxis xAxis,
IAxis yAxis,
RenderPassState renderPassState)
Called during render pass and updates current render pass data
|
protected abstract void |
updateStackedRenderPassDataValues(IAxis xAxis,
IAxis yAxis)
Called during render pass and updates every stacked render pass data of the children series
|
void |
verticalSliceHitTest(HitTestInfo hitTestResult,
float x,
float y)
Performs a hit-test at the specific point with zero hit-test radium.
|
add, add, addAll, addAll, addObserver, clear, remove, remove, removeAll, removeObserver, removeRange, retainAll, set
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeIf, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
finalize, getClass, notify, notifyAll, wait, wait, wait
getXRange, getYRange
protected static final java.lang.String OPERATION_NOT_SUPPORTED_MESSAGE
protected static final java.lang.String TAG
protected final com.scichart.charting.visuals.renderableSeries.InvalidateRenderableSeriesCallback invalidateElementCallback
protected final com.scichart.core.framework.SmartProperty<com.scichart.data.numerics.ResamplingMode> resamplingModeProperty
protected final com.scichart.core.framework.SmartProperty<java.lang.String> xAxisIdProperty
protected final com.scichart.core.framework.SmartProperty<java.lang.String> yAxisIdProperty
protected final com.scichart.core.framework.SmartPropertyBoolean isVisibleProperty
protected final com.scichart.core.framework.SmartPropertyBoolean isSelectedProperty
protected StackedSeriesCollectionBase(ISeriesInfoProvider seriesInfoProvider)
StackedSeriesCollectionBase
classseriesInfoProvider
- The ISeriesInfoProvider
instance associated with this series.public int getSeriesColor()
IRenderableSeries
IRenderableSeries
instance.getSeriesColor
in interface IRenderableSeries
IRenderableSeries
instance.public com.scichart.drawing.common.PenStyle getStrokeStyle()
getStrokeStyle
in interface IRenderableSeries
public void setStrokeStyle(com.scichart.drawing.common.PenStyle strokeStyle)
setStrokeStyle
in interface IRenderableSeries
strokeStyle
- New stroke stylepublic float getOpacity()
IRenderableSeries
the when it is rendered on SciChartSurface
.
Default opacity is 1.0. Expected values are between 0.0 and 1.0.getOpacity
in interface IRenderableSeries
public void setOpacity(float opacity)
IRenderableSeries
the when it is rendered on SciChartSurface
.
Default opacity is 1.0. Expected values are between 0.0 and 1.0.setOpacity
in interface IRenderableSeries
opacity
- The new opacity factor.public void setSelectedSeriesStyle(ISeriesStyle selectedSeriesStyle)
ISeriesStyle
which is applied when series is selectedsetSelectedSeriesStyle
in interface IRenderableSeries
selectedSeriesStyle
- The new series selected stylepublic ISeriesStyle getSelectedSeriesStyle()
ISeriesStyle
which is applied when series is selectedgetSelectedSeriesStyle
in interface IRenderableSeries
public IPointMarker getPointMarker()
IPointMarker
for this renderable seriesgetPointMarker
in interface IRenderableSeries
public void setPointMarker(IPointMarker pointMarker)
IPointMarker
for this renderable seriessetPointMarker
in interface IRenderableSeries
pointMarker
- New point markerpublic IDataSeries getDataSeries()
IDataSeries
associated with this seriesgetDataSeries
in interface IRenderableSeries
public void setDataSeries(IDataSeries dataSeries)
IDataSeries
associated with this seriessetDataSeries
in interface IRenderableSeries
dataSeries
- New data seriespublic final ISeriesRenderPassData getCurrentRenderPassData()
ISeriesRenderPassData
instance which is used for render passgetCurrentRenderPassData
in interface IRenderableSeries
public boolean hasDataSeries()
hasDataSeries
in interface IRenderableSeries
public com.scichart.data.numerics.ResamplingMode getResamplingMode()
ResamplingMode
used when drawing this seriesgetResamplingMode
in interface IRenderableSeries
public void setResamplingMode(com.scichart.data.numerics.ResamplingMode resamplingMode)
ResamplingMode
used when drawing this seriessetResamplingMode
in interface IRenderableSeries
resamplingMode
- New resampling modepublic java.lang.String getXAxisId()
IRenderableSeries
is associated withgetXAxisId
in interface IRenderableSeries
public void setXAxisId(java.lang.String xAxisId)
IRenderableSeries
is associated withsetXAxisId
in interface IRenderableSeries
xAxisId
- New XAxis idpublic java.lang.String getYAxisId()
IRenderableSeries
is associated withgetYAxisId
in interface IRenderableSeries
public void setYAxisId(java.lang.String yAxisId)
IRenderableSeries
is associated withsetYAxisId
in interface IRenderableSeries
yAxisId
- New YAxis idpublic IAxis getXAxis()
IRenderableSeries
is associated withgetXAxis
in interface IRenderableSeries
public IAxis getYAxis()
IRenderableSeries
is associated withgetYAxis
in interface IRenderableSeries
public boolean getIsVisible()
getIsVisible
in interface IRenderableSeriesBase
public void setIsVisible(boolean isVisible)
setIsVisible
in interface IRenderableSeriesBase
isVisible
- New isVisible valuepublic boolean getIsSelected()
getIsSelected
in interface IRenderableSeriesBase
public void setIsSelected(boolean isSelected)
setIsSelected
in interface IRenderableSeriesBase
isSelected
- New isSelected valuepublic boolean isValidForUpdate()
isValidForUpdate
in interface IRenderableSeriesBase
public boolean isValidForDrawing()
isValidForDrawing
in interface IRenderableSeriesBase
public void hitTest(@NonNull HitTestInfo hitTestResult, float x, float y)
IRenderableSeriesArea
hitTest
in interface IRenderableSeries
hitTestResult
- The HitTestInfo
instance where result of hit-test should be storedx
- The x coordinate in pixels relative to parent IRenderableSeriesArea
y
- The y coordinate in pixels relative to parent IRenderableSeriesArea
public void hitTest(@NonNull HitTestInfo hitTestResult, float x, float y, float hitTestRadius)
IRenderableSeriesArea
hitTest
in interface IRenderableSeries
hitTestResult
- The HitTestInfo
instance where result of hit-test should be storedx
- The x coordinate in pixels relative to parent IRenderableSeriesArea
y
- The y coordinate in pixels relative to parent IRenderableSeriesArea
hitTestRadius
- The radius in pixels to determine whether hit point is over a data pointpublic void verticalSliceHitTest(@NonNull HitTestInfo hitTestResult, float x, float y)
verticalSliceHitTest
in interface IRenderableSeries
hitTestResult
- The HitTestInfo
instance where result of hit-test should be storedx
- The x coordinate in pixels relative to parent IRenderableSeriesArea
y
- The y coordinate in pixels relative to parent IRenderableSeriesArea
public ISeriesInfoProvider getSeriesInfoProvider()
ISeriesInfoProvider
instance associated with this series.getSeriesInfoProvider
in interface IRenderableSeries
ISeriesInfoProvider
instancepublic void setSeriesInfoProvider(ISeriesInfoProvider seriesInfoProvider)
ISeriesInfoProvider
instance associated with this series.setSeriesInfoProvider
in interface IRenderableSeries
seriesInfoProvider
- New ISeriesInfoProvider
instancepublic final IRenderPassDataTransformation getRenderPassDataTransformation()
IRenderPassDataTransformation
instance associated with this series.getRenderPassDataTransformation
in interface IRenderableSeries
IRenderPassDataTransformation
instance.public final void setRenderPassDataTransformation(IRenderPassDataTransformation renderPassDataTransformation)
IRenderPassDataTransformation
instance associated with this series.setRenderPassDataTransformation
in interface IRenderableSeries
renderPassDataTransformation
- New IRenderPassDataTransformation
instance.public IPaletteProvider getPaletteProvider()
IPaletteProvider
instance associated with this seriesgetPaletteProvider
in interface IRenderableSeries
IPaletteProvider
instancepublic void setPaletteProvider(IPaletteProvider paletteProvider)
IPaletteProvider
instance associated with this seriessetPaletteProvider
in interface IRenderableSeries
paletteProvider
- The new IPaletteProvider
instancepublic void addIsVisibleChangeListener(RenderableSeriesChangeListener listener)
addIsVisibleChangeListener
in interface IRenderableSeries
listener
- The listener to addpublic void removeIsVisibleChangeListener(RenderableSeriesChangeListener listener)
removeIsVisibleChangeListener
in interface IRenderableSeries
listener
- The listener to removepublic void addIsSelectedChangeListener(RenderableSeriesChangeListener listener)
addIsSelectedChangeListener
in interface IRenderableSeries
listener
- The listener to addpublic void removeIsSelectedChangeListener(RenderableSeriesChangeListener listener)
removeIsSelectedChangeListener
in interface IRenderableSeries
listener
- The listener to removepublic void updateRenderPassData(IAxis xAxis, IAxis yAxis, RenderPassState renderPassState)
updateRenderPassData
in interface IRenderableSeries
xAxis
- The XAxis instance that this IRenderableSeries
is associated withyAxis
- The YAxis instance that this IRenderableSeries
is associated withrenderPassState
- The current render pass stateprotected abstract void updateStackedRenderPassDataValues(IAxis xAxis, IAxis yAxis)
xAxis
- The XAxis instance that this StackedSeriesCollectionBase
is associated withyAxis
- The YAxis instance that this StackedSeriesCollectionBase
is associated withpublic void attachTo(@NonNull com.scichart.core.IServiceContainer services)
attachTo
in interface com.scichart.core.framework.IAttachable
public void detach()
detach
in interface com.scichart.core.framework.IAttachable
public final boolean isAttached()
isAttached
in interface com.scichart.core.framework.IAttachable
public final android.content.Context getContext()
getContext
in interface com.scichart.core.framework.IContextProvider
public final ISciChartSurface getParentSurface()
getParentSurface
in interface ISciChartSurfaceProvider
public void onDraw(com.scichart.drawing.common.IRenderContext2D renderContext, com.scichart.drawing.common.IAssetManager2D assetManager)
onDraw
in interface com.scichart.drawing.common.IDrawable
public void onRenderSurfaceChanged()
IRenderSurface
instance is set for parent ISciChartSurface
onRenderSurfaceChanged
in interface IRenderSurfaceChangedListener
public final IReadWriteLock getRenderPassDataLock()
IReadWriteLock
instance to lock render pass datagetRenderPassDataLock
in interface IRenderableSeries
IReadWriteLock
instance to lock render pass datapublic final IReadWriteLock getDataSeriesLock()
IReadWriteLock
instance to lock data seriesgetDataSeriesLock
in interface IRenderableSeries
IReadWriteLock
instance to lock data seriespublic void invalidateElement()
invalidateElement
in interface com.scichart.core.framework.IInvalidatableElement
public final com.scichart.core.IServiceContainer getServices()
getServices
in interface com.scichart.core.IServiceProvider
public final boolean getIsSuspended()
getIsSuspended
in interface com.scichart.core.framework.ISuspendable
public final com.scichart.core.framework.IUpdateSuspender suspendUpdates()
suspendUpdates
in interface com.scichart.core.framework.ISuspendable
public void resumeUpdates(com.scichart.core.framework.IUpdateSuspender suspender)
resumeUpdates
in interface com.scichart.core.framework.ISuspendable
public void decrementSuspend()
decrementSuspend
in interface com.scichart.core.framework.ISuspendable
public void applyThemeProvider(IThemeProvider themeProvider)
applyThemeProvider
in interface IThemeable
themeProvider
- The IThemeProvider
instance which provides new theme for current instancepublic void update(com.scichart.drawing.common.IAssetManager2D assetManager, RenderPassState renderPassState)
IUpdatable
before renderingupdate
in interface IUpdatable
assetManager
- The IAssetManager2D
used in current render passrenderPassState
- The RenderPassState
used in current render passprotected abstract void internalUpdate(com.scichart.drawing.common.IAssetManager2D assetManager2D, RenderPassState renderPassState)
assetManager2D
- The IAssetManager2D
used for this render passrenderPassState
- The RenderPassState
for this render pass