Class IntervalXYDataSeriesArray
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.interval.IntervalXYDataSeriesArray
- All Implemented Interfaces:
DataSeries
,DataSeriesInternal
,IntervalXYDataSeries
,IntervalXYDataSeriesInternal
,ValidatingDataSeries
,XYDataSeries
,XYDataSeriesInternal
,PlotExceptionCause
,Series
,SeriesInternal
,TableSnapshotSeries
,SwappableTable.LocalTableUpdateListener
,TableSnapshotChangeListener
,Serializable
public class IntervalXYDataSeriesArray extends XYDataSeriesArray implements IntervalXYDataSeriesInternal, TableSnapshotSeries, SwappableTable.LocalTableUpdateListener
An
XYDataSeriesArray
suitable for bar charts.- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description IntervalXYDataSeriesArray(AxesImpl axes, int id, Comparable name, SwappableTable swappableTable, IndexableNumericData startX, IndexableNumericData midX, IndexableNumericData endX, IndexableNumericData startY, IndexableNumericData midY, IndexableNumericData endY)
IntervalXYDataSeriesArray(AxesImpl axes, int id, Comparable name, TableHandle tableHandle, IndexableNumericData startX, IndexableNumericData midX, IndexableNumericData endX, IndexableNumericData startY, IndexableNumericData midY, IndexableNumericData endY)
IntervalXYDataSeriesArray(AxesImpl axes, int id, Comparable name, TableHandle tableHandle, SwappableTable swappableTable, IndexableNumericData startX, IndexableNumericData midX, IndexableNumericData endX, IndexableNumericData startY, IndexableNumericData midY, IndexableNumericData endY, XYDataSeriesArray series)
Creates an instance of IntervalXYDataSeriesArray with the specified data points. -
Method Summary
Modifier and Type Method Description IntervalXYDataSeriesArray
copy(AxesImpl axes)
Create a copy of the series on a different set of axes.IntervalXYDataSeriesArray
createSnapshot()
Live data sets must override this implementation.IndexableNumericData
getEndX()
double
getEndX(int item)
Gets the right-most point of the bar.IndexableNumericData
getEndY()
double
getEndY(int item)
Gets the top-most point of the bar.IndexableNumericData
getStartX()
double
getStartX(int item)
Gets the left-most point of the bar.IndexableNumericData
getStartY()
double
getStartY(int item)
Gets the bottom-most point of the bar.org.jfree.data.Range
getXRange()
Gets the x range of this dataset.org.jfree.data.Range
getYRange()
Gets the y range of this dataset.void
onClose()
Series shut down after the plot is closed.void
onLocalTableUpdate(Table localTable)
Updates this listener with the new table.Methods inherited from class com.illumon.iris.db.plot.datasets.xy.XYDataSeriesArray
convertSeriesToSortedSeries, getX, getX, getY, getY, 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, 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.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, 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.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, getPointColor, getPointLabel, getPointShape, getPointSize, getX, getY, sort
-
Field Details
-
BIN_MIN
- See Also:
- Constant Field Values
-
BIN_MID
- See Also:
- Constant Field Values
-
BIN_MAX
- See Also:
- Constant Field Values
-
COUNT
- See Also:
- Constant Field Values
-
-
Constructor Details
-
IntervalXYDataSeriesArray
public IntervalXYDataSeriesArray(AxesImpl axes, int id, Comparable name, @NotNull TableHandle tableHandle, IndexableNumericData startX, IndexableNumericData midX, IndexableNumericData endX, IndexableNumericData startY, IndexableNumericData midY, IndexableNumericData endY) -
IntervalXYDataSeriesArray
public IntervalXYDataSeriesArray(AxesImpl axes, int id, Comparable name, @NotNull SwappableTable swappableTable, IndexableNumericData startX, IndexableNumericData midX, IndexableNumericData endX, IndexableNumericData startY, IndexableNumericData midY, IndexableNumericData endY) -
IntervalXYDataSeriesArray
public IntervalXYDataSeriesArray(AxesImpl axes, int id, Comparable name, TableHandle tableHandle, SwappableTable swappableTable, IndexableNumericData startX, IndexableNumericData midX, IndexableNumericData endX, IndexableNumericData startY, IndexableNumericData midY, IndexableNumericData endY, XYDataSeriesArray series)Creates an instance of IntervalXYDataSeriesArray with the specified data points.startX
,midX
, andendX
at each index define the location of a bar in the chart.- Parameters:
axes
- axes displaying the plotid
- data series idname
- series namestartX
- lowest x-coordinate of the bar at the given indexmidX
- middle x-coordinate of the bar at the given indexendX
- highest x-coordinate of the bar at the given indexstartY
- lowest y-coordinate of the bar at the given indexmidY
- middle y-coordinate of the bar at the given indexendY
- highest y-coordinate of the bar at the given index- Throws:
com.fishlib.base.verify.RequirementFailure
-startX
,midX
,endX
,startY
,midY
, andendY
must not be nullIllegalArgumentException
-startX
,midX
,endX
,startY
,midY
, andendY
must be the same size
-
-
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 interfaceIntervalXYDataSeriesInternal
- 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.
-
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 interfaceIntervalXYDataSeriesInternal
- Specified by:
createSnapshot
in interfaceXYDataSeriesInternal
- Overrides:
createSnapshot
in classXYDataSeriesArray
-
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
-
getStartX
public double getStartX(int item)Description copied from interface:IntervalXYDataSeriesInternal
Gets the left-most point of the bar.- Specified by:
getStartX
in interfaceIntervalXYDataSeriesInternal
- Specified by:
getStartX
in interfaceXYDataSeriesInternal
- Parameters:
item
- index- Returns:
- left-most point of the bar
-
getEndX
public double getEndX(int item)Description copied from interface:IntervalXYDataSeriesInternal
Gets the right-most point of the bar.- Specified by:
getEndX
in interfaceIntervalXYDataSeriesInternal
- Specified by:
getEndX
in interfaceXYDataSeriesInternal
- Parameters:
item
- index- Returns:
- right-most point of the bar
-
getStartY
public double getStartY(int item)Description copied from interface:IntervalXYDataSeriesInternal
Gets the bottom-most point of the bar.- Specified by:
getStartY
in interfaceIntervalXYDataSeriesInternal
- Specified by:
getStartY
in interfaceXYDataSeriesInternal
- Parameters:
item
- index- Returns:
- bottom-most point of the bar
-
getEndY
public double getEndY(int item)Description copied from interface:IntervalXYDataSeriesInternal
Gets the top-most point of the bar.- Specified by:
getEndY
in interfaceIntervalXYDataSeriesInternal
- Specified by:
getEndY
in interfaceXYDataSeriesInternal
- Parameters:
item
- index- Returns:
- top-most point of the bar
-
getXRange
public org.jfree.data.Range getXRange()Description copied from interface:XYDataSeriesInternal
Gets the x range of this dataset. Should never return null.- Specified by:
getXRange
in interfaceIntervalXYDataSeriesInternal
- Specified by:
getXRange
in interfaceXYDataSeriesInternal
- Overrides:
getXRange
in classXYDataSeriesArray
- 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.- Specified by:
getYRange
in interfaceXYDataSeriesInternal
- Overrides:
getYRange
in classXYDataSeriesArray
- Returns:
- y range of this dataset
-
getStartX
-
getEndX
-
getStartY
-
getEndY
-
onLocalTableUpdate
Description copied from interface:SwappableTable.LocalTableUpdateListener
Updates this listener with the new table.- Specified by:
onLocalTableUpdate
in interfaceSwappableTable.LocalTableUpdateListener
- Parameters:
localTable
- table
-