Class StackedColumnRenderableSeries
Provides Fast Stacked Column (Bar) series rendering.
Inheritance
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class StackedColumnRenderableSeries extends renderableSeries.BaseColumnRenderableSeries implements renderableSeries.IStackedColumnRenderableSeries
Constructors
StackedColumnRenderableSeries()
Creates a new instance of StackedColumnRenderableSeries class
Declaration
public StackedColumnRenderableSeries()
StackedColumnRenderableSeries(renderableSeriesStackedColumnRenderPassData currentRenderPassData, renderableSeries.hitTest.IHitProvider hitProvider, renderableSeries.hitTest.INearestPointProvider nearestPointProvider)
Creates a new instance of StackedColumnRenderableSeries class
Declaration
protected StackedColumnRenderableSeries(renderableSeriesStackedColumnRenderPassData currentRenderPassData, renderableSeries.hitTest.IHitProvider hitProvider, renderableSeries.hitTest.INearestPointProvider nearestPointProvider)
Parameters
Type | Name | Description |
---|---|---|
renderableSeriesStackedColumnRenderPassData | currentRenderPassData | The render pass data instance |
renderableSeries.hitTest.IHitProvider | hitProvider | The hit provider instance |
renderableSeries.hitTest.INearestPointProvider | nearestPointProvider | The nearest point provider instance |
Methods
getFirstDataSeries()
Get the dataSeries instance of this series.
Declaration
public dataSeries.IDataSeries getFirstDataSeries()
Returns
Type | Description |
---|---|
IDataSeries |
getFirstRenderPassData()
Get the renderPassData instance of this series.
Declaration
public renderableSeriesISeriesRenderPassData getFirstRenderPassData()
Returns
Type | Description |
---|---|
renderableSeriesISeriesRenderPassData |
hasValidRenderPassData()
Checks whether this stacked renderable series has valid render pass data.
Declaration
public final boolean hasValidRenderPassData()
Returns
Type | Description |
---|---|
boolean |
internalDraw(IRenderContext2D renderContext, IAssetManager2D assetManager, renderableSeriesISeriesRenderPassData renderPassData)
Draws the series using the IRenderContext2D, the IAssetManager2D and the ISeriesRenderPassData passed in
Declaration
protected void internalDraw(IRenderContext2D renderContext, IAssetManager2D assetManager, renderableSeriesISeriesRenderPassData renderPassData)
Parameters
Type | Name | Description |
---|---|---|
IRenderContext2D | renderContext | |
IAssetManager2D | assetManager | |
renderableSeriesISeriesRenderPassData | renderPassData |
Overrides
internalUpdateRenderPassData(renderableSeriesISeriesRenderPassData renderPassDataToUpdate, dataSeries.IDataSeries<?,?> dataSeries, ResamplingMode resamplingMode, IPointResamplerFactory factory)
Updates the current render pass data using the data series, resampling factory passed in
Declaration
protected void internalUpdateRenderPassData(renderableSeriesISeriesRenderPassData renderPassDataToUpdate, dataSeries.IDataSeries<?,?> dataSeries, ResamplingMode resamplingMode, IPointResamplerFactory factory)
Parameters
Type | Name | Description |
---|---|---|
renderableSeriesISeriesRenderPassData | renderPassDataToUpdate | |
IDataSeries<?,?> | dataSeries | |
ResamplingMode | resamplingMode | |
IPointResamplerFactory | factory |
Overrides
Exceptions
Type | Condition |
---|---|
Exception |
isUpdateOfStackedRenderPassDataRequired(coordinateCalculators.ICoordinateCalculator xCoordCalc, coordinateCalculators.ICoordinateCalculator yCoordCalc, Size viewportSize)
Checks whether this stacked renderable series need to update its render pass data.
Declaration
public boolean isUpdateOfStackedRenderPassDataRequired(coordinateCalculators.ICoordinateCalculator xCoordCalc, coordinateCalculators.ICoordinateCalculator yCoordCalc, Size viewportSize)
Parameters
Type | Name | Description |
---|---|---|
coordinateCalculators.ICoordinateCalculator | xCoordCalc | |
coordinateCalculators.ICoordinateCalculator | yCoordCalc | |
Size | viewportSize |
Returns
Type | Description |
---|---|
boolean |
shiftColumnCenters(int[] columnsCountAtX, int[] pointsSequenceNumbers, float columnWidth, float columnSpacing)
Shifts x-Values coordinates to spread all horizontally stacked columns properly.
Declaration
public final void shiftColumnCenters(int[] columnsCountAtX, int[] pointsSequenceNumbers, float columnWidth, float columnSpacing)
Parameters
Type | Name | Description |
---|---|---|
int[] | columnsCountAtX | |
int[] | pointsSequenceNumbers | |
float | columnWidth | |
float | columnSpacing |
tryAddSeriesToLegendDataSource(List<renderableSeries.IRenderableSeries> legendDataSource)
When overridden in derived classes, should add all needed IRenderableSeries into legend data source.
Declaration
public void tryAddSeriesToLegendDataSource(List<renderableSeries.IRenderableSeries> legendDataSource)
Parameters
Type | Name | Description |
---|---|---|
List<IRenderableSeries> | legendDataSource |
updateColumnPixelWidth(float columnPixelWidth)
Updates StackedColumnRenderPassData#columnPixelWidth value of this IStackedColumnRenderableSeries instance.
If it's VerticallyStackedColumnsCollection - updates StackedColumnRenderPassData#columnPixelWidth for all series in the collection.
Declaration
public void updateColumnPixelWidth(float columnPixelWidth)
Parameters
Type | Name | Description |
---|---|---|
float | columnPixelWidth |