TX
- The type of X-DataTY
- The type of Y-Datapublic abstract class XDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>> extends DataSeries<TX,TY> implements IXDataSeriesValues<TX,TY>
Modifier and Type | Field and Description |
---|---|
protected IDataDistributionCalculator<TX> |
dataDistributionCalculator |
protected com.scichart.data.model.ISmartList<TX> |
xColumn |
DEFAULT_SIZE, lock, TAG, xMath, xType, yMath, yType
Modifier | Constructor and Description |
---|---|
protected |
XDataSeries(java.lang.Class<TX> xType,
java.lang.Class<TY> yType,
IDataDistributionCalculator<TX> dataDistributionCalculator)
Creates a new instance of
XDataSeries class |
Modifier and Type | Method and Description |
---|---|
void |
clear(boolean retainValues)
Clears the series, resetting internal lists to zero size.
|
protected void |
clearColumns()
Clears content of series without recreation of internal lists
|
int |
getCount()
Gets the number of points in this series.
|
java.lang.Integer |
getFifoCapacity()
Gets the size of the FIFO buffer.
|
protected void |
getIndicesXRange(com.scichart.data.model.IndexRange indicesRange,
double xMinAsDouble,
double xMaxAsDouble,
boolean isCategoryAxis)
Sets the integer indices of the XValues array that are currently in the range passed in with xCoordinateCalculator,
and an indefinite range otherwise.
|
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.
|
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.ISmartList<TX> |
getXValues()
Gets the X Values of this series
|
protected void |
initColumns()
Creates internal lists
|
protected void |
initColumnsAsFifo(int fifoCapacity)
Creates internal list as FIFO
|
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.
|
protected void |
updateXRange(com.scichart.data.model.IRange<TX> xRange)
Sets the total extents of the
IDataSeries in the X direction. |
addObserver, clear, getAcceptsUnsortedData, getHasValues, getLock, getSeriesName, getXMath, getXMax, getXMin, getXRange, getXType, getYMath, getYMax, getYMin, getYRange, getYType, onDataSeriesChanged, removeObserver, setAcceptsUnsortedData, setSeriesName, updateYRange
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addObserver, clear, getAcceptsUnsortedData, getDataSeriesType, getHasValues, getLock, getSeriesName, getWindowedYRange, getXMath, getXMax, getXMin, getXRange, getXType, getYMath, getYMax, getYMin, getYRange, getYType, removeObserver, setAcceptsUnsortedData, setSeriesName
protected final IDataDistributionCalculator<TX extends java.lang.Comparable<TX>> dataDistributionCalculator
protected XDataSeries(java.lang.Class<TX> xType, java.lang.Class<TY> yType, IDataDistributionCalculator<TX> dataDistributionCalculator)
XDataSeries
classxType
- The type of X-DatayType
- The type of Y-DatadataDistributionCalculator
- The IDataDistributionCalculator
instance for this seriespublic final boolean isDataEvenlySpaced()
isDataEvenlySpaced
in interface com.scichart.data.model.IDataDistributionProvider
public final boolean isDataSortedAscending()
isDataSortedAscending
in interface com.scichart.data.model.IDataDistributionProvider
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 java.lang.Integer getFifoCapacity()
getFifoCapacity
in interface IDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
public final boolean isFifo()
public com.scichart.data.model.ISmartList<TX> getXValues()
getXValues
in interface IXDataSeriesValues<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
public int getCount()
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 setpublic final void clear(boolean retainValues)
protected void clearColumns()
protected void initColumns()
protected void initColumnsAsFifo(int fifoCapacity)
fifoCapacity
- The FIFO capacity of listspublic final 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 final 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 final 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 XAxisprotected void getIndicesXRange(com.scichart.data.model.IndexRange indicesRange, double xMinAsDouble, double xMaxAsDouble, boolean isCategoryAxis)
indicesRange
- The index range to setxMinAsDouble
- The min value of XAxis visible rangexMaxAsDouble
- The max value of XAxis visible rangeisCategoryAxis
- If true XAxis is a category axis