Class OHLCDataSeriesArray
java.lang.Object
com.illumon.iris.db.plot.AbstractSeriesInternal
com.illumon.iris.db.plot.datasets.AbstractDataSeries
com.illumon.iris.db.plot.datasets.xy.AbstractXYDataSeries
com.illumon.iris.db.plot.datasets.ohlc.OHLCDataSeriesArray
- All Implemented Interfaces:
DataSeries,DataSeriesInternal,OHLCDataSeries,OHLCDataSeriesInternal,ValidatingDataSeries,XYDataSeries,XYDataSeriesInternal,PlotExceptionCause,Series,SeriesInternal,Serializable
- Direct Known Subclasses:
OHLCDataSeriesSwappableTableArray,OHLCDataSeriesTableArray
An implementation of
OHLCDataSeriesInternal.
This Doesn't allow for multiple series.- See Also:
-
Field Summary
Fields inherited from class com.illumon.iris.db.plot.AbstractSeriesInternal
dataChangeListener -
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 and a different listener. -
Method Summary
Modifier and TypeMethodDescriptionCreate a copy of the series on a different set of axes.Live data sets must override this implementation.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.org.jfree.data.RangeGets the x range of this dataset.doublegetY(int item) Gets the y value of the data point at indexi.org.jfree.data.RangeGets the y range of this dataset.voidonClose()Series shut down after the plot is closed.intsize()Gets the size of this data set.Methods inherited from class com.illumon.iris.db.plot.datasets.xy.AbstractXYDataSeries
colorsSetSpecific, errorBarColor, errorBarColor, errorBarColor, getPointColor, getPointLabel, getPointShape, getPointSize, getSeriesColor, gradientVisible, lineColor, lineColor, lineColor, lineStyle, linesVisible, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColorByY, pointColorByY, 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, snapshotModifiers, toolTipPattern, validate, xToolTipPattern, yToolTipPatternMethods inherited from class com.illumon.iris.db.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 com.illumon.iris.db.plot.AbstractSeriesInternal
addSwappableTable, addTableHandle, addTableMapHandle, axes, dataChangeListener, getSwappableTables, getTableHandles, getTableMapHandles, id, name, removeTableHandleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.plot.datasets.DataSeries
errorBarColor, errorBarColor, errorBarColor, gradientVisible, lineColor, lineColor, lineColor, lineStyle, linesVisible, pointColor, pointColor, pointColor, pointColorByY, pointColorByY, pointLabel, pointLabelFormat, pointShape, pointShape, pointSize, pointSize, pointSize, pointSize, pointsVisible, seriesColor, seriesColor, seriesColor, toolTipPattern, xToolTipPattern, yToolTipPatternMethods inherited from interface com.illumon.iris.db.plot.datasets.DataSeriesInternal
axes, chart, getErrorBarColor, getGradientVisible, getLineColor, getLineStyle, getLinesVisible, getPlotInfo, getPointLabelFormat, getPointsVisible, getSeriesColor, getXToolTipPattern, getYToolTipPattern, id, nameMethods inherited from interface com.illumon.iris.db.plot.SeriesInternal
addSwappableTable, addTableHandle, addTableMapHandle, dataChangeListener, getSwappableTables, getTableHandles, getTableMapHandles, onInflate, removeTableHandleMethods inherited from interface com.illumon.iris.db.plot.datasets.xy.ValidatingDataSeries
validateMethods inherited from interface com.illumon.iris.db.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 com.illumon.iris.db.plot.datasets.xy.XYDataSeriesInternal
drawXError, drawYError, getEndX, getEndY, getPointColor, getPointLabel, getPointShape, getPointSize, getStartX, getStartY, sort
-
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:
com.fishlib.base.verify.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 and a different listener.- 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
-
createSnapshot
Live data sets must override this implementation. See OHLCDataSeriesTableArray for an example.- Specified by:
createSnapshotin interfaceDataSeriesInternal- Specified by:
createSnapshotin interfaceOHLCDataSeriesInternal- Specified by:
createSnapshotin interfaceXYDataSeriesInternal
-
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
-
getXRange
public org.jfree.data.Range getXRange()Description copied from interface:XYDataSeriesInternalGets the x range of this dataset. Should never return null.- Specified by:
getXRangein interfaceXYDataSeriesInternal- Returns:
- x range of this dataset
-
getYRange
public org.jfree.data.Range getYRange()Description copied from interface:XYDataSeriesInternalGets the y range of this dataset. Should never return null.- Specified by:
getYRangein interfaceXYDataSeriesInternal- Returns:
- y range of this dataset
-
onClose
public void onClose()Description copied from interface:SeriesInternalSeries shut down after the plot is closed.- Specified by:
onClosein interfaceSeriesInternal- Overrides:
onClosein classAbstractXYDataSeries
-
getTime
-
getOpen
-
getHigh
-
getLow
-
getClose
-