Class XyDataSeries<TX,TY>
A DataSeries to store Xy data-points, containing X and Y values which must be sorted in the X-direction. See Also: com.scichart.charting.visuals.renderableSeries.XyScatterRenderableSeries, com.scichart.charting.visuals.renderableSeries.FastMountainRenderableSeries, com.scichart.charting.visuals.renderableSeries.FastColumnRenderableSeries, com.scichart.charting.visuals.renderableSeries.XyRenderableSeriesBase, com.scichart.charting.visuals.renderableSeries.FastLineRenderableSeries
Inheritance
Implements
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class XyDataSeries<TX,TY> extends dataSeries.XDataSeries<TX,TY> implements dataSeries.IXyDataSeries<TX,TY>
Type Parameters
Name | Description |
---|---|
TX | |
TY |
Constructors
XyDataSeries(Class<TX> xType, Class<TY> yType)
Creates a new instance of XyDataSeries class
Declaration
public XyDataSeries(Class<TX> xType, Class<TY> yType)
Parameters
Type | Name | Description |
---|---|---|
Class<TX> | xType | The Type of X Data (TX) |
Class<TY> | yType | The Type of Y Data (TY) |
XyDataSeries(Class<TX> xType, Class<TY> yType, IDataDistributionCalculator<TX> dataDistributionCalculator)
Creates a new instance of XyDataSeries class
Declaration
public XyDataSeries(Class<TX> xType, Class<TY> yType, IDataDistributionCalculator<TX> dataDistributionCalculator)
Parameters
Type | Name | Description |
---|---|---|
Class<TX> | xType | The Type of X Data (TX) |
Class<TY> | yType | The Type of Y Data (TY) |
IDataDistributionCalculator<TX> | dataDistributionCalculator | An optional DataDistributionCalculator, which can be used to specify Sorted Ascending and Evenly Spaced flags |
Fields
yColumn
Declaration
protected ISciList<TY> yColumn
Field Value
Type | Description |
---|---|
ISciList<TY> |
Methods
append(TX x, TY y)
Appends X and Y value to this series
Declaration
public void append(TX x, TY y)
Parameters
Type | Name | Description |
---|---|---|
TX | x | |
TY | y |
append(TX[] xValues, TY[] yValues)
Appends X and Y values to this series
Declaration
public void append(TX[] xValues, TY[] yValues)
Parameters
Type | Name | Description |
---|---|---|
TX[] | xValues | |
TY[] | yValues |
append(IValues<TX> xValues, IValues<TY> yValues)
Appends X and Y values to this series
Declaration
public void append(IValues<TX> xValues, IValues<TY> yValues)
Parameters
Type | Name | Description |
---|---|---|
IValues<TX> | xValues | |
IValues<TY> | yValues |
append(Iterable<TX> xValues, Iterable<TY> yValues)
Appends X and Y values to this series
Declaration
public void append(Iterable<TX> xValues, Iterable<TY> yValues)
Parameters
Type | Name | Description |
---|---|---|
Iterable<TX> | xValues | |
Iterable<TY> | yValues |
clearColumns()
Clears content of series without recreation of internal lists
Declaration
protected void clearColumns()
Overrides
getDataSeriesType()
Gets the DataSeriesType for this DataSeries.
Declaration
public dataSeries.DataSeriesType getDataSeriesType()
Returns
Type | Description |
---|---|
dataSeries.DataSeriesType |
getHasValues()
Gets whether the DataSeries has values(is not empty).
Declaration
public boolean getHasValues()
Returns
Type | Description |
---|---|
boolean |
Overrides
getWindowedYRange(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.
Declaration
public IRange<TY> getWindowedYRange(IndexRange xIndexRange, boolean getPositiveRange)
Parameters
Type | Name | Description |
---|---|---|
IndexRange | xIndexRange | |
boolean | getPositiveRange |
Returns
Type | Description |
---|---|
IRange<TY> |
getYValues()
Gets the Y Values of this series
Declaration
public ISciList<TY> getYValues()
Returns
Type | Description |
---|---|
ISciList<TY> |
initColumns()
Creates internal lists
Declaration
protected void initColumns()
Overrides
initColumnsAsFifo(int fifoCapacity)
Creates internal list as FIFO
Declaration
protected void initColumnsAsFifo(int fifoCapacity)
Parameters
Type | Name | Description |
---|---|---|
int | fifoCapacity |
Overrides
insert(int index, TX x, TY y)
Inserts X and Y value at specified location
Declaration
public void insert(int index, TX x, TY y)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
TX | x | |
TY | y |
insertRange(int startIndex, TX[] xValues, TY[] yValues)
Inserts X and Y values at specified location
Declaration
public void insertRange(int startIndex, TX[] xValues, TY[] yValues)
Parameters
Type | Name | Description |
---|---|---|
int | startIndex | |
TX[] | xValues | |
TY[] | yValues |
insertRange(int startIndex, IValues<TX> xValues, IValues<TY> yValues)
Inserts X and Y values at specified location
Declaration
public void insertRange(int startIndex, IValues<TX> xValues, IValues<TY> yValues)
Parameters
Type | Name | Description |
---|---|---|
int | startIndex | |
IValues<TX> | xValues | |
IValues<TY> | yValues |
insertRange(int startIndex, Iterable<TX> xValues, Iterable<TY> yValues)
Inserts X and Y values at specified location
Declaration
public void insertRange(int startIndex, Iterable<TX> xValues, Iterable<TY> yValues)
Parameters
Type | Name | Description |
---|---|---|
int | startIndex | |
Iterable<TX> | xValues | |
Iterable<TY> | yValues |
removeAt(int index)
Removes data points at specified location
Declaration
public void removeAt(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index |
removeRange(int startIndex, int count)
Removes the range of data points
Declaration
public void removeRange(int startIndex, int count)
Parameters
Type | Name | Description |
---|---|---|
int | startIndex | |
int | count |
updateRangeXAt(int index, TX[] xValues)
Updates X values at specified location
Declaration
public void updateRangeXAt(int index, TX[] xValues)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
TX[] | xValues |
updateRangeXAt(int index, IValues<TX> xValues)
Updates X values at specified location
Declaration
public void updateRangeXAt(int index, IValues<TX> xValues)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
IValues<TX> | xValues |
updateRangeXAt(int index, Iterable<TX> xValues)
Updates X values at specified location
Declaration
public void updateRangeXAt(int index, Iterable<TX> xValues)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
Iterable<TX> | xValues |
updateRangeXyAt(int index, TX[] xValues, TY[] yValues)
Updates X and Y values at specified location
Declaration
public void updateRangeXyAt(int index, TX[] xValues, TY[] yValues)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
TX[] | xValues | |
TY[] | yValues |
updateRangeXyAt(int index, IValues<TX> xValues, IValues<TY> yValues)
Updates X and Y values at specified location
Declaration
public void updateRangeXyAt(int index, IValues<TX> xValues, IValues<TY> yValues)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
IValues<TX> | xValues | |
IValues<TY> | yValues |
updateRangeXyAt(int index, Iterable<TX> xValues, Iterable<TY> yValues)
Updates X and Y values at specified location
Declaration
public void updateRangeXyAt(int index, Iterable<TX> xValues, Iterable<TY> yValues)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
Iterable<TX> | xValues | |
Iterable<TY> | yValues |
updateRangeYAt(int index, TY[] yValues)
Updates Y values at specified location
Declaration
public void updateRangeYAt(int index, TY[] yValues)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
TY[] | yValues |
updateRangeYAt(int index, IValues<TY> yValues)
Updates Y values at specified location
Declaration
public void updateRangeYAt(int index, IValues<TY> yValues)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
IValues<TY> | yValues |
updateRangeYAt(int index, Iterable<TY> yValues)
Updates Y values at specified location
Declaration
public void updateRangeYAt(int index, Iterable<TY> yValues)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
Iterable<TY> | yValues |
updateXAt(int index, TX x)
Updates X value at specified location
Declaration
public void updateXAt(int index, TX x)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
TX | x |
updateXyAt(int index, TX x, TY y)
Updates X and Y value at specified location
Declaration
public void updateXyAt(int index, TX x, TY y)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
TX | x | |
TY | y |
updateYAt(int index, TY y)
Updates Y value at specified location
Declaration
public void updateYAt(int index, TY y)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
TY | y |
updateYRange(IRange<TY> yRange)
Sets the total extents of the IDataSeries in the Y direction.
Declaration
protected void updateYRange(IRange<TY> yRange)
Parameters
Type | Name | Description |
---|---|---|
IRange<TY> | yRange |