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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested 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, yTransformFields inherited from class com.illumon.iris.db.plot.AbstractSeriesInternal
dataChangeListener -
Constructor Summary
ConstructorsConstructorDescriptionTransformedOHLCDataSeries(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 TypeMethodDescriptionCreate a copy of the series on a different set of axes.Returns a snapshot of this dataset which will not update.doublegetClose(int i) Gets the close value at indexi.doublegetHigh(int i) Gets the high value at indexi.doublegetLow(int i) Gets the low value at indexi.doublegetOpen(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, yToolTipPatternMethods 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, name, sizeMethods inherited from interface com.illumon.iris.db.plot.SeriesInternal
addSwappableTable, addTableHandle, addTableMapHandle, dataChangeListener, getSwappableTables, getTableHandles, getTableMapHandles, onClose, 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, 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: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- Specified by:
copyin interfaceXYErrorBarDataSeriesInternal- Overrides:
copyin classTransformedXYDataSeries<T extends OHLCDataSeriesInternal>- Parameters:
axes- new axes.- Returns:
- copy of the series on a different set of axes.
-
createSnapshot
Description copied from interface:DataSeriesInternalReturns a snapshot of this dataset which will not update.- Specified by:
createSnapshotin interfaceDataSeriesInternal- Specified by:
createSnapshotin interfaceOHLCDataSeriesInternal- Specified by:
createSnapshotin interfaceXYDataSeriesInternal- Overrides:
createSnapshotin classTransformedXYDataSeries<T extends OHLCDataSeriesInternal>
-
getOpen
public double getOpen(int i) Description copied from interface:OHLCDataSeriesInternalGets the open value at indexi.- Specified by:
getOpenin interfaceOHLCDataSeriesInternal- Parameters:
i- index- Returns:
- open value at given index
-
getHigh
public double getHigh(int i) Description copied from interface:OHLCDataSeriesInternalGets the high value at indexi.- Specified by:
getHighin interfaceOHLCDataSeriesInternal- Parameters:
i- index- Returns:
- high value at given index
-
getLow
public double getLow(int i) Description copied from interface:OHLCDataSeriesInternalGets the low value at indexi.- Specified by:
getLowin interfaceOHLCDataSeriesInternal- Parameters:
i- index- Returns:
- low value at given index
-
getClose
public double getClose(int i) Description copied from interface:OHLCDataSeriesInternalGets the close value at indexi.- Specified by:
getClosein interfaceOHLCDataSeriesInternal- Parameters:
i- index- Returns:
- close value at given index
-