TX
- The type of X-DataTY
- The type of Y-Datapublic class OhlcDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>> extends XDataSeries<TX,TY> implements IOhlcDataSeries<TX,TY>, IXyDataSeriesValues<TX,TY>
dataDistributionCalculator, xColumn
DEFAULT_SIZE, lock, TAG, xMath, xType, yMath, yType
Constructor and Description |
---|
OhlcDataSeries(java.lang.Class<TX> xType,
java.lang.Class<TY> yType)
Creates a new Instance of
OhlcDataSeries class |
OhlcDataSeries(java.lang.Class<TX> xType,
java.lang.Class<TY> yType,
IDataDistributionCalculator<TX> dataDistributionCalculator)
Creates a new Instance of
OhlcDataSeries class |
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.Iterable<TX> xValues,
java.lang.Iterable<TY> openValues,
java.lang.Iterable<TY> highValues,
java.lang.Iterable<TY> lowValues,
java.lang.Iterable<TY> closeValues)
Append X, Open, High, Low and Close values to the series
|
void |
append(com.scichart.core.model.IValues<TX> xValues,
com.scichart.core.model.IValues<TY> openValues,
com.scichart.core.model.IValues<TY> highValues,
com.scichart.core.model.IValues<TY> lowValues,
com.scichart.core.model.IValues<TY> closeValues)
Append X, Open, High, Low and Close values to the series
|
void |
append(TX[] xValues,
TY[] openValues,
TY[] highValues,
TY[] lowValues,
TY[] closeValues)
Append X, Open, High, Low and Close values to the series
|
void |
append(TX x,
TY open,
TY high,
TY low,
TY close)
Append X, Open, High, Low and Close value to the series
|
protected void |
clearColumns()
Clears content of series without recreation of internal lists
|
com.scichart.data.model.ISciList<TY> |
getCloseValues()
Gets the High Values of this series
|
DataSeriesType |
getDataSeriesType()
Gets the
DataSeriesType for this DataSeries. |
boolean |
getHasValues()
Gets whether the DataSeries has values(is not empty).
|
com.scichart.data.model.ISciList<TY> |
getHighValues()
Gets the High Values of this series
|
com.scichart.data.model.ISciList<TY> |
getLowValues()
Gets the High Values of this series
|
com.scichart.data.model.ISciList<TY> |
getOpenValues()
Gets the High Values of this series
|
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 open,
TY high,
TY low,
TY close)
Inserts X, Open, High, Low and Close value at specified location
|
void |
insertRange(int startIndex,
java.lang.Iterable<TX> x,
java.lang.Iterable<TY> open,
java.lang.Iterable<TY> high,
java.lang.Iterable<TY> low,
java.lang.Iterable<TY> close)
Inserts X, Open, High, Low and Close values at specified location
|
void |
insertRange(int startIndex,
com.scichart.core.model.IValues<TX> x,
com.scichart.core.model.IValues<TY> open,
com.scichart.core.model.IValues<TY> high,
com.scichart.core.model.IValues<TY> low,
com.scichart.core.model.IValues<TY> close)
Inserts X, Open, High, Low and Close values at specified location
|
void |
insertRange(int startIndex,
TX[] x,
TY[] open,
TY[] high,
TY[] low,
TY[] close)
Inserts Open, High, Low and Close 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 |
update(int index,
java.lang.Iterable<TY> open,
java.lang.Iterable<TY> high,
java.lang.Iterable<TY> low,
java.lang.Iterable<TY> close)
Updates Open, High, Low and Close values at specified location
|
void |
update(int index,
com.scichart.core.model.IValues<TY> open,
com.scichart.core.model.IValues<TY> high,
com.scichart.core.model.IValues<TY> low,
com.scichart.core.model.IValues<TY> close)
Updates Open, High, Low and Close values at specified location
|
void |
update(int index,
TY[] open,
TY[] high,
TY[] low,
TY[] close)
Updates Open, High, Low and Close values at specified location
|
void |
update(int index,
TY open,
TY high,
TY low,
TY close)
Updates X, Open, High, Low and Close 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, 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, getIndicesXRange, getIndicesYRange, getLock, getSeriesName, getWindowedYRange, getXMath, getXMax, getXMin, getXRange, getXType, getYMath, getYMax, getYMin, getYRange, getYType, isFifo, removeObserver, setAcceptsUnsortedData, setFifoCapacity, setSeriesName
public OhlcDataSeries(java.lang.Class<TX> xType, java.lang.Class<TY> yType, IDataDistributionCalculator<TX> dataDistributionCalculator)
OhlcDataSeries
classxType
- The Type of X Data (TX)yType
- The Type of Y (Open, High, Low, Close) Data (TY)dataDistributionCalculator
- An optional DataDistributionCalculator, which can be used to specify
Sorted Ascending and Evenly Spaced flagspublic OhlcDataSeries(java.lang.Class<TX> xType, java.lang.Class<TY> yType)
OhlcDataSeries
classxType
- The Type of X Data (TX)yType
- The Type of Y (Open, High, Low, Close) Data (TY)protected 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.ISciList<TY> getOpenValues()
getOpenValues
in interface IOhlcDataSeriesValues<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
public com.scichart.data.model.ISciList<TY> getHighValues()
getHighValues
in interface IOhlcDataSeriesValues<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
public com.scichart.data.model.ISciList<TY> getLowValues()
getLowValues
in interface IOhlcDataSeriesValues<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
public com.scichart.data.model.ISciList<TY> getCloseValues()
getCloseValues
in interface IOhlcDataSeriesValues<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<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 boolean getHasValues()
getHasValues
in interface IDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
getHasValues
in class DataSeries<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 append(TX x, TY open, TY high, TY low, TY close)
public void append(java.lang.Iterable<TX> xValues, java.lang.Iterable<TY> openValues, java.lang.Iterable<TY> highValues, java.lang.Iterable<TY> lowValues, java.lang.Iterable<TY> closeValues)
public void append(TX[] xValues, TY[] openValues, TY[] highValues, TY[] lowValues, TY[] closeValues)
public void append(com.scichart.core.model.IValues<TX> xValues, com.scichart.core.model.IValues<TY> openValues, com.scichart.core.model.IValues<TY> highValues, com.scichart.core.model.IValues<TY> lowValues, com.scichart.core.model.IValues<TY> closeValues)
public void update(int index, TY open, TY high, TY low, TY close)
public void update(int index, java.lang.Iterable<TY> open, java.lang.Iterable<TY> high, java.lang.Iterable<TY> low, java.lang.Iterable<TY> close)
public void update(int index, TY[] open, TY[] high, TY[] low, TY[] close)
public void update(int index, com.scichart.core.model.IValues<TY> open, com.scichart.core.model.IValues<TY> high, com.scichart.core.model.IValues<TY> low, com.scichart.core.model.IValues<TY> close)
public void insert(int index, TX x, TY open, TY high, TY low, TY close)
public void insertRange(int startIndex, java.lang.Iterable<TX> x, java.lang.Iterable<TY> open, java.lang.Iterable<TY> high, java.lang.Iterable<TY> low, java.lang.Iterable<TY> close)
insertRange
in interface IOhlcDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
startIndex
- The index to insert atx
- The X valuesopen
- The Open valueshigh
- The High valueslow
- The Low valuesclose
- The close valuespublic void insertRange(int startIndex, TX[] x, TY[] open, TY[] high, TY[] low, TY[] close)
insertRange
in interface IOhlcDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
startIndex
- The index to insert atx
- The X valuesopen
- The Open valueshigh
- The High valueslow
- The Low valuesclose
- The close valuespublic void insertRange(int startIndex, com.scichart.core.model.IValues<TX> x, com.scichart.core.model.IValues<TY> open, com.scichart.core.model.IValues<TY> high, com.scichart.core.model.IValues<TY> low, com.scichart.core.model.IValues<TY> close)
insertRange
in interface IOhlcDataSeries<TX extends java.lang.Comparable<TX>,TY extends java.lang.Comparable<TY>>
startIndex
- The index to insert atx
- The X valuesopen
- The Open valueshigh
- The High valueslow
- The Low valuesclose
- The close 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 remove