Class XYDataSeriesSwappableTableArray
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
com.illumon.iris.db.plot.datasets.xy.XYDataSeriesSwappableTableArray
- All Implemented Interfaces:
DataSeries
,DataSeriesInternal
,ValidatingDataSeries
,XYDataSeries
,XYDataSeriesInternal
,PlotExceptionCause
,Series
,SeriesInternal
,TableSnapshotSeries
,SwappableTable.LocalTableUpdateListener
,TableSnapshotChangeListener
,Serializable
public class XYDataSeriesSwappableTableArray extends XYDataSeriesArray implements SwappableTable.LocalTableUpdateListener, TableSnapshotSeries
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description XYDataSeriesSwappableTableArray(AxesImpl axes, int id, Comparable name, SwappableTable swappableTable, String x, String y)
-
Method Summary
Modifier and Type Method Description XYDataSeriesArray
copy(AxesImpl axes)
Create a copy of the series on a different set of axes.XYDataSeriesArray
createSnapshot()
Live data sets must override this implementation.void
onClose()
Series shut down after the plot is closed.void
onLocalTableUpdate(Table localTable)
Updates this listener with the new table.<T extends Paint>
AbstractXYDataSeriespointColorByY(Function<Double,T> colors)
Sets the point color for a data point based upon the y-value.Methods inherited from class com.illumon.iris.db.plot.datasets.xy.XYDataSeriesArray
convertSeriesToSortedSeries, getX, getX, getXRange, getY, getY, getYRange, size, sort
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, 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.util.tables.SwappableTable.LocalTableUpdateListener
onInitialSnapshot
Methods inherited from interface com.illumon.iris.db.plot.TableSnapshotSeries
notifyTableSnapshotChanged
Methods inherited from interface com.illumon.iris.db.plot.datasets.xy.XYDataSeriesInternal
drawXError, drawYError, getEndX, getEndY, getStartX, getStartY
-
Constructor Details
-
XYDataSeriesSwappableTableArray
public XYDataSeriesSwappableTableArray(AxesImpl axes, int id, Comparable name, SwappableTable swappableTable, String x, String y)
-
-
Method Details
-
pointColorByY
Description copied from interface:DataSeries
Sets the point color for a data point based upon the y-value.- Specified by:
pointColorByY
in interfaceDataSeries
- Overrides:
pointColorByY
in classAbstractXYDataSeries
- Parameters:
colors
- function from the y-value of data points toPaint
- Returns:
- this DataSeries
-
createSnapshot
Description copied from class:XYDataSeriesArray
Live data sets must override this implementation. See XYDataSeriesTableArray for an example.- Specified by:
createSnapshot
in interfaceDataSeriesInternal
- Specified by:
createSnapshot
in interfaceXYDataSeriesInternal
- Overrides:
createSnapshot
in classXYDataSeriesArray
-
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 interfaceSeriesInternal
- Specified by:
copy
in interfaceXYDataSeriesInternal
- Overrides:
copy
in classXYDataSeriesArray
- Parameters:
axes
- new axes.- Returns:
- copy of the series on a different set of axes.
-
onLocalTableUpdate
Description copied from interface:SwappableTable.LocalTableUpdateListener
Updates this listener with the new table.- Specified by:
onLocalTableUpdate
in interfaceSwappableTable.LocalTableUpdateListener
- Parameters:
localTable
- table
-
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 classXYDataSeriesArray
-