Class AbstractCategoryDataSeries
java.lang.Object
com.illumon.iris.db.plot.AbstractSeriesInternal
com.illumon.iris.db.plot.datasets.AbstractDataSeries
com.illumon.iris.db.plot.datasets.category.AbstractCategoryDataSeries
- All Implemented Interfaces:
CategoryDataSeries
,CategoryDataSeriesInternal
,DataSeries
,DataSeriesInternal
,PlotExceptionCause
,Series
,SeriesInternal
,Serializable
- Direct Known Subclasses:
AbstractMapBasedCategoryDataSeries
,AbstractSwappableTableBasedCategoryDataSeries
,AbstractTableBasedCategoryDataSeries
public abstract class AbstractCategoryDataSeries extends AbstractDataSeries implements CategoryDataSeriesInternal
Common class for
CategoryDataSeriesInternal
.
Please note that any method which uses a SwappableTable
must call a lastBy()!
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description AbstractCategoryDataSeries(AxesImpl axes, int id, Comparable name)
AbstractCategoryDataSeries(AxesImpl axes, int id, Comparable name, AbstractCategoryDataSeries series)
Creates an AbstractCategoryDataSeries instance.protected
AbstractCategoryDataSeries(AbstractCategoryDataSeries series, AxesImpl axes)
Creates a copy of a series using a different Axes and a different listener. -
Method Summary
Modifier and Type Method Description protected void
colorsSetSpecific(AssociativeData<Comparable,Paint> data)
AbstractCategoryDataSeries
errorBarColor(int color)
Sets the error barPaint
for this dataset.AbstractCategoryDataSeries
errorBarColor(Paint color)
Sets the error barPaint
for this dataset.AbstractCategoryDataSeries
errorBarColor(String color)
Sets the error barPaint
for this dataset.Paint
getColor(Comparable category)
Gets thePaint
for the given data point.int
getGroup()
Gets the group for this dataset.String
getLabel(Comparable category)
Gets the point label for the given data point.String
getPiePercentLabelFormat()
Gets the pie plot percent label format.Shape
getPointShape(Comparable category)
Gets the point shape for the given data point.Double
getPointSize(Comparable category)
Gets the point size for the given data point.Paint
getSeriesColor()
Gets the series color.AbstractCategoryDataSeries
gradientVisible(boolean visible)
Sets the visibility of bar gradients for this dataset.AbstractCategoryDataSeries
group(int group)
Sets the group for this dataset.protected void
labelsSetSpecific(AssociativeData<Comparable,String> data)
AbstractCategoryDataSeries
lineColor(int color)
Sets the default linePaint
for this dataset.AbstractCategoryDataSeries
lineColor(Paint color)
Sets the default linePaint
for this dataset.AbstractCategoryDataSeries
lineColor(String color)
Sets the default linePaint
for this dataset.AbstractCategoryDataSeries
lineStyle(LineStyle style)
Sets theLineStyle
for this datasetAbstractCategoryDataSeries
linesVisible(Boolean visible)
Sets the visibility of the lines for this dataset.void
onClose()
Series shut down after the plot is closed.AbstractCategoryDataSeries
piePercentLabelFormat(String format)
Sets the format of the percentage point label format in pie plots.AbstractCategoryDataSeries
pointColor(int color)
Sets the point color.AbstractCategoryDataSeries
pointColor(SelectableDataSet sds, String keyColumn, String valueColumn)
Sets the point color.AbstractCategoryDataSeries
pointColor(Table t, String keyColumn, String valueColumn)
Sets the point color.AbstractCategoryDataSeries
pointColor(Paint color)
Sets the point color.AbstractCategoryDataSeries
pointColor(Comparable category, int color)
Sets the point color.AbstractCategoryDataSeries
pointColor(Comparable category, Paint color)
Sets the point color.CategoryDataSeriesInternal
pointColor(Comparable category, String color)
Sets the point color.CategoryDataSeriesInternal
pointColor(String color)
Sets the point color.<CATEGORY extends Comparable, COLOR extends Paint>
AbstractCategoryDataSeriespointColor(Map<CATEGORY,COLOR> colors)
Sets the point color.<T extends Paint>
CategoryDataSeriespointColorByY(groovy.lang.Closure<T> colors)
Sets the point color for a data point based upon the y-value.<T extends Paint>
AbstractCategoryDataSeriespointColorByY(Map<Double,T> colors)
Sets the point color for a data point based upon the y-value.<CATEGORY extends Comparable, COLOR extends Integer>
AbstractCategoryDataSeriespointColorInteger(Map<CATEGORY,COLOR> colors)
Sets the point color.AbstractCategoryDataSeries
pointLabel(SelectableDataSet sds, String keyColumn, String valueColumn)
Sets the point label for data point i from index i of the input labels.AbstractCategoryDataSeries
pointLabel(Table t, String keyColumn, String valueColumn)
Sets the point label for data point i from index i of the input labels.AbstractCategoryDataSeries
pointLabel(Comparable category, Object label)
Sets the point label for data point i from index i of the input labels.AbstractCategoryDataSeries
pointLabel(Object label)
Sets the point label for data point i from index i of the input labels.<CATEGORY extends Comparable, LABEL>
AbstractCategoryDataSeriespointLabel(Map<CATEGORY,LABEL> labels)
Sets the point label for data point i from index i of the input labels.AbstractCategoryDataSeries
pointLabelFormat(String format)
Sets the point label format.CategoryDataSeries
pointShape(SelectableDataSet sds, String keyColumn, String valueColumn)
Sets the point shapes for data point i from index i of the input labels.CategoryDataSeries
pointShape(Table t, String keyColumn, String valueColumn)
Sets the point shapes for data point i from index i of the input labels.AbstractCategoryDataSeries
pointShape(Shape shape)
Sets the point shapes for data point i from index i of the input labels.CategoryDataSeries
pointShape(Comparable category, Shape shape)
Sets the point shapes for data point i from index i of the input labels.CategoryDataSeries
pointShape(Comparable category, String shape)
Sets the point shapes for data point i from index i of the input labels.AbstractCategoryDataSeries
pointShape(String shape)
Sets the point shapes for data point i from index i of the input labels.<CATEGORY extends Comparable>
CategoryDataSeriespointShape(Map<CATEGORY,String> shapes)
Sets the point shapes for data point i from index i of the input labels.AbstractCategoryDataSeries
pointSize(double factor)
Sets the point size.AbstractCategoryDataSeries
pointSize(int factor)
Sets the point size.AbstractCategoryDataSeries
pointSize(long factor)
Sets the point size.<CATEGORY extends Comparable>
AbstractCategoryDataSeriespointSize(CATEGORY[] categories, double[] factors)
Sets the point size.<CATEGORY extends Comparable>
AbstractCategoryDataSeriespointSize(CATEGORY[] categories, int[] factors)
Sets the point size.<CATEGORY extends Comparable>
AbstractCategoryDataSeriespointSize(CATEGORY[] categories, long[] factors)
Sets the point size.<CATEGORY extends Comparable, NUMBER extends Number>
AbstractCategoryDataSeriespointSize(CATEGORY[] categories, NUMBER[] factors)
Sets the point size.AbstractCategoryDataSeries
pointSize(SelectableDataSet sds, String keyColumn, String valueColumn)
Sets the point size.AbstractCategoryDataSeries
pointSize(Table t, String keyColumn, String valueColumn)
Sets the point size.AbstractCategoryDataSeries
pointSize(Comparable category, double factor)
Sets the point size.AbstractCategoryDataSeries
pointSize(Comparable category, int factor)
Sets the point size.AbstractCategoryDataSeries
pointSize(Comparable category, long factor)
Sets the point size.AbstractCategoryDataSeries
pointSize(Comparable category, Number factor)
Sets the point size.AbstractCategoryDataSeries
pointSize(Number factor)
Sets the point size.<CATEGORY extends Comparable, NUMBER extends Number>
AbstractCategoryDataSeriespointSize(Map<CATEGORY,NUMBER> factors)
Sets the point size.AbstractCategoryDataSeries
pointsVisible(Boolean visible)
Sets the visibility of the point shapes for this dataset.AbstractCategoryDataSeries
seriesColor(int color)
Sets the defaultPaint
for this dataset.AbstractCategoryDataSeries
seriesColor(Paint color)
Sets the defaultPaint
for this dataset.AbstractCategoryDataSeries
seriesColor(String color)
Sets the defaultPaint
for this dataset.protected void
setPiePercentLabelFormat(String format)
Sets the pie percent label format for this dataset.protected void
shapesSetSpecific(AssociativeData<Comparable,Shape> data)
protected void
sizesSetSpecific(AssociativeData<Comparable,Double> data)
protected void
snapshotModifiers(AbstractCategoryDataSeries series)
AbstractCategoryDataSeries
toolTipPattern(String format)
Sets the tooltip format.AbstractCategoryDataSeries
xToolTipPattern(String format)
Sets the x-value tooltip format.AbstractCategoryDataSeries
yToolTipPattern(String format)
Sets the y-value tooltip format.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.category.CategoryDataSeries
pointColor, pointColor, pointColorInteger, pointColorInteger, pointLabel, pointLabel, pointShape, pointShape, pointSize, pointSize
Methods inherited from interface com.illumon.iris.db.plot.datasets.category.CategoryDataSeriesInternal
categories, copy, createSnapshot, drawYError, getCategoryLocation, getEndY, getStartY, getValue, getYRange, init
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, size
Methods inherited from interface com.illumon.iris.db.plot.SeriesInternal
addSwappableTable, addTableHandle, addTableMapHandle, dataChangeListener, getSwappableTables, getTableHandles, getTableMapHandles, onInflate, removeTableHandle
-
Constructor Details
-
AbstractCategoryDataSeries
-
AbstractCategoryDataSeries
public AbstractCategoryDataSeries(AxesImpl axes, int id, Comparable name, AbstractCategoryDataSeries series)Creates an AbstractCategoryDataSeries instance.- Parameters:
axes
- axes on which this series will be plottedid
- data series idname
- series nameseries
- series to copy
-
AbstractCategoryDataSeries
Creates a copy of a series using a different Axes and a different listener.- Parameters:
series
- series to copy.axes
- new axes to use.
-
-
Method Details
-
colorsSetSpecific
-
labelsSetSpecific
-
sizesSetSpecific
-
shapesSetSpecific
-
snapshotModifiers
-
getColor
Description copied from interface:CategoryDataSeriesInternal
Gets thePaint
for the given data point.- Specified by:
getColor
in interfaceCategoryDataSeriesInternal
- Parameters:
category
- category- Returns:
Paint
for the given data point
-
getPointSize
Description copied from interface:CategoryDataSeriesInternal
Gets the point size for the given data point.- Specified by:
getPointSize
in interfaceCategoryDataSeriesInternal
- Parameters:
category
- category- Returns:
- point size for the given data point
-
getSeriesColor
Description copied from interface:DataSeriesInternal
Gets the series color.- Specified by:
getSeriesColor
in interfaceDataSeriesInternal
- Returns:
- series color
-
getLabel
Description copied from interface:CategoryDataSeriesInternal
Gets the point label for the given data point.- Specified by:
getLabel
in interfaceCategoryDataSeriesInternal
- Parameters:
category
- category- Returns:
- point label for the given data point
-
getPointShape
Description copied from interface:CategoryDataSeriesInternal
Gets the point shape for the given data point.- Specified by:
getPointShape
in interfaceCategoryDataSeriesInternal
- Parameters:
category
- category- Returns:
- point shape for the given data point
-
getGroup
public int getGroup()Description copied from interface:CategoryDataSeriesInternal
Gets the group for this dataset.- Specified by:
getGroup
in interfaceCategoryDataSeriesInternal
- Returns:
- group for this dataset
-
getPiePercentLabelFormat
Description copied from interface:CategoryDataSeriesInternal
Gets the pie plot percent label format.- Specified by:
getPiePercentLabelFormat
in interfaceCategoryDataSeriesInternal
- Returns:
- pie plot percent label format
-
group
Description copied from interface:CategoryDataSeries
Sets the group for this dataset.- Specified by:
group
in interfaceCategoryDataSeries
- Returns:
- this data series.
-
linesVisible
Description copied from interface:CategoryDataSeries
Sets the visibility of the lines for this dataset.- Specified by:
linesVisible
in interfaceCategoryDataSeries
- Specified by:
linesVisible
in interfaceDataSeries
- Parameters:
visible
- whether to display lines or not- Returns:
- this CategoryDataSeries
-
pointsVisible
Description copied from interface:CategoryDataSeries
Sets the visibility of the point shapes for this dataset.- Specified by:
pointsVisible
in interfaceCategoryDataSeries
- Specified by:
pointsVisible
in interfaceDataSeries
- Parameters:
visible
- whether to display point shapes or not- Returns:
- this CategoryDataSeries
-
gradientVisible
Description copied from interface:CategoryDataSeries
Sets the visibility of bar gradients for this dataset.- Specified by:
gradientVisible
in interfaceCategoryDataSeries
- Specified by:
gradientVisible
in interfaceDataSeries
- Parameters:
visible
- whether to display bar gradients or not- Returns:
- this CategoryDataSeries
-
seriesColor
Sets the defaultPaint
for this dataset.- Specified by:
seriesColor
in interfaceDataSeries
- Parameters:
color
- color- Returns:
- this CategoryDataSeries
-
seriesColor
Sets the defaultPaint
for this dataset.- Specified by:
seriesColor
in interfaceDataSeries
- Parameters:
color
- index of the color in the series color palette- Returns:
- this CategoryDataSeries
-
seriesColor
Sets the defaultPaint
for this dataset.- Specified by:
seriesColor
in interfaceDataSeries
- Parameters:
color
- color- Returns:
- this CategoryDataSeries
-
lineColor
Description copied from interface:CategoryDataSeries
Sets the default linePaint
for this dataset.- Specified by:
lineColor
in interfaceCategoryDataSeries
- Specified by:
lineColor
in interfaceDataSeries
- Parameters:
color
- color- Returns:
- this CategoryDataSeries
-
lineColor
Description copied from interface:CategoryDataSeries
Sets the default linePaint
for this dataset.- Specified by:
lineColor
in interfaceCategoryDataSeries
- Specified by:
lineColor
in interfaceDataSeries
- Parameters:
color
- index of the color in the series color palette- Returns:
- this CategoryDataSeries
-
lineColor
Description copied from interface:CategoryDataSeries
Sets the default linePaint
for this dataset.- Specified by:
lineColor
in interfaceCategoryDataSeries
- Specified by:
lineColor
in interfaceDataSeries
- Parameters:
color
- color- Returns:
- this CategoryDataSeries
-
errorBarColor
Description copied from interface:CategoryDataSeries
Sets the error barPaint
for this dataset.- Specified by:
errorBarColor
in interfaceCategoryDataSeries
- Specified by:
errorBarColor
in interfaceDataSeries
- Parameters:
color
- color- Returns:
- this CategoryDataSeries
-
errorBarColor
Description copied from interface:CategoryDataSeries
Sets the error barPaint
for this dataset.- Specified by:
errorBarColor
in interfaceCategoryDataSeries
- Specified by:
errorBarColor
in interfaceDataSeries
- Parameters:
color
- index of the color in the series color palette- Returns:
- this CategoryDataSeries
-
errorBarColor
Description copied from interface:CategoryDataSeries
Sets the error barPaint
for this dataset.- Specified by:
errorBarColor
in interfaceCategoryDataSeries
- Specified by:
errorBarColor
in interfaceDataSeries
- Parameters:
color
- color- Returns:
- this CategoryDataSeries
-
lineStyle
Description copied from interface:CategoryDataSeries
Sets theLineStyle
for this dataset- Specified by:
lineStyle
in interfaceCategoryDataSeries
- Specified by:
lineStyle
in interfaceDataSeries
- Parameters:
style
- line style- Returns:
- this dat
-
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:
factor
- 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:
factor
- 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:
factor
- 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:
factor
- point size- Returns:
- this data series.
-
pointSize
Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Parameters:
category
- data pointfactor
- factor to multiply the default size (1) by- Returns:
- this CategoryDataSeries
-
pointSize
Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Parameters:
category
- data pointfactor
- factor to multiply the default size (1) by- Returns:
- this CategoryDataSeries
-
pointSize
Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Parameters:
category
- data pointfactor
- factor to multiply the default size (1) by- Returns:
- this CategoryDataSeries
-
pointSize
Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Parameters:
category
- data pointfactor
- factor to multiply the default size (1) by- Returns:
- this CategoryDataSeries
-
pointSize
public <CATEGORY extends Comparable> AbstractCategoryDataSeries pointSize(CATEGORY[] categories, int[] factors)Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Type Parameters:
CATEGORY
- type of the categorical data- Parameters:
categories
- data pointsfactors
- factors to multiply the default size (1) by- Returns:
- this CategoryDataSeries
-
pointSize
public <CATEGORY extends Comparable> AbstractCategoryDataSeries pointSize(CATEGORY[] categories, long[] factors)Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Type Parameters:
CATEGORY
- type of the categorical data- Parameters:
categories
- data pointsfactors
- factors to multiply the default size (1) by- Returns:
- this CategoryDataSeries
-
pointSize
public <CATEGORY extends Comparable, NUMBER extends Number> AbstractCategoryDataSeries pointSize(CATEGORY[] categories, NUMBER[] factors)Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Type Parameters:
CATEGORY
- type of the categorical dataNUMBER
- data type of the point sizes- Parameters:
categories
- data pointsfactors
- factors to multiply the default size (1) by- Returns:
- this CategoryDataSeries
-
pointSize
public <CATEGORY extends Comparable> AbstractCategoryDataSeries pointSize(CATEGORY[] categories, double[] factors)Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Type Parameters:
CATEGORY
- type of the categorical data- Parameters:
categories
- data pointsfactors
- factors to multiply the default size (1) by- Returns:
- this CategoryDataSeries
-
pointSize
public <CATEGORY extends Comparable, NUMBER extends Number> AbstractCategoryDataSeries pointSize(Map<CATEGORY,NUMBER> factors)Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Type Parameters:
CATEGORY
- type of the categorical dataNUMBER
- data type of the point sizes- Parameters:
factors
- map used to set sizes of specific data points- Returns:
- this CategoryDataSeries
-
pointSize
Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Parameters:
t
- tablekeyColumn
- column int
, specifying category valuesvalueColumn
- column int
, specifying point sizes- Returns:
- this CategoryDataSeries
-
pointSize
public AbstractCategoryDataSeries pointSize(SelectableDataSet sds, String keyColumn, String valueColumn)Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Parameters:
sds
- selectable data set (e.g. OneClick filterable table)keyColumn
- column insds
, specifying category valuesvalueColumn
- column insds
, specifying point sizes- Returns:
- this CategoryDataSeries
-
pointColor
Description copied from interface:CategoryDataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceCategoryDataSeries
- Specified by:
pointColor
in interfaceDataSeries
- Parameters:
color
- default point color- Returns:
- this CategoryDataSeries
-
pointColor
Description copied from interface:CategoryDataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceCategoryDataSeries
- Specified by:
pointColor
in interfaceDataSeries
- Parameters:
color
- index of the color in the series color palette to use as the default color- Returns:
- this CategoryDataSeries
-
pointColor
Description copied from interface:CategoryDataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceCategoryDataSeries
- Specified by:
pointColor
in interfaceDataSeries
- Parameters:
color
- default point color- Returns:
- this CategoryDataSeries
-
pointColor
Description copied from interface:CategoryDataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceCategoryDataSeries
- Parameters:
category
- data pointcolor
- color- Returns:
- this CategoryDataSeries
-
pointColor
Description copied from interface:CategoryDataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceCategoryDataSeries
- Parameters:
category
- data pointcolor
- index of the color in the series color palette- Returns:
- this CategoryDataSeries
-
pointColor
Description copied from interface:CategoryDataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceCategoryDataSeries
- Parameters:
category
- data pointcolor
- color- Returns:
- this CategoryDataSeries
-
pointColor
public <CATEGORY extends Comparable, COLOR extends Paint> AbstractCategoryDataSeries pointColor(Map<CATEGORY,COLOR> colors)Description copied from interface:CategoryDataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceCategoryDataSeries
- Type Parameters:
CATEGORY
- type of the categorical dataCOLOR
- type of color for the points- Parameters:
colors
- map from data points to theirPaint
s- Returns:
- this CategoryDataSeries
-
pointColorInteger
public <CATEGORY extends Comparable, COLOR extends Integer> AbstractCategoryDataSeries pointColorInteger(Map<CATEGORY,COLOR> colors)Description copied from interface:CategoryDataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColorInteger
in interfaceCategoryDataSeries
- Type Parameters:
CATEGORY
- type of the categorical dataCOLOR
- type of color for the points- Parameters:
colors
- map from data points to the index of the color palette- Returns:
- this CategoryDataSeries
-
pointColor
Description copied from interface:CategoryDataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceCategoryDataSeries
- Parameters:
t
- tablekeyColumn
- column int
, specifying category valuesvalueColumn
- column int
, specifyingPaint
s or ints/Integers representing color palette values.- Returns:
- this CategoryDataSeries
-
pointColor
public AbstractCategoryDataSeries pointColor(SelectableDataSet sds, String keyColumn, String valueColumn)Description copied from interface:CategoryDataSeries
Sets the point color. Unspecified points use the default color.- Specified by:
pointColor
in interfaceCategoryDataSeries
- Parameters:
sds
- selectable data set (e.g. OneClick filterable table)keyColumn
- column insds
, specifying category valuesvalueColumn
- column insds
, specifyingPaint
s or ints/Integers representing color palette values.- Returns:
- this CategoryDataSeries
-
pointColorByY
Description copied from interface:CategoryDataSeries
Sets the point color for a data point based upon the y-value.- Specified by:
pointColorByY
in interfaceCategoryDataSeries
- Parameters:
colors
- map from the y-value of data points toPaint
- Returns:
- this CategoryDataSeries
-
pointColorByY
Description copied from interface:DataSeries
Sets the point color for a data point based upon the y-value.- Specified by:
pointColorByY
in interfaceDataSeries
- Parameters:
colors
- function from the y-value of data points toPaint
- Returns:
- this DataSeries
-
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:
label
- label- Returns:
- this XYDataSeries
-
pointLabel
Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Parameters:
category
- category valuelabel
- label- Returns:
- this CategoryDataSeries
-
pointLabel
public <CATEGORY extends Comparable, LABEL> AbstractCategoryDataSeries pointLabel(Map<CATEGORY,LABEL> labels)Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Type Parameters:
CATEGORY
- type of the categorical dataLABEL
- data type of the point labels- Parameters:
labels
- map used to determine point labels- Returns:
- this CategoryDataSeries
-
pointLabel
Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Parameters:
t
- tablekeyColumn
- column int
, specifying category valuesvalueColumn
- column int
, specifying labels- Returns:
- this CategoryDataSeries
-
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:
format
- format- Returns:
- this data series.
-
piePercentLabelFormat
Description copied from interface:CategoryDataSeries
Sets the format of the percentage point label format in pie plots.- Specified by:
piePercentLabelFormat
in interfaceCategoryDataSeries
- Parameters:
format
- format- Returns:
- this data series.
-
xToolTipPattern
Description copied from interface:DataSeries
Sets the x-value tooltip format.- Specified by:
xToolTipPattern
in interfaceDataSeries
- Parameters:
format
- format- Returns:
- this data series.
-
yToolTipPattern
Description copied from interface:DataSeries
Sets the y-value tooltip format.- Specified by:
yToolTipPattern
in interfaceDataSeries
- Parameters:
format
- format- Returns:
- this data series.
-
pointLabel
public AbstractCategoryDataSeries pointLabel(SelectableDataSet sds, String keyColumn, String valueColumn)Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Parameters:
sds
- selectable data set (e.g. OneClick filterable table)keyColumn
- column insds
, specifying category valuesvalueColumn
- column insds
, specifying labels- Returns:
- this CategoryDataSeries
-
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:
shape
- 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:
shape
- shape- Returns:
- this DataSeries
-
pointShape
Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Parameters:
category
- category valueshape
- shape- Returns:
- this CategoryDataSeries
-
pointShape
Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Parameters:
category
- category valueshape
- shape- Returns:
- this CategoryDataSeries
-
pointShape
Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Type Parameters:
CATEGORY
- type of the categorical data- Parameters:
shapes
- map used to determine point shapes- Returns:
- this CategoryDataSeries
-
pointShape
Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Parameters:
t
- tablekeyColumn
- column int
, specifying category valuesvalueColumn
- column int
, specifying shapes- Returns:
- this CategoryDataSeries
-
pointShape
Description copied from interface:CategoryDataSeries
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 interfaceCategoryDataSeries
- Parameters:
sds
- selectable data set (e.g. OneClick filterable table)keyColumn
- column insds
, specifying category valuesvalueColumn
- column insds
, specifying shapes- Returns:
- this CategoryDataSeries
-
setPiePercentLabelFormat
Sets the pie percent label format for this dataset.- Parameters:
format
- format
-
toolTipPattern
Description copied from interface:DataSeries
Sets the tooltip format.- Specified by:
toolTipPattern
in interfaceDataSeries
- Parameters:
format
- format- Returns:
- this data series.
-
onClose
public void onClose()Description copied from interface:SeriesInternal
Series shut down after the plot is closed.- Specified by:
onClose
in interfaceSeriesInternal
-