Class AbstractDataSeries
java.lang.Object
com.illumon.iris.db.plot.AbstractSeriesInternal
com.illumon.iris.db.plot.datasets.AbstractDataSeries
- All Implemented Interfaces:
DataSeries
,DataSeriesInternal
,PlotExceptionCause
,Series
,SeriesInternal
,Serializable
- Direct Known Subclasses:
AbstractCategoryDataSeries
,AbstractXYDataSeries
public abstract class AbstractDataSeries extends AbstractSeriesInternal implements DataSeriesInternal, Serializable
Base class for
DataSeriesInternal
.- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description AbstractDataSeries(AxesImpl axes, int id, Comparable name, AbstractDataSeries series)
Creates an AbstractDataSeries instance.protected
AbstractDataSeries(AbstractDataSeries series, AxesImpl axes)
Creates a copy of a series using a different Axes and a different listener. -
Method Summary
Modifier and Type Method Description ChartImpl
chart()
Gets the chart on which this data will be plotted.Paint
getErrorBarColor()
Gets the color of the error bars.boolean
getGradientVisible()
Gets whether the bar gradient is visible.Paint
getLineColor()
Gets the line color.LineStyle
getLineStyle()
Gets the line style.Boolean
getLinesVisible()
Gets whether lines are visible.String
getPointLabelFormat()
Gets the point label format.Boolean
getPointsVisible()
Gets whether points are visible.String
getXToolTipPattern()
Gets the tooltip format for x-values.String
getYToolTipPattern()
Gets the tooltip format for y-values.protected void
setErrorBarColor(int color)
Sets the error bar color for this dataset.protected void
setErrorBarColor(Paint color)
Sets the error bar color for this dataset.protected void
setErrorBarColor(String color)
Sets the error bar color for this dataset.protected void
setGradientVisible(boolean visible)
Sets the bar-gradient visibility for this dataset.protected void
setLineColor(int color)
Sets the line color for this dataset.protected void
setLineColor(Paint color)
Sets the line color for this dataset.protected void
setLineColor(String color)
Sets the line color for this dataset.protected void
setLineStyle(LineStyle style)
Sets the line style for this dataset.protected void
setLinesVisible(Boolean visible)
Sets the line visibility for this dataset.protected void
setPointLabelFormat(String format)
Sets the point label format for this dataset.protected void
setPointsVisible(Boolean visible)
Sets the points visibility for this dataset.protected void
setXToolTipPattern(String format)
Sets the x-value tooltip format for this dataset.protected void
setYToolTipPattern(String format)
Sets the y-value tooltip format for this dataset.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.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, yToolTipPattern
Methods inherited from interface com.illumon.iris.db.plot.datasets.DataSeriesInternal
axes, copy, createSnapshot, getPlotInfo, getSeriesColor, id, name, size
Methods inherited from interface com.illumon.iris.db.plot.SeriesInternal
addSwappableTable, addTableHandle, addTableMapHandle, dataChangeListener, getSwappableTables, getTableHandles, getTableMapHandles, onClose, onInflate, removeTableHandle
-
Constructor Details
-
AbstractDataSeries
Creates an AbstractDataSeries instance.- Parameters:
axes
- axes on which this dataset will be plottedid
- data series idname
- series name
-
AbstractDataSeries
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
-
chart
Description copied from interface:DataSeriesInternal
Gets the chart on which this data will be plotted.- Specified by:
chart
in interfaceDataSeriesInternal
- Returns:
- chart on which this data will be plotted
-
getLineColor
Description copied from interface:DataSeriesInternal
Gets the line color.- Specified by:
getLineColor
in interfaceDataSeriesInternal
- Returns:
- line color
-
getErrorBarColor
Description copied from interface:DataSeriesInternal
Gets the color of the error bars.- Specified by:
getErrorBarColor
in interfaceDataSeriesInternal
- Returns:
- error bar color
-
getLineStyle
Description copied from interface:DataSeriesInternal
Gets the line style.- Specified by:
getLineStyle
in interfaceDataSeriesInternal
- Returns:
- line style
-
getLinesVisible
Description copied from interface:DataSeriesInternal
Gets whether lines are visible.- Specified by:
getLinesVisible
in interfaceDataSeriesInternal
- Returns:
- whether lines are visible
-
getPointsVisible
Description copied from interface:DataSeriesInternal
Gets whether points are visible.- Specified by:
getPointsVisible
in interfaceDataSeriesInternal
- Returns:
- whether points are visible
-
getGradientVisible
public boolean getGradientVisible()Description copied from interface:DataSeriesInternal
Gets whether the bar gradient is visible.- Specified by:
getGradientVisible
in interfaceDataSeriesInternal
- Returns:
- whether the bar gradient is visible
-
getPointLabelFormat
Description copied from interface:DataSeriesInternal
Gets the point label format.- Specified by:
getPointLabelFormat
in interfaceDataSeriesInternal
- Returns:
- point label format
-
getXToolTipPattern
Description copied from interface:DataSeriesInternal
Gets the tooltip format for x-values.- Specified by:
getXToolTipPattern
in interfaceDataSeriesInternal
- Returns:
- x-value tooltip format
-
getYToolTipPattern
Description copied from interface:DataSeriesInternal
Gets the tooltip format for y-values.- Specified by:
getYToolTipPattern
in interfaceDataSeriesInternal
- Returns:
- y-value tooltip format
-
setLinesVisible
Sets the line visibility for this dataset.- Parameters:
visible
- whether lines will be visible
-
setPointsVisible
Sets the points visibility for this dataset.- Parameters:
visible
- whether points will be visible
-
setGradientVisible
protected void setGradientVisible(boolean visible)Sets the bar-gradient visibility for this dataset.- Parameters:
visible
- whether the bar-gradient will be visible
-
setLineColor
Sets the line color for this dataset.- Parameters:
color
- color
-
setLineColor
protected void setLineColor(int color)Sets the line color for this dataset.- Parameters:
color
- color
-
setLineColor
Sets the line color for this dataset.- Parameters:
color
- color
-
setErrorBarColor
Sets the error bar color for this dataset.- Parameters:
color
- color
-
setErrorBarColor
protected void setErrorBarColor(int color)Sets the error bar color for this dataset.- Parameters:
color
- color
-
setErrorBarColor
Sets the error bar color for this dataset.- Parameters:
color
- color
-
setLineStyle
Sets the line style for this dataset.- Parameters:
style
- style
-
setPointLabelFormat
Sets the point label format for this dataset.- Parameters:
format
- format
-
setXToolTipPattern
Sets the x-value tooltip format for this dataset.- Parameters:
format
- format
-
setYToolTipPattern
Sets the y-value tooltip format for this dataset.- Parameters:
format
- format
-