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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.illumon.iris.db.plot.AbstractSeriesInternal
dataChangeListener -
Constructor Summary
ConstructorsConstructorDescriptionIntervalXYDataSeriesArray(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 TypeMethodDescriptionCreate a copy of the series on a different set of axes.Live data sets must override this implementation.getEndX()doublegetEndX(int item) Gets the right-most point of the bar.getEndY()doublegetEndY(int item) Gets the top-most point of the bar.doublegetStartX(int item) Gets the left-most point of the bar.doublegetStartY(int item) Gets the bottom-most point of the bar.org.jfree.data.RangeGets the x range of this dataset.org.jfree.data.RangeGets the y range of this dataset.voidonClose()Series shut down after the plot is closed.voidonLocalTableUpdate(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, sortMethods 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.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, onInflate, removeTableHandleMethods inherited from interface com.illumon.iris.db.plot.util.tables.SwappableTable.LocalTableUpdateListener
onInitialSnapshotMethods inherited from interface com.illumon.iris.db.plot.TableSnapshotSeries
notifyTableSnapshotChangedMethods 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, getPointColor, getPointLabel, getPointShape, getPointSize, getX, getY, sort
-
Field Details
-
BIN_MIN
- See Also:
-
BIN_MID
- See Also:
-
BIN_MAX
- See Also:
-
COUNT
- See Also:
-
-
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, andendXat 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, andendYmust not be nullIllegalArgumentException-startX,midX,endX,startY,midY, andendYmust be the same size
-
-
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 interfaceIntervalXYDataSeriesInternal- Specified by:
copyin interfaceSeriesInternal- Specified by:
copyin interfaceXYDataSeriesInternal- Overrides:
copyin classXYDataSeriesArray- Parameters:
axes- new axes.- Returns:
- copy of the series on a different set of axes.
-
createSnapshot
Description copied from class:XYDataSeriesArrayLive data sets must override this implementation. See XYDataSeriesTableArray for an example.- Specified by:
createSnapshotin interfaceDataSeriesInternal- Specified by:
createSnapshotin interfaceIntervalXYDataSeriesInternal- Specified by:
createSnapshotin interfaceXYDataSeriesInternal- Overrides:
createSnapshotin classXYDataSeriesArray
-
onClose
public void onClose()Description copied from interface:SeriesInternalSeries shut down after the plot is closed.- Specified by:
onClosein interfaceSeriesInternal- Overrides:
onClosein classXYDataSeriesArray
-
getStartX
public double getStartX(int item) Description copied from interface:IntervalXYDataSeriesInternalGets the left-most point of the bar.- Specified by:
getStartXin interfaceIntervalXYDataSeriesInternal- Specified by:
getStartXin interfaceXYDataSeriesInternal- Parameters:
item- index- Returns:
- left-most point of the bar
-
getEndX
public double getEndX(int item) Description copied from interface:IntervalXYDataSeriesInternalGets the right-most point of the bar.- Specified by:
getEndXin interfaceIntervalXYDataSeriesInternal- Specified by:
getEndXin interfaceXYDataSeriesInternal- Parameters:
item- index- Returns:
- right-most point of the bar
-
getStartY
public double getStartY(int item) Description copied from interface:IntervalXYDataSeriesInternalGets the bottom-most point of the bar.- Specified by:
getStartYin interfaceIntervalXYDataSeriesInternal- Specified by:
getStartYin interfaceXYDataSeriesInternal- Parameters:
item- index- Returns:
- bottom-most point of the bar
-
getEndY
public double getEndY(int item) Description copied from interface:IntervalXYDataSeriesInternalGets the top-most point of the bar.- Specified by:
getEndYin interfaceIntervalXYDataSeriesInternal- Specified by:
getEndYin interfaceXYDataSeriesInternal- Parameters:
item- index- Returns:
- top-most point of the bar
-
getXRange
public org.jfree.data.Range getXRange()Description copied from interface:XYDataSeriesInternalGets the x range of this dataset. Should never return null.- Specified by:
getXRangein interfaceIntervalXYDataSeriesInternal- Specified by:
getXRangein interfaceXYDataSeriesInternal- Overrides:
getXRangein classXYDataSeriesArray- 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.- Specified by:
getYRangein interfaceXYDataSeriesInternal- Overrides:
getYRangein classXYDataSeriesArray- Returns:
- y range of this dataset
-
getStartX
-
getEndX
-
getStartY
-
getEndY
-
onLocalTableUpdate
Description copied from interface:SwappableTable.LocalTableUpdateListenerUpdates this listener with the new table.- Specified by:
onLocalTableUpdatein interfaceSwappableTable.LocalTableUpdateListener- Parameters:
localTable- table
-