Interface DataSeries
- All Superinterfaces:
Serializable
,Series
- All Known Subinterfaces:
CategoryDataSeries
,CategoryDataSeriesInternal
,CategoryErrorBarDataSeries
,CategoryErrorBarDataSeriesInternal
,CategorySwappableTableDataSeriesInternal
,CategoryTableDataSeriesInternal
,DataSeriesInternal
,Figure
,IntervalXYDataSeries
,IntervalXYDataSeriesInternal
,OHLCDataSeries
,OHLCDataSeriesInternal
,XYDataSeries
,XYDataSeriesFunction
,XYDataSeriesFunctionInternal
,XYDataSeriesInternal
,XYErrorBarDataSeries
,XYErrorBarDataSeriesInternal
- All Known Implementing Classes:
AbstractCategoryDataSeries
,AbstractDataSeries
,AbstractMapBasedCategoryDataSeries
,AbstractSwappableTableBasedCategoryDataSeries
,AbstractTableBasedCategoryDataSeries
,AbstractXYDataSeries
,CategoryDataSeriesMap
,CategoryDataSeriesSwappableTableMap
,CategoryDataSeriesTableMap
,CategoryErrorBarDataSeriesMap
,CategoryErrorBarDataSeriesSwappableTableMap
,CategoryErrorBarDataSeriesTableMap
,FigureImpl
,FigureWidget
,IntervalXYDataSeriesArray
,OHLCDataSeriesArray
,OHLCDataSeriesSwappableTableArray
,OHLCDataSeriesTableArray
,ScatterPlotMatrix
,TransformedCategoryDataSeries
,TransformedIntervalXYDataSeries
,TransformedIntervalXYDataSeries.TransformedIntervalXYDataSeriesSnapshot
,TransformedOHLCDataSeries
,TransformedOHLCDataSeries.TransformedOHLCDataSeriesSnapshot
,TransformedXYDataSeries
,TransformedXYDataSeries.TransformedXYDataSeriesSnapshot
,XYDataSeriesArray
,XYDataSeriesFunctionImpl
,XYDataSeriesSwappableTableArray
,XYDataSeriesTableArray
,XYErrorBarDataSeriesArray
,XYErrorBarDataSeriesSwappableTableArray
,XYErrorBarDataSeriesTableArray
public interface DataSeries extends Series, Serializable
A generic data series.
-
Method Summary
Modifier and Type Method Description DataSeries
errorBarColor(int color)
Sets the error barPaint
for this dataset.DataSeries
errorBarColor(Paint color)
Sets the error barPaint
for this dataset.DataSeries
errorBarColor(String color)
Sets the error barPaint
for this dataset.DataSeries
gradientVisible(boolean visible)
Sets whether bar gradients are visible.DataSeries
lineColor(int color)
Defines the default line color.DataSeries
lineColor(Paint color)
Defines the default line color.DataSeries
lineColor(String color)
Defines the default line color.DataSeries
lineStyle(LineStyle style)
Sets the line style.DataSeries
linesVisible(Boolean visible)
Sets whether lines are visible.DataSeries
pointColor(int color)
Sets the point color.DataSeries
pointColor(Paint color)
Sets the point color.DataSeries
pointColor(String color)
Sets the point color.<T extends Paint>
DataSeriespointColorByY(groovy.lang.Closure<T> colors)
Sets the point color for a data point based upon the y-value.<T extends Paint>
DataSeriespointColorByY(Function<Double,T> colors)
Sets the point color for a data point based upon the y-value.DataSeries
pointLabel(Object label)
Sets the point label for data point i from index i of the input labels.DataSeries
pointLabelFormat(String format)
Sets the point label format.DataSeries
pointShape(Shape shape)
Sets the point shapes for data point i from index i of the input labels.DataSeries
pointShape(String shape)
Sets the point shapes for data point i from index i of the input labels.DataSeries
pointSize(double factor)
Sets the point size.DataSeries
pointSize(int factor)
Sets the point size.DataSeries
pointSize(long factor)
Sets the point size.DataSeries
pointSize(Number factor)
Sets the point size.DataSeries
pointsVisible(Boolean visible)
Sets whether points are visible.default DataSeries
seriesColor(int color)
Defines the default line and point color.default DataSeries
seriesColor(Paint color)
Defines the default line and point color.default DataSeries
seriesColor(String color)
Defines the default line and point color.default DataSeries
toolTipPattern(String format)
Sets the tooltip format.DataSeries
xToolTipPattern(String format)
Sets the x-value tooltip format.DataSeries
yToolTipPattern(String format)
Sets the y-value tooltip format.
-
Method Details
-
linesVisible
Sets whether lines are visible.- Parameters:
visible
- line visibility- Returns:
- this data series.
-
pointsVisible
Sets whether points are visible.- Parameters:
visible
- point visibility- Returns:
- this data series.
-
gradientVisible
Sets whether bar gradients are visible.- Parameters:
visible
- bar gradient visibility- Returns:
- this data series.
-
pointSize
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.- Parameters:
factor
- point size- Returns:
- this data series.
-
pointSize
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.- Parameters:
factor
- point size- Returns:
- this data series.
-
pointSize
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.- Parameters:
factor
- point size- Returns:
- this data series.
-
pointSize
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.- Parameters:
factor
- point size- Returns:
- this data series.
-
seriesColor
Defines the default line and point color.- Parameters:
color
- color- Returns:
- this data series.
-
seriesColor
Defines the default line and point color.- Parameters:
color
- color- Returns:
- this data series.
-
seriesColor
Defines the default line and point color.- Parameters:
color
- color- Returns:
- this data series.
-
pointColor
Sets the point color. Unspecified points use the default color.- Parameters:
color
- color- Returns:
- this data series.
-
pointColor
Sets the point color. Unspecified points use the default color.- Parameters:
color
- color- Returns:
- this data series.
-
pointColor
Sets the point color. Unspecified points use the default color.- Parameters:
color
- color- Returns:
- this data series.
-
pointColorByY
Sets the point color for a data point based upon the y-value.- Parameters:
colors
- function from the y-value of data points toPaint
- Returns:
- this DataSeries
-
pointColorByY
Sets the point color for a data point based upon the y-value.- Parameters:
colors
- function from the y-value of data points toPaint
- Returns:
- this DataSeries
-
errorBarColor
Sets the error barPaint
for this dataset.- Parameters:
color
- color- Returns:
- this DataSeries
-
errorBarColor
Sets the error barPaint
for this dataset.- Parameters:
color
- index of the color in the series color palette- Returns:
- this DataSeries
-
errorBarColor
Sets the error barPaint
for this dataset.- Parameters:
color
- color- Returns:
- this DataSeries
-
pointLabel
Sets the point label for data point i from index i of the input labels. Points outside of these indices are unlabeled.- Parameters:
label
- label- Returns:
- this XYDataSeries
-
pointShape
Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.- Parameters:
shape
- shape- Returns:
- this DataSeries
-
pointShape
Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.- Parameters:
shape
- shape- Returns:
- this DataSeries
-
lineColor
Defines the default line color.- Parameters:
color
- color- Returns:
- this data series.
-
lineColor
Defines the default line color.- Parameters:
color
- color palette index- Returns:
- this data series.
-
lineColor
Defines the default line color.- Parameters:
color
- color- Returns:
- this data series.
-
lineStyle
Sets the line style.- Parameters:
style
- style- Returns:
- this data series.
-
pointLabelFormat
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).
- Parameters:
format
- format- Returns:
- this data series.
-
toolTipPattern
Sets the tooltip format.- Parameters:
format
- format- Returns:
- this data series.
-
xToolTipPattern
Sets the x-value tooltip format.- Parameters:
format
- format- Returns:
- this data series.
-
yToolTipPattern
Sets the y-value tooltip format.- Parameters:
format
- format- Returns:
- this data series.
-