Class AbstractTableBasedCategoryDataSeries
java.lang.Object
com.illumon.iris.db.plot.AbstractSeriesInternal
com.illumon.iris.db.plot.datasets.AbstractDataSeries
com.illumon.iris.db.plot.datasets.category.AbstractCategoryDataSeries
com.illumon.iris.db.plot.datasets.category.AbstractTableBasedCategoryDataSeries
- All Implemented Interfaces:
CategoryDataSeries
,CategoryDataSeriesInternal
,DataSeries
,DataSeriesInternal
,PlotExceptionCause
,Series
,SeriesInternal
,Serializable
- Direct Known Subclasses:
CategoryDataSeriesTableMap
,CategoryErrorBarDataSeriesTableMap
public abstract class AbstractTableBasedCategoryDataSeries extends AbstractCategoryDataSeries
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AbstractTableBasedCategoryDataSeries(AxesImpl axes, int id, Comparable name)
AbstractTableBasedCategoryDataSeries(AxesImpl axes, int id, Comparable name, AbstractCategoryDataSeries series)
AbstractTableBasedCategoryDataSeries(AbstractCategoryDataSeries series, AxesImpl axes)
-
Method Summary
Modifier and Type Method Description protected <S, T> Table
constructTableFromFunction(Table t, Function<S,T> function, Class resultClass, String onColumn, String columnName)
protected abstract String
getCategoryCol()
protected abstract Table
getTable()
protected abstract String
getValueCol()
<COLOR extends Paint>
CategoryDataSeriespointColor(Function<Comparable,COLOR> colors)
Sets the point color.<T extends Paint>
CategoryDataSeriespointColorByY(Function<Double,T> colors)
Sets the point color for a data point based upon the y-value.<COLOR extends Integer>
CategoryDataSeriespointColorInteger(Function<Comparable,COLOR> colors)
Sets the point color.<LABEL> CategoryDataSeries
pointLabel(Function<Comparable,LABEL> labels)
Sets the point label for data point i from index i of the input labels.CategoryDataSeries
pointShape(Function<Comparable,String> shapes)
Sets the point shapes for data point i from index i of the input labels.<NUMBER extends Number>
CategoryDataSeriespointSize(Function<Comparable,NUMBER> factors)
Sets the point size.Methods inherited from class com.illumon.iris.db.plot.datasets.category.AbstractCategoryDataSeries
colorsSetSpecific, errorBarColor, errorBarColor, errorBarColor, getColor, getGroup, getLabel, getPiePercentLabelFormat, getPointShape, getPointSize, getSeriesColor, gradientVisible, group, labelsSetSpecific, lineColor, lineColor, lineColor, lineStyle, linesVisible, onClose, piePercentLabelFormat, 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, pointSize, pointSize, pointSize, pointSize, pointsVisible, seriesColor, seriesColor, seriesColor, setPiePercentLabelFormat, shapesSetSpecific, sizesSetSpecific, snapshotModifiers, toolTipPattern, 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.category.CategoryDataSeries
pointColor, pointColorInteger, pointLabel, pointShape, 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
-
AbstractTableBasedCategoryDataSeries
-
AbstractTableBasedCategoryDataSeries
public AbstractTableBasedCategoryDataSeries(AxesImpl axes, int id, Comparable name, AbstractCategoryDataSeries series) -
AbstractTableBasedCategoryDataSeries
-
-
Method Details
-
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.- Parameters:
shapes
- function used to determine point shapes- 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.- Type Parameters:
NUMBER
- data type of the point sizes- Parameters:
factors
- function used to set sizes of data points- Returns:
- this CategoryDataSeries
-
pointColor
Description copied from interface:CategoryDataSeries
Sets the point color. Unspecified points use the default color.- Type Parameters:
COLOR
- type of color for the points- Parameters:
colors
- function from data points to theirPaint
s- Returns:
- this CategoryDataSeries
-
pointColorInteger
public <COLOR extends Integer> CategoryDataSeries pointColorInteger(Function<Comparable,COLOR> colors)Description copied from interface:CategoryDataSeries
Sets the point color. Unspecified points use the default color.- Type Parameters:
COLOR
- type of color for the points- Parameters:
colors
- function from data points to the index of the color palette- Returns:
- this CategoryDataSeries
-
pointColorByY
Description copied from interface:DataSeries
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
-
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.- Type Parameters:
LABEL
- data type of the point labels- Parameters:
labels
- function used to determine point labels- Returns:
- this CategoryDataSeries
-
constructTableFromFunction
-
getTable
-
getCategoryCol
-
getValueCol
-