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:
-
Field Summary
Fields inherited from class com.illumon.iris.db.plot.AbstractSeriesInternal
dataChangeListener -
Constructor Summary
ConstructorsModifierConstructorDescriptionAbstractDataSeries(AxesImpl axes, int id, Comparable name, AbstractDataSeries series) Creates an AbstractDataSeries instance.protectedAbstractDataSeries(AbstractDataSeries series, AxesImpl axes) Creates a copy of a series using a different Axes and a different listener. -
Method Summary
Modifier and TypeMethodDescriptionchart()Gets the chart on which this data will be plotted.Gets the color of the error bars.booleanGets whether the bar gradient is visible.Gets the line color.Gets the line style.Gets whether lines are visible.Gets the point label format.Gets whether points are visible.Gets the tooltip format for x-values.Gets the tooltip format for y-values.protected voidsetErrorBarColor(int color) Sets the error bar color for this dataset.protected voidsetErrorBarColor(Paint color) Sets the error bar color for this dataset.protected voidsetErrorBarColor(String color) Sets the error bar color for this dataset.protected voidsetGradientVisible(boolean visible) Sets the bar-gradient visibility for this dataset.protected voidsetLineColor(int color) Sets the line color for this dataset.protected voidsetLineColor(Paint color) Sets the line color for this dataset.protected voidsetLineColor(String color) Sets the line color for this dataset.protected voidsetLineStyle(LineStyle style) Sets the line style for this dataset.protected voidsetLinesVisible(Boolean visible) Sets the line visibility for this dataset.protected voidsetPointLabelFormat(String format) Sets the point label format for this dataset.protected voidsetPointsVisible(Boolean visible) Sets the points visibility for this dataset.protected voidsetXToolTipPattern(String format) Sets the x-value tooltip format for this dataset.protected voidsetYToolTipPattern(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, removeTableHandleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, yToolTipPatternMethods inherited from interface com.illumon.iris.db.plot.datasets.DataSeriesInternal
axes, copy, createSnapshot, getPlotInfo, getSeriesColor, id, name, sizeMethods 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:DataSeriesInternalGets the chart on which this data will be plotted.- Specified by:
chartin interfaceDataSeriesInternal- Returns:
- chart on which this data will be plotted
-
getLineColor
Description copied from interface:DataSeriesInternalGets the line color.- Specified by:
getLineColorin interfaceDataSeriesInternal- Returns:
- line color
-
getErrorBarColor
Description copied from interface:DataSeriesInternalGets the color of the error bars.- Specified by:
getErrorBarColorin interfaceDataSeriesInternal- Returns:
- error bar color
-
getLineStyle
Description copied from interface:DataSeriesInternalGets the line style.- Specified by:
getLineStylein interfaceDataSeriesInternal- Returns:
- line style
-
getLinesVisible
Description copied from interface:DataSeriesInternalGets whether lines are visible.- Specified by:
getLinesVisiblein interfaceDataSeriesInternal- Returns:
- whether lines are visible
-
getPointsVisible
Description copied from interface:DataSeriesInternalGets whether points are visible.- Specified by:
getPointsVisiblein interfaceDataSeriesInternal- Returns:
- whether points are visible
-
getGradientVisible
public boolean getGradientVisible()Description copied from interface:DataSeriesInternalGets whether the bar gradient is visible.- Specified by:
getGradientVisiblein interfaceDataSeriesInternal- Returns:
- whether the bar gradient is visible
-
getPointLabelFormat
Description copied from interface:DataSeriesInternalGets the point label format.- Specified by:
getPointLabelFormatin interfaceDataSeriesInternal- Returns:
- point label format
-
getXToolTipPattern
Description copied from interface:DataSeriesInternalGets the tooltip format for x-values.- Specified by:
getXToolTipPatternin interfaceDataSeriesInternal- Returns:
- x-value tooltip format
-
getYToolTipPattern
Description copied from interface:DataSeriesInternalGets the tooltip format for y-values.- Specified by:
getYToolTipPatternin 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
-