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) protected
XYDataSeriesArray
(XYDataSeriesArray series, AxesImpl axes) Creates a copy of a series using a different Axes and a different listener. -
Method Summary
Modifier and TypeMethodDescriptionprotected IndexableNumericData
convertSeriesToSortedSeries
(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()
double
getX
(int i) Gets the x value of the data point at indexi
.org.jfree.data.Range
Gets the x range of this dataset.getY()
double
getY
(int i) Gets the y value of the data point at indexi
.org.jfree.data.Range
Gets the y range of this dataset.void
onClose()
Series shut down after the plot is closed.int
size()
Gets the size of this data set.void
sort
(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, yToolTipPattern
Methods 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, setYToolTipPattern
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.DataSeriesInternal
axes, chart, getErrorBarColor, getGradientVisible, getLineColor, getLineStyle, getLinesVisible, getPlotInfo, getPointLabelFormat, getPointsVisible, getXToolTipPattern, getYToolTipPattern, id, name
Methods inherited from interface com.illumon.iris.db.plot.SeriesInternal
addSwappableTable, addTableHandle, addTableMapHandle, dataChangeListener, getSwappableTables, getTableHandles, getTableMapHandles, onInflate, removeTableHandle
Methods 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:SeriesInternal
Create 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:DataSeriesInternal
Gets 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:XYDataSeriesInternal
Gets 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:XYDataSeriesInternal
Gets 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:XYDataSeriesInternal
Gets 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:XYDataSeriesInternal
Gets 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:SeriesInternal
Series shut down after the plot is closed.- Specified by:
onClose
in interfaceSeriesInternal
- Overrides:
onClose
in classAbstractXYDataSeries
-
getX
-
getY
-