TX
- The type of X-DataTY
- The type of Y-Datapublic class XyyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>> extends XDataSeries<TX,TY> implements IXyyDataSeries<TX,TY>
FastBandRenderableSeries
,
XyyRenderableSeriesBase
dataDistributionCalculator, xColumn
DEFAULT_SIZE, lock, TAG, xMath, xType, yMath, yType
Constructor and Description |
---|
XyyDataSeries(java.lang.Class<TX> xType,
java.lang.Class<TY> yType)
Creates a new instance of the
XyyDataSeries class |
XyyDataSeries(java.lang.Class<TX> xType,
java.lang.Class<TY> yType,
IDataDistributionCalculator<TX> dataDistributionCalculator)
Creates a new instance of
XyyDataSeries class |
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.Iterable<TX> xValues,
java.lang.Iterable<TY> yValues,
java.lang.Iterable<TY> y1Values)
Appends X, Y and Y1 values to this series
|
void |
append(com.scichart.core.model.IValues<TX> xValues,
com.scichart.core.model.IValues<TY> yValues,
com.scichart.core.model.IValues<TY> y1Values)
Appends X, Y and Y1 values to this series
|
void |
append(TX[] xValues,
TY[] yValues,
TY[] y1Values)
Appends X, Y and Y1 values to this series
|
void |
append(TX xValue,
TY yValue,
TY y1Value)
Appends X, Y and Y1 value to this series
|
protected void |
clearColumns()
Clears content of series without recreation of internal lists
|
DataSeriesType |
getDataSeriesType()
Gets the
DataSeriesType for this DataSeries. |
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> |
getY1Values()
Gets the Y1 Values of this series
|
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 xValue,
TY yValue,
TY y1Value)
Inserts X, Y and Y1 value at specified location
|
void |
insertRange(int startIndex,
java.lang.Iterable<TX> xValues,
java.lang.Iterable<TY> yValues,
java.lang.Iterable<TY> y1Values)
Inserts X, Y and Y1 values at specified location
|
void |
insertRange(int startIndex,
com.scichart.core.model.IValues<TX> xValues,
com.scichart.core.model.IValues<TY> yValues,
com.scichart.core.model.IValues<TY> y1Values)
Inserts X, Y and Y1 values at specified location
|
void |
insertRange(int startIndex,
TX[] xValues,
TY[] yValues,
TY[] y1Values)
Inserts X, Y and Y1 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 |
updateRangeXyy1At(int index,
java.lang.Iterable<TX> xValues,
java.lang.Iterable<TY> yValues,
java.lang.Iterable<TY> y1Values)
Updates X, Y and Y1 values at specified location
|
void |
updateRangeXyy1At(int index,
com.scichart.core.model.IValues<TX> xValues,
com.scichart.core.model.IValues<TY> yValues,
com.scichart.core.model.IValues<TY> y1Values)
Updates X, Y and Y1 values at specified location
|
void |
updateRangeXyy1At(int index,
TX[] xValues,
TY[] yValues,
TY[] y1Values)
Updates X, Y and Y1 values at specified location
|
void |
updateRangeY1At(int index,
java.lang.Iterable<TY> y1Values)
Updates Y1 values at specified location
|
void |
updateRangeY1At(int index,
com.scichart.core.model.IValues<TY> y1Values)
Updates Y1 values at specified location
|
void |
updateRangeY1At(int index,
TY[] y1Values)
Updates Y1 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 xValue)
Updates X value at specified location
|
void |
updateXyy1At(int index,
TX xValue,
TY yValue,
TY y1Value)
Updates X, Y and Y1 value at specified location
|
void |
updateY1At(int index,
TY y1Value)
Updates Y1 value at specified location
|
void |
updateYAt(int index,
TY yValue)
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
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
getXValues
addObserver, clear, clear, getAcceptsUnsortedData, getCount, getFifoCapacity, getHasValues, getIndicesXRange, getIndicesYRange, getLock, getSeriesName, getWindowedYRange, getXMath, getXMax, getXMin, getXRange, getXType, getYMath, getYMax, getYMin, getYRange, getYType, isFifo, removeObserver, setAcceptsUnsortedData, setFifoCapacity, setSeriesName
public XyyDataSeries(java.lang.Class<TX> xType, java.lang.Class<TY> yType, IDataDistributionCalculator<TX> dataDistributionCalculator)
XyyDataSeries
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 XyyDataSeries(java.lang.Class<TX> xType, java.lang.Class<TY> yType)
XyyDataSeries
classxType
- The Type of X Data (TX)yType
- The Type of Y Data (TY)public com.scichart.data.model.ISciList<TY> getYValues()
getYValues
in interface IXyDataSeriesValues<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
public com.scichart.data.model.ISciList<TY> getY1Values()
getY1Values
in interface IXyyDataSeriesValues<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 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 DataSeriesType getDataSeriesType()
DataSeriesType
for this DataSeries.getDataSeriesType
in interface IDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
public 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 void append(java.lang.Iterable<TX> xValues, java.lang.Iterable<TY> yValues, java.lang.Iterable<TY> y1Values)
public void append(TX xValue, TY yValue, TY y1Value)
public void append(TX[] xValues, TY[] yValues, TY[] y1Values)
public void append(com.scichart.core.model.IValues<TX> xValues, com.scichart.core.model.IValues<TY> yValues, com.scichart.core.model.IValues<TY> y1Values)
public void updateXyy1At(int index, TX xValue, TY yValue, TY y1Value)
updateXyy1At
in interface IXyyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of point to updatexValue
- The X valueyValue
- The Y valuey1Value
- The Y1 valuepublic void updateXAt(int index, TX xValue)
public void updateYAt(int index, TY yValue)
public void updateY1At(int index, TY y1Value)
updateY1At
in interface IXyyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of point to updatey1Value
- The Y1 valuepublic void updateRangeXyy1At(int index, java.lang.Iterable<TX> xValues, java.lang.Iterable<TY> yValues, java.lang.Iterable<TY> y1Values)
updateRangeXyy1At
in interface IXyyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of point to updatexValues
- The X valuesyValues
- The Y valuesy1Values
- The Y1 valuespublic void updateRangeXAt(int index, java.lang.Iterable<TX> xValues)
updateRangeXAt
in interface IXyyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of point to updatexValues
- The X valuespublic void updateRangeYAt(int index, java.lang.Iterable<TY> yValues)
updateRangeYAt
in interface IXyyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of point to updateyValues
- The Y valuespublic void updateRangeY1At(int index, java.lang.Iterable<TY> y1Values)
updateRangeY1At
in interface IXyyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of point to updatey1Values
- The Y1 valuespublic void updateRangeXyy1At(int index, TX[] xValues, TY[] yValues, TY[] y1Values)
updateRangeXyy1At
in interface IXyyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of point to updatexValues
- The X valuesyValues
- The Y valuesy1Values
- The Y1 valuespublic void updateRangeXAt(int index, TX[] xValues)
updateRangeXAt
in interface IXyyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of point to updatexValues
- The X valuespublic void updateRangeYAt(int index, TY[] yValues)
updateRangeYAt
in interface IXyyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of point to updateyValues
- The Y valuespublic void updateRangeY1At(int index, TY[] y1Values)
updateRangeY1At
in interface IXyyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of point to updatey1Values
- The Y1 valuespublic void updateRangeXyy1At(int index, com.scichart.core.model.IValues<TX> xValues, com.scichart.core.model.IValues<TY> yValues, com.scichart.core.model.IValues<TY> y1Values)
updateRangeXyy1At
in interface IXyyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of point to updatexValues
- The X valuesyValues
- The Y valuesy1Values
- The Y1 valuespublic void updateRangeXAt(int index, com.scichart.core.model.IValues<TX> xValues)
updateRangeXAt
in interface IXyyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of point to updatexValues
- The X valuespublic void updateRangeYAt(int index, com.scichart.core.model.IValues<TY> yValues)
updateRangeYAt
in interface IXyyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of point to updateyValues
- The Y valuespublic void updateRangeY1At(int index, com.scichart.core.model.IValues<TY> y1Values)
updateRangeY1At
in interface IXyyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
index
- The index of point to updatey1Values
- The Y1 valuespublic void insert(int index, TX xValue, TY yValue, TY y1Value)
public void insertRange(int startIndex, java.lang.Iterable<TX> xValues, java.lang.Iterable<TY> yValues, java.lang.Iterable<TY> y1Values)
insertRange
in interface IXyyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
startIndex
- The index to insert point atxValues
- The X valuesyValues
- The Y valuesy1Values
- The Y1 valuespublic void insertRange(int startIndex, TX[] xValues, TY[] yValues, TY[] y1Values)
insertRange
in interface IXyyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
startIndex
- The index to insert point atxValues
- The X valuesyValues
- The Y valuesy1Values
- The Y1 valuespublic void insertRange(int startIndex, com.scichart.core.model.IValues<TX> xValues, com.scichart.core.model.IValues<TY> yValues, com.scichart.core.model.IValues<TY> y1Values)
insertRange
in interface IXyyDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
startIndex
- The index to insert point atxValues
- The X valuesyValues
- The Y valuesy1Values
- The Y1 values