Package io.deephaven.plot.datasets.ohlc
Class OHLCDataSeriesArray
java.lang.Object
io.deephaven.plot.AbstractSeriesInternal
io.deephaven.plot.datasets.AbstractDataSeries
io.deephaven.plot.datasets.xy.AbstractXYDataSeries
io.deephaven.plot.datasets.ohlc.OHLCDataSeriesArray
- All Implemented Interfaces:
DataSeries,DataSeriesInternal,OHLCDataSeries,OHLCDataSeriesInternal,XYDataSeries,XYDataSeriesInternal,PlotExceptionCause,Series,SeriesInternal,Serializable
- Direct Known Subclasses:
OHLCDataSeriesSwappableTableArray,OHLCDataSeriesTableArray
An implementation of
OHLCDataSeriesInternal. This Doesn't allow for multiple series.- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionOHLCDataSeriesArray(AxesImpl axes, int id, Comparable name, IndexableNumericData time, IndexableNumericData open, IndexableNumericData high, IndexableNumericData low, IndexableNumericData close) Creates an OHLCDataSeriesArray instance.OHLCDataSeriesArray(AxesImpl axes, int id, Comparable name, IndexableNumericData time, IndexableNumericData open, IndexableNumericData high, IndexableNumericData low, IndexableNumericData close, AbstractXYDataSeries series) protectedOHLCDataSeriesArray(OHLCDataSeriesArray series, AxesImpl axes) Creates a copy of a series using a different Axes. -
Method Summary
Modifier and TypeMethodDescriptionCreate a copy of the series on a different set of axes.getClose()doublegetClose(int item) Gets the close value at indexi.getHigh()doublegetHigh(int item) Gets the high value at indexi.getLow()doublegetLow(int item) Gets the low value at indexi.getOpen()doublegetOpen(int item) Gets the open value at indexi.getTime()doublegetX(int item) Gets the x value of the data point at indexi.doublegetY(int item) Gets the y value of the data point at indexi.intsize()Gets the size of this data set.Methods inherited from class io.deephaven.plot.datasets.xy.AbstractXYDataSeries
colorsSetSpecific, errorBarColor, errorBarColor, errorBarColor, getPointColor, getPointColor, getPointLabel, getPointLabel, getPointShape, getPointShape, getPointSize, getPointSize, getSeriesColor, gradientVisible, lineColor, lineColor, lineColor, lineStyle, linesVisible, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColorInteger, pointLabel, pointLabel, pointLabel, pointLabel, pointLabel, pointLabelFormat, pointShape, pointShape, pointShape, pointShape, pointShape, pointShape, pointShape, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointsVisible, seriesColor, seriesColor, seriesColor, toolTipPattern, xToolTipPattern, yToolTipPatternMethods inherited from class io.deephaven.plot.datasets.AbstractDataSeries
chart, getErrorBarColor, getGradientVisible, getLineColor, getLineStyle, getLinesVisible, getPointLabelFormat, getPointsVisible, getXToolTipPattern, getYToolTipPattern, setErrorBarColor, setErrorBarColor, setErrorBarColor, setGradientVisible, setLineColor, setLineColor, setLineColor, setLineStyle, setLinesVisible, setPointLabelFormat, setPointsVisible, setXToolTipPattern, setYToolTipPatternMethods inherited from class io.deephaven.plot.AbstractSeriesInternal
addPartitionedTableHandle, addSwappableTable, addTableHandle, axes, getPartitionedTableHandles, getSwappableTables, getTableHandles, id, name, removeTableHandleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.plot.datasets.DataSeries
errorBarColor, errorBarColor, errorBarColor, gradientVisible, lineColor, lineColor, lineColor, lineStyle, linesVisible, pointColor, pointColor, pointColor, pointLabel, pointLabelFormat, pointShape, pointShape, pointSize, pointSize, pointSize, pointSize, pointsVisible, seriesColor, seriesColor, seriesColor, toolTipPattern, xToolTipPattern, yToolTipPatternMethods inherited from interface io.deephaven.plot.datasets.DataSeriesInternal
axes, chart, getErrorBarColor, getGradientVisible, getLineColor, getLineStyle, getLinesVisible, getPlotInfo, getPointLabelFormat, getPointsVisible, getSeriesColor, getXToolTipPattern, getYToolTipPattern, id, nameMethods inherited from interface io.deephaven.plot.SeriesInternal
addPartitionedTableHandle, addSwappableTable, addTableHandle, getPartitionedTableHandles, getSwappableTables, getTableHandles, removeTableHandleMethods inherited from interface io.deephaven.plot.datasets.xy.XYDataSeries
pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColorInteger, pointLabel, pointLabel, pointLabel, pointLabel, pointShape, pointShape, pointShape, pointShape, pointShape, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSizeMethods inherited from interface io.deephaven.plot.datasets.xy.XYDataSeriesInternal
drawXError, drawYError, getEndX, getEndY, getPointColor, getPointColor, getPointLabel, getPointLabel, getPointShape, getPointShape, getPointSize, getPointSize, getStartX, getStartY
-
Constructor Details
-
OHLCDataSeriesArray
public OHLCDataSeriesArray(AxesImpl axes, int id, Comparable name, IndexableNumericData time, IndexableNumericData open, IndexableNumericData high, IndexableNumericData low, IndexableNumericData close) Creates an OHLCDataSeriesArray instance. This dataset is suited for open-high-low-close charts.- Parameters:
axes- axes on which the dataset will be plottedid- data series idname- series nametime- time dataopen- open datahigh- high datalow- low dataclose- close data- Throws:
RequirementFailure-time,open,high,low,closemust not be null
-
OHLCDataSeriesArray
public OHLCDataSeriesArray(AxesImpl axes, int id, Comparable name, IndexableNumericData time, IndexableNumericData open, IndexableNumericData high, IndexableNumericData low, IndexableNumericData close, AbstractXYDataSeries series) -
OHLCDataSeriesArray
Creates a copy of a series using a different Axes.- Parameters:
series- series to copy.axes- new axes to use.
-
-
Method Details
-
copy
Description copied from interface:SeriesInternalCreate a copy of the series on a different set of axes.- Specified by:
copyin interfaceDataSeriesInternal- Specified by:
copyin interfaceOHLCDataSeriesInternal- Specified by:
copyin interfaceSeriesInternal- Specified by:
copyin interfaceXYDataSeriesInternal- Parameters:
axes- new axes.- Returns:
- copy of the series on a different set of axes.
-
getOpen
public double getOpen(int item) Description copied from interface:OHLCDataSeriesInternalGets the open value at indexi.- Specified by:
getOpenin interfaceOHLCDataSeriesInternal- Parameters:
item- index- Returns:
- open value at given index
-
getHigh
public double getHigh(int item) Description copied from interface:OHLCDataSeriesInternalGets the high value at indexi.- Specified by:
getHighin interfaceOHLCDataSeriesInternal- Parameters:
item- index- Returns:
- high value at given index
-
getLow
public double getLow(int item) Description copied from interface:OHLCDataSeriesInternalGets the low value at indexi.- Specified by:
getLowin interfaceOHLCDataSeriesInternal- Parameters:
item- index- Returns:
- low value at given index
-
getClose
public double getClose(int item) Description copied from interface:OHLCDataSeriesInternalGets the close value at indexi.- Specified by:
getClosein interfaceOHLCDataSeriesInternal- Parameters:
item- index- Returns:
- close value at given index
-
size
public int size()Description copied from interface:DataSeriesInternalGets the size of this data set.- Specified by:
sizein interfaceDataSeriesInternal- Returns:
- size of this data set
-
getX
public double getX(int item) Description copied from interface:XYDataSeriesInternalGets the x value of the data point at indexi.- Specified by:
getXin interfaceXYDataSeriesInternal- Parameters:
item- index- Returns:
- x value of this data point at index
i
-
getY
public double getY(int item) Description copied from interface:XYDataSeriesInternalGets the y value of the data point at indexi.- Specified by:
getYin interfaceXYDataSeriesInternal- Parameters:
item- index- Returns:
- x value of this data point at index
i
-
getTime
-
getOpen
-
getHigh
-
getLow
-
getClose
-