TX
- The type of X-DataTY
- The type of Y-DataTZ
- The type of Z-Datapublic class UniformHeatmapDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>,TZ extends java.lang.Comparable<TZ>> extends DataSeries<TX,TY> implements IUniformHeatmapDataSeries<TX,TY,TZ>
FastUniformHeatmapRenderableSeries
Modifier and Type | Field and Description |
---|---|
protected int |
count |
protected int |
xSize |
protected int |
ySize |
protected com.scichart.data.numerics.math.IMath<TZ> |
zMath |
protected java.lang.Class<TZ> |
zType |
DEFAULT_SIZE, lock, TAG, xMath, xType, yMath, yType
Constructor and Description |
---|
UniformHeatmapDataSeries(java.lang.Class<TX> xType,
java.lang.Class<TY> yType,
java.lang.Class<TZ> zType,
int xSize,
int ySize)
Creates a new
UniformHeatmapDataSeries instance |
Modifier and Type | Method and Description |
---|---|
void |
clear(boolean retainCapacity)
Clears the series, resetting internal lists to zero size.
|
int |
getCount()
Gets the number of points in this series.
|
DataSeriesType |
getDataSeriesType()
Gets the
DataSeriesType for this DataSeries. |
java.lang.Integer |
getFifoCapacity()
Gets the size of the FIFO buffer.
|
void |
getIndicesXRange(com.scichart.data.model.IndexRange xIndicesRange,
ICoordinateCalculator xCoordinateCalculator)
Sets the integer indices of the XValues array that are currently in the range passed in with xCoordinateCalculator,
and an indefinite range otherwise.
|
void |
getIndicesYRange(com.scichart.data.model.IndexRange yIndicesRange,
ICoordinateCalculator yCoordinateCalculator)
Sets the integer indices of the YValues array that are currently in the range passed in with yCoordinateCalculator,
and an indefinite range otherwise.
|
TX |
getStartX()
Gets start X value for 2D heatmap
|
TY |
getStartY()
Gets start Y value for 2D heatmap
|
TX |
getStepX()
Gets the size for each cell in 2D heatmap in X direction
|
TY |
getStepY()
Gets the size for each cell in 2D heatmap in Y direction
|
com.scichart.data.model.IRange<TY> |
getWindowedYRange(ICoordinateCalculator xCoordCalc,
boolean getPositiveRange)
Gets the YRange of the data (min, max of the series) in the input visible range point range, where the input range is the
IAxisCore.getVisibleRange() |
com.scichart.data.model.IRange<TY> |
getWindowedYRange(com.scichart.data.model.IndexRange xIndexRange,
boolean getPositiveRange)
Gets the YRange of the data (min, max of the series) in the input IndexRange, where indices are point-indices on the DataSeries columns.
|
int |
getXIndex(int zIndex)
Gets xIndex based on index from
IUniformHeatmapDataSeriesValues.getZValues() list |
int |
getXSize()
Gets the size of 2D heatmap data in X direction
|
TX |
getXValueAt(int xIndex)
Gets the X value for specified index
|
int |
getYIndex(int zIndex)
Gets yIndex based on index from
IUniformHeatmapDataSeriesValues.getZValues() list |
int |
getYSize()
Gets the size of 2D heatmap data in Y direction
|
TY |
getYValueAt(int yIndex)
Gets the Y value for specified index
|
int |
getZIndex(int xIndex,
int yIndex)
Gets raw zIndex based on xIndex and yIndex
|
TZ |
getZValueAt(int xIndex,
int yIndex)
Gets the Z value for specified xIndex and yIndex
|
com.scichart.data.model.ISciList<TZ> |
getZValues()
Gets the Z values of this series
|
boolean |
isDataEvenlySpaced() |
boolean |
isDataSortedAscending() |
boolean |
isFifo()
Gets whether the series behaves as a FIFO.
|
void |
setFifoCapacity(java.lang.Integer fifoCapacity)
Sets the size of the FIFO buffer.
|
void |
setStartX(TX startX)
Sets start X value for 2D heatmap
|
void |
setStartY(TY startY)
Sets start Y value for 2D heatmap
|
void |
setStepX(TX stepX)
Sets the size for each cell in 2D heatmap in X direction
|
void |
setStepY(TY stepY)
Sets the size for each cell in 2D heatmap in Y direction
|
void |
updateRangeZAt(int xIndex,
int yIndex,
com.scichart.core.model.IValues<TZ> values)
Updates the range of Z values for this series
|
void |
updateRangeZAt(int xIndex,
int yIndex,
java.util.List<TZ> values)
Updates the range of Z values for this series
|
void |
updateRangeZAt(int xIndex,
int yIndex,
TZ[] values)
Updates the range of Z values for this series
|
protected void |
updateXRange(com.scichart.data.model.IRange<TX> xRange)
Sets the total extents of the
IDataSeries in the X direction. |
protected void |
updateYRange(com.scichart.data.model.IRange<TY> yRange)
Sets the total extents of the
IDataSeries in the Y direction. |
void |
updateZAt(int xIndex,
int yIndex,
TZ value)
Updates Z Value at specified xIndex and yIndex
|
void |
updateZValues(com.scichart.core.model.IValues<TZ> values)
Updates all Z values for this series
|
void |
updateZValues(java.util.List<TZ> values)
Updates all Z values for this series
|
void |
updateZValues(TZ[] values)
Updates all Z values for this series
|
addObserver, clear, getAcceptsUnsortedData, getHasValues, getLock, getSeriesName, getXMath, getXMax, getXMin, getXRange, getXType, getYMath, getYMax, getYMin, getYRange, getYType, onDataSeriesChanged, removeObserver, setAcceptsUnsortedData, setSeriesName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addObserver, clear, getAcceptsUnsortedData, getHasValues, getLock, getSeriesName, getXMath, getXMax, getXMin, getXRange, getXType, getYMath, getYMax, getYMin, getYRange, getYType, removeObserver, setAcceptsUnsortedData, setSeriesName
protected final com.scichart.data.numerics.math.IMath<TZ extends java.lang.Comparable<TZ>> zMath
protected final int xSize
protected final int ySize
protected final int count
public UniformHeatmapDataSeries(java.lang.Class<TX> xType, java.lang.Class<TY> yType, java.lang.Class<TZ> zType, int xSize, int ySize)
UniformHeatmapDataSeries
instancexType
- The type of X-DatayType
- The type of Y-DatazType
- The type of Z-DataxSize
- The size of the heatmap data in x directionySize
- The size of the heatmap data in y directionpublic final boolean isDataSortedAscending()
isDataSortedAscending
in interface com.scichart.data.model.IDataDistributionProvider
public final boolean isDataEvenlySpaced()
isDataEvenlySpaced
in interface com.scichart.data.model.IDataDistributionProvider
public final int getXSize()
public final int getYSize()
public final DataSeriesType getDataSeriesType()
DataSeriesType
for this DataSeries.getDataSeriesType
in interface IDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
public final int getCount()
public final boolean isFifo()
public final java.lang.Integer getFifoCapacity()
getFifoCapacity
in interface IDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
public final void setFifoCapacity(java.lang.Integer fifoCapacity)
setFifoCapacity
in interface IDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
fifoCapacity
- the new size of the FIFO bufferpublic final com.scichart.data.model.ISciList<TZ> getZValues()
getZValues
in interface IUniformHeatmapDataSeriesValues<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>,TZ extends java.lang.Comparable<TZ>>
public final void setStartX(@NonNull TX startX)
public final TX getStartX()
public final void setStepX(@NonNull TX stepX)
public final TX getStepX()
public final void setStartY(@NonNull TY startY)
public final TY getStartY()
public final void setStepY(@NonNull TY stepY)
public TY getStepY()
protected void updateXRange(com.scichart.data.model.IRange<TX> xRange)
IDataSeries
in the X direction.updateXRange
in class DataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
xRange
- The range to setprotected void updateYRange(com.scichart.data.model.IRange<TY> yRange)
IDataSeries
in the Y direction.updateYRange
in class DataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
yRange
- The range to setpublic com.scichart.data.model.IRange<TY> getWindowedYRange(com.scichart.data.model.IndexRange xIndexRange, boolean getPositiveRange)
getWindowedYRange
in interface IDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
xIndexRange
- The XAxis indices currently in viewgetPositiveRange
- If true, returns the IRange
which has positive values, e.g., when viewing a logarithmic chart this value might be setpublic com.scichart.data.model.IRange<TY> getWindowedYRange(ICoordinateCalculator xCoordCalc, boolean getPositiveRange)
IAxisCore.getVisibleRange()
getWindowedYRange
in interface IDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
xCoordCalc
- The X CoordinateCalculator currently used by corresponding XAxisgetPositiveRange
- If true, returns the IRange
which has positive values, e.g., when viewing a logarithmic chart this value might be setpublic void getIndicesXRange(com.scichart.data.model.IndexRange xIndicesRange, ICoordinateCalculator xCoordinateCalculator)
getIndicesXRange
in interface IDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
xIndicesRange
- The index range to setxCoordinateCalculator
- The current ICoordinateCalculator
of XAxispublic void getIndicesYRange(com.scichart.data.model.IndexRange yIndicesRange, ICoordinateCalculator yCoordinateCalculator)
getIndicesYRange
in interface IDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
yIndicesRange
- The index range to setyCoordinateCalculator
- The current ICoordinateCalculator
of YAxispublic void clear(boolean retainCapacity)
public void updateZAt(int xIndex, int yIndex, TZ value)
public void updateZValues(com.scichart.core.model.IValues<TZ> values)
updateZValues
in interface IUniformHeatmapDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>,TZ extends java.lang.Comparable<TZ>>
values
- The new Z value for this seriespublic void updateZValues(java.util.List<TZ> values)
updateZValues
in interface IUniformHeatmapDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>,TZ extends java.lang.Comparable<TZ>>
values
- The new Z value for this seriespublic void updateZValues(TZ[] values)
updateZValues
in interface IUniformHeatmapDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>,TZ extends java.lang.Comparable<TZ>>
values
- The new Z value for this seriespublic void updateRangeZAt(int xIndex, int yIndex, com.scichart.core.model.IValues<TZ> values)
updateRangeZAt
in interface IUniformHeatmapDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>,TZ extends java.lang.Comparable<TZ>>
xIndex
- The xIndex to start update atyIndex
- The yIndex to start update atvalues
- The new Z valuespublic void updateRangeZAt(int xIndex, int yIndex, java.util.List<TZ> values)
updateRangeZAt
in interface IUniformHeatmapDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>,TZ extends java.lang.Comparable<TZ>>
xIndex
- The xIndex to start update atyIndex
- The yIndex to start update atvalues
- The new Z valuespublic void updateRangeZAt(int xIndex, int yIndex, TZ[] values)
updateRangeZAt
in interface IUniformHeatmapDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>,TZ extends java.lang.Comparable<TZ>>
xIndex
- The xIndex to start update atyIndex
- The yIndex to start update atvalues
- The new Z valuespublic TX getXValueAt(int xIndex)
getXValueAt
in interface IUniformHeatmapDataSeriesValues<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>,TZ extends java.lang.Comparable<TZ>>
xIndex
- The xIndex to get X value forpublic TY getYValueAt(int yIndex)
getYValueAt
in interface IUniformHeatmapDataSeriesValues<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>,TZ extends java.lang.Comparable<TZ>>
yIndex
- The yIndex to get Y value forpublic TZ getZValueAt(int xIndex, int yIndex)
getZValueAt
in interface IUniformHeatmapDataSeriesValues<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>,TZ extends java.lang.Comparable<TZ>>
xIndex
- The xIndex to get Z value foryIndex
- The yIndex to get Z value forpublic final int getXIndex(int zIndex)
IUniformHeatmapDataSeriesValues.getZValues()
listgetXIndex
in interface IUniformHeatmapDataSeriesValues<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>,TZ extends java.lang.Comparable<TZ>>
zIndex
- The raw zIndex of item from IUniformHeatmapDataSeriesValues.getZValues()
listpublic final int getYIndex(int zIndex)
IUniformHeatmapDataSeriesValues.getZValues()
listgetYIndex
in interface IUniformHeatmapDataSeriesValues<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>,TZ extends java.lang.Comparable<TZ>>
zIndex
- The raw zIndex of item from IUniformHeatmapDataSeriesValues.getZValues()
listpublic final int getZIndex(int xIndex, int yIndex)