Class TransformedOHLCDataSeries<T extends OHLCDataSeriesInternal>
java.lang.Object
com.illumon.iris.db.plot.AbstractSeriesInternal
com.illumon.iris.db.plot.datasets.xy.TransformedXYDataSeries<T>
com.illumon.iris.db.plot.datasets.ohlc.TransformedOHLCDataSeries<T>
- All Implemented Interfaces:
DataSeries
,DataSeriesInternal
,OHLCDataSeries
,OHLCDataSeriesInternal
,ValidatingDataSeries
,XYDataSeries
,XYDataSeriesInternal
,XYErrorBarDataSeries
,XYErrorBarDataSeriesInternal
,PlotExceptionCause
,Series
,SeriesInternal
,Serializable
- Direct Known Subclasses:
TransformedOHLCDataSeries.TransformedOHLCDataSeriesSnapshot
public class TransformedOHLCDataSeries<T extends OHLCDataSeriesInternal> extends TransformedXYDataSeries<T> implements OHLCDataSeriesInternal
OHLCDataSeriesInternal
with possible transforms on x and y data.- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TransformedOHLCDataSeries.TransformedOHLCDataSeriesSnapshot
Nested classes/interfaces inherited from class com.illumon.iris.db.plot.datasets.xy.TransformedXYDataSeries
TransformedXYDataSeries.TransformedXYDataSeriesSnapshot
-
Field Summary
Fields inherited from class com.illumon.iris.db.plot.datasets.xy.TransformedXYDataSeries
series, xTransform, yTransform
-
Constructor Summary
Constructors Constructor Description TransformedOHLCDataSeries(T series, DoubleUnaryOperator xTransform, DoubleUnaryOperator yTransform)
Creates a TransformedOHLCDataSeries instance.TransformedOHLCDataSeries(T series, DoubleUnaryOperator xTransform, DoubleUnaryOperator yTransform, boolean isSnapshot)
Creates a TransformedOHLCDataSeries instance. -
Method Summary
Modifier and Type Method Description TransformedOHLCDataSeries
copy(AxesImpl axes)
Create a copy of the series on a different set of axes.TransformedOHLCDataSeries
createSnapshot()
Returns a snapshot of this dataset which will not update.double
getClose(int i)
Gets the close value at indexi
.double
getHigh(int i)
Gets the high value at indexi
.double
getLow(int i)
Gets the low value at indexi
.double
getOpen(int i)
Gets the open value at indexi
.Methods inherited from class com.illumon.iris.db.plot.datasets.xy.TransformedXYDataSeries
chart, drawXError, drawYError, errorBarColor, errorBarColor, errorBarColor, getEndX, getEndY, getErrorBarColor, getGradientVisible, getLineColor, getLineStyle, getLinesVisible, getPointColor, getPointLabel, getPointLabelFormat, getPointShape, getPointSize, getPointsVisible, getSeriesColor, getStartX, getStartY, getX, getXRange, getXToolTipPattern, getY, getYRange, getYToolTipPattern, gradientVisible, lineColor, lineColor, lineColor, lineStyle, linesVisible, onClose, 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, size, sort, validate, xToolTipPattern, yToolTipPattern
Methods inherited from class com.illumon.iris.db.plot.AbstractSeriesInternal
addSwappableTable, addTableHandle, addTableMapHandle, axes, dataChangeListener, getSwappableTables, getTableHandles, getTableMapHandles, id, name, removeTableHandle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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, yToolTipPattern
Methods inherited from interface com.illumon.iris.db.plot.datasets.DataSeriesInternal
axes, chart, getErrorBarColor, getGradientVisible, getLineColor, getLineStyle, getLinesVisible, getPlotInfo, getPointLabelFormat, getPointsVisible, getSeriesColor, getXToolTipPattern, getYToolTipPattern, id, name, size
Methods inherited from interface com.illumon.iris.db.plot.SeriesInternal
addSwappableTable, addTableHandle, addTableMapHandle, dataChangeListener, getSwappableTables, getTableHandles, getTableMapHandles, onClose, onInflate, removeTableHandle
Methods 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, pointSize
Methods inherited from interface com.illumon.iris.db.plot.datasets.xy.XYDataSeriesInternal
drawXError, drawYError, getEndX, getEndY, getPointColor, getPointLabel, getPointShape, getPointSize, getStartX, getStartY, getX, getXRange, getY, getYRange, sort
-
Constructor Details
-
TransformedOHLCDataSeries
public TransformedOHLCDataSeries(T series, DoubleUnaryOperator xTransform, DoubleUnaryOperator yTransform)Creates a TransformedOHLCDataSeries instance.- Parameters:
series
- dataxTransform
- transform on x valuesyTransform
- transform on y values
-
TransformedOHLCDataSeries
public TransformedOHLCDataSeries(T series, DoubleUnaryOperator xTransform, DoubleUnaryOperator yTransform, boolean isSnapshot)Creates a TransformedOHLCDataSeries instance.- Parameters:
series
- dataxTransform
- transform on x valuesyTransform
- transform on y valuesisSnapshot
- indicates if this is a snapshot
-
-
Method Details
-
copy
Description copied from interface:SeriesInternal
Create a copy of the series on a different set of axes.- Specified by:
copy
in interfaceDataSeriesInternal
- Specified by:
copy
in interfaceOHLCDataSeriesInternal
- Specified by:
copy
in interfaceSeriesInternal
- Specified by:
copy
in interfaceXYDataSeriesInternal
- Specified by:
copy
in interfaceXYErrorBarDataSeriesInternal
- Overrides:
copy
in classTransformedXYDataSeries<T extends OHLCDataSeriesInternal>
- Parameters:
axes
- new axes.- Returns:
- copy of the series on a different set of axes.
-
createSnapshot
Description copied from interface:DataSeriesInternal
Returns a snapshot of this dataset which will not update.- Specified by:
createSnapshot
in interfaceDataSeriesInternal
- Specified by:
createSnapshot
in interfaceOHLCDataSeriesInternal
- Specified by:
createSnapshot
in interfaceXYDataSeriesInternal
- Overrides:
createSnapshot
in classTransformedXYDataSeries<T extends OHLCDataSeriesInternal>
-
getOpen
public double getOpen(int i)Description copied from interface:OHLCDataSeriesInternal
Gets the open value at indexi
.- Specified by:
getOpen
in interfaceOHLCDataSeriesInternal
- Parameters:
i
- index- Returns:
- open value at given index
-
getHigh
public double getHigh(int i)Description copied from interface:OHLCDataSeriesInternal
Gets the high value at indexi
.- Specified by:
getHigh
in interfaceOHLCDataSeriesInternal
- Parameters:
i
- index- Returns:
- high value at given index
-
getLow
public double getLow(int i)Description copied from interface:OHLCDataSeriesInternal
Gets the low value at indexi
.- Specified by:
getLow
in interfaceOHLCDataSeriesInternal
- Parameters:
i
- index- Returns:
- low value at given index
-
getClose
public double getClose(int i)Description copied from interface:OHLCDataSeriesInternal
Gets the close value at indexi
.- Specified by:
getClose
in interfaceOHLCDataSeriesInternal
- Parameters:
i
- index- Returns:
- close value at given index
-