TX
- The type of X-DataTY
- The type of Y-Datapublic class XyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>> extends XDataSeries<TX,TY> implements IXyDataSeries<TX,TY>
Modifier and Type | Field and Description |
---|---|
protected com.scichart.data.model.ISciList<TY> |
yColumn |
dataDistributionCalculator, xColumn
lock, TAG, xMath, xType, yMath, yType
DEFAULT_SIZE
Constructor and Description |
---|
XyDataSeries(java.lang.Class<TX> xType,
java.lang.Class<TY> yType)
Creates a new instance of
XyDataSeries class |
XyDataSeries(java.lang.Class<TX> xType,
java.lang.Class<TY> yType,
IDataDistributionCalculator<TX> dataDistributionCalculator)
Creates a new instance of
XyDataSeries class |
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.Iterable<TX> xValues,
java.lang.Iterable<TY> yValues)
Appends X and Y values to this series
|
void |
append(com.scichart.core.model.IValues<TX> xValues,
com.scichart.core.model.IValues<TY> yValues)
Appends X and Y values to this series
|
void |
append(TX[] xValues,
TY[] yValues)
Appends X and Y values to this series
|
void |
append(TX x,
TY y)
Appends X and Y value to this series
|
protected void |
clearColumns()
Clears content of series without recreation of internal lists
|
DataSeriesType |
getDataSeriesType()
Gets the
DataSeriesType for this DataSeries. |
boolean |
getHasValues()
Gets whether the DataSeries has values(is not empty).
|
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.
|
com.scichart.data.model.ISciList<TY> |
getYValues()
Gets the Y Values of this series
|
protected void |
initColumns()
Creates internal lists
|
protected void |
initColumnsAsFifo(int fifoCapacity)
Creates internal list as FIFO
|
void |
insert(int index,
TX x,
TY y)
Inserts X and Y value at specified location
|
void |
insertRange(int startIndex,
java.lang.Iterable<TX> xValues,
java.lang.Iterable<TY> yValues)
Inserts X and Y values at specified location
|
void |
insertRange(int startIndex,
com.scichart.core.model.IValues<TX> xValues,
com.scichart.core.model.IValues<TY> yValues)
Inserts X and Y values at specified location
|
void |
insertRange(int startIndex,
TX[] xValues,
TY[] yValues)
Inserts X and Y values at specified location
|
void |
removeAt(int index)
Removes data points at specified location
|
void |
removeRange(int startIndex,
int count)
Removes the range of data points
|
void |
updateRangeXAt(int index,
java.lang.Iterable<TX> xValues)
Updates X values at specified location
|
void |
updateRangeXAt(int index,
com.scichart.core.model.IValues<TX> xValues)
Updates X values at specified location
|
void |
updateRangeXAt(int index,
TX[] xValues)
Updates X values at specified location
|
void |
updateRangeXyAt(int index,
java.lang.Iterable<TX> xValues,
java.lang.Iterable<TY> yValues)
Updates X and Y values at specified location
|
void |
updateRangeXyAt(int index,
com.scichart.core.model.IValues<TX> xValues,
com.scichart.core.model.IValues<TY> yValues)
Updates X and Y values at specified location
|
void |
updateRangeXyAt(int index,
TX[] xValues,
TY[] yValues)
Updates X and Y values at specified location
|
void |
updateRangeYAt(int index,
java.lang.Iterable<TY> yValues)
Updates Y values at specified location
|
void |
updateRangeYAt(int index,
com.scichart.core.model.IValues<TY> yValues)
Updates Y values at specified location
|
void |
updateRangeYAt(int index,
TY[] yValues)
Updates Y values at specified location
|
void |
updateXAt(int index,
TX x)
Updates X value at specified location
|
void |
updateXyAt(int index,
TX x,
TY y)
Updates X and Y value at specified location
|
void |
updateYAt(int index,
TY y)
Updates Y value at specified location
|
protected void |
updateYRange(com.scichart.data.model.IRange<TY> yRange)
Sets the total extents of the
IDataSeries in the Y direction. |
clear, getCount, getFifoCapacity, getIndicesXRange, getIndicesXRange, getIndicesYRange, getWindowedYRange, getXValues, isDataEvenlySpaced, isDataSortedAscending, isFifo, setFifoCapacity, updateXRange
getAcceptsUnsortedData, getLock, getXMath, getXMax, getXMin, getXRange, getXType, getYMath, getYMax, getYMin, getYRange, getYType, setAcceptsUnsortedData
addObserver, clear, getSeriesName, onDataSeriesChanged, removeObserver, setSeriesName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getXValues
getAcceptsUnsortedData, getFifoCapacity, getIndicesXRange, getIndicesYRange, getLock, getWindowedYRange, getXMath, getXMax, getXMin, getXRange, getXType, getYMath, getYMax, getYMin, getYRange, getYType, isFifo, setAcceptsUnsortedData, setFifoCapacity
addObserver, clear, clear, getCount, getSeriesName, removeObserver, setSeriesName
public XyDataSeries(java.lang.Class<TX> xType, java.lang.Class<TY> yType, IDataDistributionCalculator<TX> dataDistributionCalculator)
XyDataSeries
classxType
- The Type of X Data (TX)yType
- The Type of Y Data (TY)dataDistributionCalculator
- An optional DataDistributionCalculator, which can be used to specify
Sorted Ascending and Evenly Spaced flagspublic XyDataSeries(java.lang.Class<TX> xType, java.lang.Class<TY> yType)
XyDataSeries
classxType
- The Type of X Data (TX)yType
- The Type of Y Data (TY)public boolean getHasValues()
getHasValues
in interface IDataSeriesCore
getHasValues
in class DataSeriesCore
public com.scichart.data.model.ISciList<TY> getYValues()
getYValues
in interface IXyDataSeriesValues<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
protected 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 DataSeriesType getDataSeriesType()
DataSeriesType
for this DataSeries.getDataSeriesType
in interface IDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
public void append(java.lang.Iterable<TX> xValues, java.lang.Iterable<TY> yValues)
public void append(com.scichart.core.model.IValues<TX> xValues, com.scichart.core.model.IValues<TY> yValues)
public void updateXyAt(int index, TX x, TY y)
updateXyAt
in interface IXyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of point to updatex
- The X valuey
- The Y valuepublic void updateXAt(int index, TX x)
public void updateYAt(int index, TY y)
public void updateRangeXyAt(int index, java.lang.Iterable<TX> xValues, java.lang.Iterable<TY> yValues)
updateRangeXyAt
in interface IXyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of point to start update fromxValues
- The X valuesyValues
- The Y valuespublic void updateRangeXAt(int index, java.lang.Iterable<TX> xValues)
updateRangeXAt
in interface IXyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of points to start update fromxValues
- The X valuepublic void updateRangeYAt(int index, java.lang.Iterable<TY> yValues)
updateRangeYAt
in interface IXyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of points to start update fromyValues
- The Y valuepublic void updateRangeXyAt(int index, TX[] xValues, TY[] yValues)
updateRangeXyAt
in interface IXyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of point to start update fromxValues
- The X valuesyValues
- The Y valuespublic void updateRangeXAt(int index, TX[] xValues)
updateRangeXAt
in interface IXyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of points to start update fromxValues
- The X valuepublic void updateRangeYAt(int index, TY[] yValues)
updateRangeYAt
in interface IXyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of points to start update fromyValues
- The Y valuepublic void updateRangeXyAt(int index, com.scichart.core.model.IValues<TX> xValues, com.scichart.core.model.IValues<TY> yValues)
updateRangeXyAt
in interface IXyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of point to start update fromxValues
- The X valuesyValues
- The Y valuespublic void updateRangeXAt(int index, com.scichart.core.model.IValues<TX> xValues)
updateRangeXAt
in interface IXyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of points to start update fromxValues
- The X valuepublic void updateRangeYAt(int index, com.scichart.core.model.IValues<TY> yValues)
updateRangeYAt
in interface IXyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of points to start update fromyValues
- The Y valuepublic void insertRange(int startIndex, java.lang.Iterable<TX> xValues, java.lang.Iterable<TY> yValues)
insertRange
in interface IXyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
startIndex
- The index to insert points atxValues
- The X valuesyValues
- The Y valuespublic void insertRange(int startIndex, TX[] xValues, TY[] yValues)
insertRange
in interface IXyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
startIndex
- The index to insert points atxValues
- The X valuesyValues
- The Y valuespublic void insertRange(int startIndex, com.scichart.core.model.IValues<TX> xValues, com.scichart.core.model.IValues<TY> yValues)
insertRange
in interface IXyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
startIndex
- The index to insert points atxValues
- The X valuesyValues
- The Y valuespublic void removeAt(int index)
public void removeRange(int startIndex, int count)
removeRange
in interface IXDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
startIndex
- The index of the first data point to removecount
- The amount of points to removeprotected void clearColumns()
clearColumns
in class XDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
protected void initColumnsAsFifo(int fifoCapacity)
initColumnsAsFifo
in class XDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
fifoCapacity
- The FIFO capacity of listsprotected void initColumns()
initColumns
in class XDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
public 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 set