TX
- The type of the X-DataTY
- The type of the Y-Datapublic abstract class DataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>> extends java.lang.Object implements IDataSeries<TX,TY>
IDataSeries
,
DataSeries
,
IXyDataSeries
,
XyDataSeries
,
IXyyDataSeries
,
XyyDataSeries
,
IHlDataSeries
,
HlDataSeries
,
IOhlcDataSeries
,
OhlcDataSeries
,
IXyzDataSeries
,
XyzDataSeries
,
IUniformHeatmapDataSeries
,
UniformHeatmapDataSeries
,
IRenderableSeries.getDataSeries()
,
IRenderableSeries.setDataSeries(IDataSeries)
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SIZE |
protected IReadWriteLock |
lock |
protected static java.lang.String |
TAG |
protected com.scichart.data.numerics.math.IMath<TX> |
xMath |
protected java.lang.Class<TX> |
xType |
protected com.scichart.data.numerics.math.IMath<TY> |
yMath |
protected java.lang.Class<TY> |
yType |
Modifier | Constructor and Description |
---|---|
protected |
DataSeries(java.lang.Class<TX> xType,
java.lang.Class<TY> yType)
Creates a new
IDataSeries instance |
Modifier and Type | Method and Description |
---|---|
void |
addObserver(IDataSeriesObserver observer)
Adds
IDataSeriesObserver which observes changes in this series |
void |
clear()
Clears the series, resetting internal lists to zero size.
|
boolean |
getAcceptsUnsortedData()
Gets the value indicating whether this series accepts unsorted data.
|
boolean |
getHasValues()
Gets whether the DataSeries has values(is not empty).
|
IReadWriteLock |
getLock()
Gets a synchronization object used to lock this data-series.
|
java.lang.String |
getSeriesName()
Gets the name of this series.
|
com.scichart.data.numerics.math.IMath<TX> |
getXMath()
Gets the
IMath instance for operations with X-Data |
TX |
getXMax()
Gets the computed Maximum value in X for this series.
|
TX |
getXMin()
Gets the computed Minimum value in X for this series.
|
com.scichart.data.model.IRange<TX> |
getXRange()
Gets the total extents of the
IDataSeries in the X direction. |
java.lang.Class<TX> |
getXType()
Gets the type of the X-Data
|
com.scichart.data.numerics.math.IMath<TY> |
getYMath()
Gets the
IMath instance for operations with Y-Data |
TY |
getYMax()
Gets the computed Maximum value in Y for this series.
|
TY |
getYMin()
Gets the computed Minimum value in Y for this series.
|
com.scichart.data.model.IRange<TY> |
getYRange()
Gets the total extents of the
IDataSeries in the Y direction. |
java.lang.Class<TY> |
getYType()
Gets the type of the Y-Data
|
protected void |
onDataSeriesChanged(int update)
Notifies observers about update in this series
|
void |
removeObserver(IDataSeriesObserver observer)
Removes
IDataSeriesObserver from list of change observers for this series |
void |
setAcceptsUnsortedData(boolean acceptsUnsortedData)
Sets the value indicating whether this series accepts unsorted data.
|
void |
setSeriesName(java.lang.String seriesName)
Sets the name of this series.
|
protected abstract void |
updateXRange(com.scichart.data.model.IRange<TX> xRange)
Sets the total extents of the
IDataSeries in the X direction. |
protected abstract void |
updateYRange(com.scichart.data.model.IRange<TY> yRange)
Sets the total extents of the
IDataSeries in the Y direction. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, getCount, getDataSeriesType, getFifoCapacity, getIndicesXRange, getIndicesYRange, getWindowedYRange, getWindowedYRange, isFifo, setFifoCapacity
protected static final java.lang.String TAG
public static final int DEFAULT_SIZE
protected final com.scichart.data.numerics.math.IMath<TX extends java.lang.Comparable<TX>> xMath
protected final com.scichart.data.numerics.math.IMath<TY extends java.lang.Comparable<TY>> yMath
protected final IReadWriteLock lock
protected DataSeries(java.lang.Class<TX> xType, java.lang.Class<TY> yType)
IDataSeries
instancexType
- The type of X-DatayType
- The type of Y-Datapublic final IReadWriteLock getLock()
public final boolean getAcceptsUnsortedData()
IDataSeries.setAcceptsUnsortedData(boolean)
with true passed in.getAcceptsUnsortedData
in interface IDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
public final void setAcceptsUnsortedData(boolean acceptsUnsortedData)
setAcceptsUnsortedData
in interface IDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
acceptsUnsortedData
- The new acceptsUnsortedData valuepublic final java.lang.String getSeriesName()
getSeriesName
in interface IDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
public final void setSeriesName(java.lang.String seriesName)
setSeriesName
in interface IDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
seriesName
- The new name of this seriespublic final com.scichart.data.model.IRange<TX> getXRange()
IDataSeries
in the X direction.protected abstract void updateXRange(com.scichart.data.model.IRange<TX> xRange)
IDataSeries
in the X direction.xRange
- The range to setpublic final com.scichart.data.model.IRange<TY> getYRange()
IDataSeries
in the Y direction.protected abstract void updateYRange(com.scichart.data.model.IRange<TY> yRange)
IDataSeries
in the Y direction.yRange
- The range to setpublic final void clear()
public TX getXMin()
public TX getXMax()
public TY getYMin()
public TY getYMax()
public final java.lang.Class<TX> getXType()
public final java.lang.Class<TY> getYType()
public final com.scichart.data.numerics.math.IMath<TX> getXMath()
IMath
instance for operations with X-Datapublic final com.scichart.data.numerics.math.IMath<TY> getYMath()
IMath
instance for operations with Y-Datapublic boolean getHasValues()
getHasValues
in interface IDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
public final void addObserver(IDataSeriesObserver observer)
IDataSeriesObserver
which observes changes in this seriesaddObserver
in interface IDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
observer
- The observer to addpublic final void removeObserver(IDataSeriesObserver observer)
IDataSeriesObserver
from list of change observers for this seriesremoveObserver
in interface IDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
observer
- The observer to removeprotected final void onDataSeriesChanged(int update)
update
- The update action