Class XYDataSeriesArray
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.xy.XYDataSeriesArray
- All Implemented Interfaces:
DataSeries,DataSeriesInternal,ValidatingDataSeries,XYDataSeries,XYDataSeriesInternal,PlotExceptionCause,Series,SeriesInternal,Serializable
- Direct Known Subclasses:
IntervalXYDataSeriesArray,XYDataSeriesSwappableTableArray,XYDataSeriesTableArray,XYErrorBarDataSeriesArray
XYDataSeriesInternal backed by IndexableNumericData.- See Also:
-
Field Summary
Fields inherited from class com.illumon.iris.db.plot.AbstractSeriesInternal
dataChangeListener -
Constructor Summary
ConstructorsModifierConstructorDescriptionXYDataSeriesArray(AxesImpl axes, int id, Comparable name, IndexableNumericData x, IndexableNumericData y) Creates a XYDataSeriesArray instance.XYDataSeriesArray(AxesImpl axes, int id, Comparable name, IndexableNumericData x, IndexableNumericData y, AbstractXYDataSeries series) protectedXYDataSeriesArray(XYDataSeriesArray series, AxesImpl axes) Creates a copy of a series using a different Axes and a different listener. -
Method Summary
Modifier and TypeMethodDescriptionprotected IndexableNumericDataconvertSeriesToSortedSeries(IndexableNumericData series, DoubleIntegerConsumer onAdd, DoubleIntegerConsumer onRemove, DoubleIntegerConsumer onModify) Create a copy of the series on a different set of axes.Live data sets must override this implementation.getX()doublegetX(int i) Gets the x value of the data point at indexi.org.jfree.data.RangeGets the x range of this dataset.getY()doublegetY(int i) 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.voidsort(DoubleIntegerConsumer onAdd, DoubleIntegerConsumer onRemove, DoubleIntegerConsumer onModify) 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.DataSeriesInternal
axes, chart, getErrorBarColor, getGradientVisible, getLineColor, getLineStyle, getLinesVisible, getPlotInfo, getPointLabelFormat, getPointsVisible, 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.XYDataSeriesInternal
drawXError, drawYError, getEndX, getEndY, getStartX, getStartY
-
Constructor Details
-
XYDataSeriesArray
public XYDataSeriesArray(AxesImpl axes, int id, Comparable name, IndexableNumericData x, IndexableNumericData y) Creates a XYDataSeriesArray instance.- Parameters:
axes- axes on which this data series will be plottedid- data series idname- series namex- x-valuesy- y-values
-
XYDataSeriesArray
public XYDataSeriesArray(AxesImpl axes, int id, Comparable name, IndexableNumericData x, IndexableNumericData y, AbstractXYDataSeries series) -
XYDataSeriesArray
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.- Parameters:
axes- new axes.- Returns:
- copy of the series on a different set of axes.
-
size
public int size()Description copied from interface:DataSeriesInternalGets the size of this data set.- Returns:
- size of this data set
-
createSnapshot
Live data sets must override this implementation. See XYDataSeriesTableArray for an example. -
getX
public double getX(int i) Description copied from interface:XYDataSeriesInternalGets the x value of the data point at indexi.- Parameters:
i- index- Returns:
- x value of this data point at index
i
-
getY
public double getY(int i) Description copied from interface:XYDataSeriesInternalGets the y value of the data point at indexi.- Parameters:
i- index- Returns:
- x value of this data point at index
i
-
sort
public void sort(DoubleIntegerConsumer onAdd, DoubleIntegerConsumer onRemove, DoubleIntegerConsumer onModify) -
getXRange
public org.jfree.data.Range getXRange()Description copied from interface:XYDataSeriesInternalGets the x range of this dataset. Should never return null.- 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.- Returns:
- y range of this dataset
-
convertSeriesToSortedSeries
protected IndexableNumericData convertSeriesToSortedSeries(IndexableNumericData series, DoubleIntegerConsumer onAdd, DoubleIntegerConsumer onRemove, DoubleIntegerConsumer onModify) -
onClose
public void onClose()Description copied from interface:SeriesInternalSeries shut down after the plot is closed.- Specified by:
onClosein interfaceSeriesInternal- Overrides:
onClosein classAbstractXYDataSeries
-
getX
-
getY
-