Package io.deephaven.plot.datasets.xy
Class AbstractXYDataSeries
java.lang.Object
io.deephaven.plot.AbstractSeriesInternal
io.deephaven.plot.datasets.AbstractDataSeries
io.deephaven.plot.datasets.xy.AbstractXYDataSeries
- All Implemented Interfaces:
DataSeries
,DataSeriesInternal
,XYDataSeries
,XYDataSeriesInternal
,PlotExceptionCause
,Series
,SeriesInternal
,Serializable
- Direct Known Subclasses:
OHLCDataSeriesArray
,XYDataSeriesArray
,XYDataSeriesFunctionImpl
public abstract class AbstractXYDataSeries
extends AbstractDataSeries
implements XYDataSeriesInternal
Base class for the
XYDataSeriesInternal
.- See Also:
-
Constructor Summary
ModifierConstructorDescriptionAbstractXYDataSeries
(AxesImpl axes, int id, Comparable name, AbstractXYDataSeries series) Creates an AbstractXYDataSeries instance.protected
AbstractXYDataSeries
(AbstractXYDataSeries series, AxesImpl axes) Creates a copy of a series using a different Axes. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
colorsSetSpecific
(IndexableData<Paint> data) errorBarColor
(int errorBarColor) Sets the error barPaint
for this dataset.errorBarColor
(Paint errorBarColor) Sets the error barPaint
for this dataset.errorBarColor
(String errorBarColor) Sets the error barPaint
for this dataset.Gets the default color for data points.getPointColor
(int i) Gets the color of the data point at indexi
.Gets the default label for data points.getPointLabel
(int i) Gets the label of the data point at indexi
.Gets the default shape for data points.getPointShape
(int i) Gets the shape of the data point at indexi
.Gets the default size for data points.getPointSize
(int i) Gets the size of the data point at indexi
.Gets the series color.gradientVisible
(boolean gradientVisible) Sets whether bar gradients are visible.lineColor
(int color) Defines the default line color.Defines the default line color.Defines the default line color.Sets the line style.linesVisible
(Boolean visible) Sets whether lines are visible.pointColor
(int pointColor) Sets the point color.pointColor
(int... pointColors) Sets the point color.pointColor
(Table t, String pointColors) Sets the point color.pointColor
(Paint pointColor) Sets the point color.pointColor
(Paint... pointColor) Sets the point color.<T extends Paint>
AbstractXYDataSeriespointColor
(IndexableData<T> pointColor) Sets the point color.pointColor
(SelectableDataSet sds, String pointColors) Sets the point color.pointColor
(Integer... pointColors) Sets the point color.pointColor
(String pointColor) Sets the point color.pointColor
(String... pointColors) Sets the point color.pointColorInteger
(IndexableData<Integer> colors) Sets the point color.pointLabel
(@NotNull Table t, @NotNull String pointLabel) Sets the point label for data point i from index i of the input labels.pointLabel
(@NotNull SelectableDataSet sds, @NotNull String pointLabel) Sets the point label for data point i from index i of the input labels.pointLabel
(IndexableData<?> pointLabels) Sets the point label for data point i from index i of the input labels.pointLabel
(Object pointLabel) Sets the point label for data point i from index i of the input labels.pointLabel
(Object... pointLabels) Sets the point label for data point i from index i of the input labels.pointLabelFormat
(String pointLabelFormat) Sets the point label format.pointShape
(Table t, String pointShape) Sets the point shapes for data point i from index i of the input labels.pointShape
(Shape pointShape) Sets the point shapes for data point i from index i of the input labels.pointShape
(Shape... pointShapes) Sets the point shapes for data point i from index i of the input labels.pointShape
(IndexableData<String> pointShapes) Sets the point shapes for data point i from index i of the input labels.pointShape
(SelectableDataSet sds, String pointShape) Sets the point shapes for data point i from index i of the input labels.pointShape
(String pointShape) Sets the point shapes for data point i from index i of the input labels.pointShape
(String... pointShapes) Sets the point shapes for data point i from index i of the input labels.pointSize
(double pointSize) Sets the point size.pointSize
(double... pointSizes) Sets the point size.pointSize
(int pointSize) Sets the point size.pointSize
(int... pointSizes) Sets the point size.pointSize
(long pointSize) Sets the point size.pointSize
(long... pointSizes) Sets the point size.Sets the point size.pointSize
(IndexableData<Double> pointSizes) Sets the point size.pointSize
(SelectableDataSet sds, String pointSize) Sets the point size.Sets the point size.<T extends Number>
AbstractXYDataSeriespointSize
(T[] pointSizes) Sets the point size.pointsVisible
(Boolean visible) Sets whether points are visible.seriesColor
(int color) Defines the default line and point color.seriesColor
(Paint color) Defines the default line and point color.seriesColor
(String color) Defines the default line and point color.toolTipPattern
(String toolTipPattern) Sets the tooltip format.xToolTipPattern
(String xToolTipPattern) Sets the x-value tooltip format.yToolTipPattern
(String yToolTipPattern) Sets the y-value tooltip format.Methods inherited from class io.deephaven.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 io.deephaven.plot.AbstractSeriesInternal
addPartitionedTableHandle, addSwappableTable, addTableHandle, axes, getPartitionedTableHandles, getSwappableTables, getTableHandles, 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 io.deephaven.plot.datasets.DataSeriesInternal
axes, chart, getErrorBarColor, getGradientVisible, getLineColor, getLineStyle, getLinesVisible, getPlotInfo, getPointLabelFormat, getPointsVisible, getXToolTipPattern, getYToolTipPattern, id, name, size
Methods inherited from interface io.deephaven.plot.SeriesInternal
addPartitionedTableHandle, addSwappableTable, addTableHandle, getPartitionedTableHandles, getSwappableTables, getTableHandles, removeTableHandle
Methods inherited from interface io.deephaven.plot.datasets.xy.XYDataSeriesInternal
copy, drawXError, drawYError, getEndX, getEndY, getStartX, getStartY, getX, getY
-
Constructor Details
-
AbstractXYDataSeries
Creates an AbstractXYDataSeries instance.- Parameters:
axes
- axes on which the data will be plottedid
- data series idname
- series name
-
AbstractXYDataSeries
Creates a copy of a series using a different Axes.- Parameters:
series
- series to copy.axes
- new axes to use.
-
-
Method Details
-
colorsSetSpecific
-
getSeriesColor
Description copied from interface:DataSeriesInternal
Gets the series color.- Specified by:
getSeriesColor
in interfaceDataSeriesInternal
- Returns:
- series color
-
getPointLabel
Description copied from interface:XYDataSeriesInternal
Gets the default label for data points.- Specified by:
getPointLabel
in interfaceXYDataSeriesInternal
- Returns:
- default label for data points.
-
getPointLabel
Description copied from interface:XYDataSeriesInternal
Gets the label of the data point at indexi
.- Specified by:
getPointLabel
in interfaceXYDataSeriesInternal
- Parameters:
i
- index- Returns:
- label of this data point at index
i
-
getPointShape
Description copied from interface:XYDataSeriesInternal
Gets the default shape for data points.- Specified by:
getPointShape
in interfaceXYDataSeriesInternal
- Returns:
- default shape for data points.
-
getPointShape
Description copied from interface:XYDataSeriesInternal
Gets the shape of the data point at indexi
.- Specified by:
getPointShape
in interfaceXYDataSeriesInternal
- Parameters:
i
- index- Returns:
- shape of this data point at index
i
-
getPointSize
Description copied from interface:XYDataSeriesInternal
Gets the default size for data points.- Specified by:
getPointSize
in interfaceXYDataSeriesInternal
- Returns:
- default size for data points
-
getPointSize
Description copied from interface:XYDataSeriesInternal
Gets the size of the data point at indexi
.- Specified by:
getPointSize
in interfaceXYDataSeriesInternal
- Parameters:
i
- index- Returns:
- size of this data point at index
i
-
getPointColor
Description copied from interface:XYDataSeriesInternal
Gets the default color for data points.- Specified by:
getPointColor
in interfaceXYDataSeriesInternal
- Returns:
- default color for data points.
-
getPointColor
Description copied from interface:XYDataSeriesInternal
Gets the color of the data point at indexi
.- Specified by:
getPointColor
in interfaceXYDataSeriesInternal
- Parameters:
i
- index- Returns:
- color of this data point at index
i
-
linesVisible
Description copied from interface:DataSeries
Sets whether lines are visible.- Specified by:
linesVisible
in interfaceDataSeries
- Parameters:
visible
- line visibility- Returns:
- this data series.
-
pointsVisible
Description copied from interface:DataSeries
Sets whether points are visible.- Specified by:
pointsVisible
in interfaceDataSeries
- Parameters:
visible
- point visibility- Returns:
- this data series.
-
gradientVisible
Description copied from interface:DataSeries
Sets whether bar gradients are visible.- Specified by:
gradientVisible
in interfaceDataSeries
- Parameters:
gradientVisible
- bar gradient visibility- Returns:
- this data series.
-
lineColor
Description copied from interface:DataSeries
Defines the default line color.- Specified by:
lineColor
in interfaceDataSeries
- Parameters:
color
- color- Returns:
- this data series.
-
lineColor
Description copied from interface:DataSeries
Defines the default line color.- Specified by:
lineColor
in interfaceDataSeries
- Parameters:
color
- color palette index- Returns:
- this data series.
-
lineColor
Description copied from interface:DataSeries
Defines the default line color.- Specified by:
lineColor
in interfaceDataSeries
- Parameters:
color
- color- Returns:
- this data series.
-
errorBarColor
Description copied from interface:DataSeries
Sets the error barPaint
for this dataset.- Specified by:
errorBarColor
in interfaceDataSeries
- Parameters:
errorBarColor
- color- Returns:
- this DataSeries
-
errorBarColor
Description copied from interface:DataSeries
Sets the error barPaint
for this dataset.- Specified by:
errorBarColor
in interfaceDataSeries
- Parameters:
errorBarColor
- index of the color in the series color palette- Returns:
- this DataSeries
-
errorBarColor
Description copied from interface:DataSeries
Sets the error barPaint
for this dataset.- Specified by:
errorBarColor
in interfaceDataSeries
- Parameters:
errorBarColor
- color- Returns:
- this DataSeries
-
lineStyle
Description copied from interface:DataSeries
Sets the line style.- Specified by:
lineStyle
in interfaceDataSeries
- Parameters:
lineStyle
- style- Returns:
- this data series.
-
seriesColor
Description copied from interface:DataSeries
Defines the default line and point color.- Specified by:
seriesColor
in interfaceDataSeries
- Parameters:
color
- color- Returns:
- this data series.
-
seriesColor
Description copied from interface:DataSeries
Defines the default line and point color.- Specified by:
seriesColor
in interfaceDataSeries
- Parameters:
color
- color- Returns:
- this data series.
-
seriesColor
Description copied from interface:DataSeries
Defines the default line and point color.- Specified by:
seriesColor
in interfaceDataSeries
- Parameters:
color
- color- Returns:
- this data series.
-
pointSize
Description copied from interface:DataSeries
Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.- Specified by:
pointSize
in interfaceDataSeries
- Parameters:
pointSize
- point size- Returns:
- this data series.
-
pointSize
Description copied from interface:DataSeries
Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.- Specified by:
pointSize
in interfaceDataSeries
- Parameters:
pointSize
- point size- Returns:
- this data series.
-
pointSize
Description copied from interface:DataSeries
Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.- Specified by:
pointSize
in interfaceDataSeries
- Parameters:
pointSize
- point size- Returns:
- this data series.
-
pointSize
Description copied from interface:DataSeries
Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.- Specified by:
pointSize
in interfaceDataSeries
- Parameters:
pointSize
- point size- Returns:
- this data series.
-
pointSize
Description copied from interface:XYDataSeries
Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.- Specified by:
pointSize
in interfaceXYDataSeries
- Parameters:
pointSizes
- factors to multiply the default size (1) by- Returns:
- this XYDataSeries
-
pointSize
Description copied from interface:XYDataSeries
Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.- Specified by:
pointSize
in interfaceXYDataSeries
- Parameters:
pointSizes
- factors to multiply the default size (1) by- Returns:
- this XYDataSeries
-
pointSize
Description copied from interface:XYDataSeries
Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.- Specified by:
pointSize
in interfaceXYDataSeries
- Parameters:
pointSizes
- factors to multiply the default size (1) by- Returns:
- this XYDataSeries
-
pointSize
Description copied from interface:XYDataSeries
Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.- Specified by:
pointSize
in interfaceXYDataSeries
- Parameters:
pointSizes
- factors to multiply the default size (1) by- Returns:
- this XYDataSeries
-
pointSize
Description copied from interface:XYDataSeries
Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.- Specified by:
pointSize
in interfaceXYDataSeries
- Type Parameters:
T
- data type of thefactors
- Parameters:
pointSizes
- factors to multiply the default size (1) by- Returns:
- this XYDataSeries
-
pointSize
Description copied from interface:XYDataSeries
Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.- Specified by:
pointSize
in interfaceXYDataSeries
- Parameters:
t
- table containing factors to multiply the default size (1) bypointSizes
- column int
containing size scaling factors. The size data for point i comes from row i.- Returns:
- this XYDataSeries
-
pointSize
Description copied from interface:XYDataSeries
Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.- Specified by:
pointSize
in interfaceXYDataSeries
- Parameters:
sds
- selectable data set (e.g. OneClick filterable table) containing factors to multiply the default size (1) bypointSize
- column insds
containing size scaling factors. The size data for point i comes from row i.- Returns:
- this XYDataSeries
-
pointColor
Description copied from interface:DataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceDataSeries
- Parameters:
pointColor
- color- Returns:
- this data series.
-
pointColor
Description copied from interface:DataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceDataSeries
- Parameters:
pointColor
- color- Returns:
- this data series.
-
pointColor
Description copied from interface:DataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceDataSeries
- Parameters:
pointColor
- color- Returns:
- this data series.
-
pointColor
Description copied from interface:XYDataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceXYDataSeries
- Type Parameters:
T
- data type of thecolors
- Parameters:
pointColor
- colors. The color for data point i comes from index i.- Returns:
- this XYDataSeries
-
pointColor
Description copied from interface:XYDataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceXYDataSeries
- Parameters:
pointColor
- colors. The color for data point i comes from index i.- Returns:
- this XYDataSeries
-
pointColorInteger
Description copied from interface:XYDataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColorInteger
in interfaceXYDataSeries
- Parameters:
colors
- colors. The color for data point i comes from index i.- Returns:
- this XYDataSeries
-
pointColor
Description copied from interface:XYDataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceXYDataSeries
- Parameters:
pointColors
- color palette indices. The color for data point i comes from index i. A value of 3 corresponds to the 3rd color from the color pallette.- Returns:
- this XYDataSeries
-
pointColor
Description copied from interface:XYDataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceXYDataSeries
- Parameters:
pointColors
- color palette indices. The color for data point i comes from index i. A value of 3 corresponds to the 3rd color from the color pallette.- Returns:
- this XYDataSeries
-
pointColor
Description copied from interface:XYDataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceXYDataSeries
- Parameters:
pointColors
- color names. The color for data point i comes from index i.- Returns:
- this XYDataSeries
-
pointColor
Description copied from interface:XYDataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceXYDataSeries
- Parameters:
t
- table containing colorspointColors
- column int
containing colors. The color data for point i comes from row i.- Returns:
- this XYDataSeries
-
pointColor
Description copied from interface:XYDataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceXYDataSeries
- Parameters:
sds
- selectable data set (e.g. OneClick filterable table) containing colorspointColors
- column insds
containing colors. The color data for point i comes from row i.- Returns:
- this XYDataSeries
-
pointLabel
Description copied from interface:DataSeries
Sets the point label for data point i from index i of the input labels. Points outside of these indices are unlabeled.- Specified by:
pointLabel
in interfaceDataSeries
- Parameters:
pointLabel
- label- Returns:
- this XYDataSeries
-
pointLabel
Description copied from interface:XYDataSeries
Sets the point label for data point i from index i of the input labels. Points outside of these indices are unlabeled.- Specified by:
pointLabel
in interfaceXYDataSeries
- Parameters:
pointLabels
- labels- Returns:
- this XYDataSeries
-
pointLabel
Description copied from interface:XYDataSeries
Sets the point label for data point i from index i of the input labels. Points outside of these indices are unlabeled.- Specified by:
pointLabel
in interfaceXYDataSeries
- Parameters:
pointLabels
- labels- Returns:
- this XYDataSeries
-
pointLabel
public AbstractXYDataSeries pointLabel(@NotNull @NotNull Table t, @NotNull @NotNull String pointLabel) Description copied from interface:XYDataSeries
Sets the point label for data point i from index i of the input labels. Points outside of these indices are unlabeled.- Specified by:
pointLabel
in interfaceXYDataSeries
- Parameters:
t
- table containing labelspointLabel
- column int
containing labels. The label data for point i comes from row i.- Returns:
- this XYDataSeries
-
pointLabel
public AbstractXYDataSeries pointLabel(@NotNull @NotNull SelectableDataSet sds, @NotNull @NotNull String pointLabel) Description copied from interface:XYDataSeries
Sets the point label for data point i from index i of the input labels. Points outside of these indices are unlabeled.- Specified by:
pointLabel
in interfaceXYDataSeries
- Parameters:
sds
- selectable data set (e.g. OneClick filterable table) containing labelspointLabel
- column insds
containing labels. The color data for point i comes from row i.- Returns:
- this XYDataSeries
-
pointShape
Description copied from interface:DataSeries
Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.- Specified by:
pointShape
in interfaceDataSeries
- Parameters:
pointShape
- shape- Returns:
- this DataSeries
-
pointShape
Description copied from interface:DataSeries
Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.- Specified by:
pointShape
in interfaceDataSeries
- Parameters:
pointShape
- shape- Returns:
- this DataSeries
-
pointShape
Description copied from interface:XYDataSeries
Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.- Specified by:
pointShape
in interfaceXYDataSeries
- Parameters:
pointShapes
- shapes- Returns:
- this XYDataSeries
-
pointShape
Description copied from interface:XYDataSeries
Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.- Specified by:
pointShape
in interfaceXYDataSeries
- Parameters:
pointShapes
- shapes- Returns:
- this XYDataSeries
-
pointShape
Description copied from interface:XYDataSeries
Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.- Specified by:
pointShape
in interfaceXYDataSeries
- Parameters:
pointShapes
- shapes- Returns:
- this XYDataSeries
-
pointShape
Description copied from interface:XYDataSeries
Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.- Specified by:
pointShape
in interfaceXYDataSeries
- Parameters:
t
- table containing shapespointShape
- column int
containing shapes. The shape data for point i comes from row i.- Returns:
- this XYDataSeries
-
pointShape
Description copied from interface:XYDataSeries
Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.- Specified by:
pointShape
in interfaceXYDataSeries
- Parameters:
sds
- selectable data set (e.g. OneClick filterable table) containing shapespointShape
- column insds
containing shapes. The color data for point i comes from row i.- Returns:
- this XYDataSeries
-
pointLabelFormat
Description copied from interface:DataSeries
Sets the point label format.Use {0} where the data series name should be inserted, {1} for the x-value and {2} y-value e.g. "{0}: ({1}, {2})" will display as Series1: (2.0, 5.5).
- Specified by:
pointLabelFormat
in interfaceDataSeries
- Parameters:
pointLabelFormat
- format- Returns:
- this data series.
-
xToolTipPattern
Description copied from interface:DataSeries
Sets the x-value tooltip format.- Specified by:
xToolTipPattern
in interfaceDataSeries
- Parameters:
xToolTipPattern
- format- Returns:
- this data series.
-
yToolTipPattern
Description copied from interface:DataSeries
Sets the y-value tooltip format.- Specified by:
yToolTipPattern
in interfaceDataSeries
- Parameters:
yToolTipPattern
- format- Returns:
- this data series.
-
toolTipPattern
Description copied from interface:DataSeries
Sets the tooltip format.- Specified by:
toolTipPattern
in interfaceDataSeries
- Parameters:
toolTipPattern
- format- Returns:
- this data series.
-