public abstract class AbstractSeries extends java.lang.Object implements ISeries
ISeries
. This class does not, however, manage the data, parent
series, or category.Constructor and Description |
---|
AbstractSeries() |
Modifier and Type | Method and Description |
---|---|
double[] |
getBounds()
Gets the bounds for this series.
|
java.lang.String |
getCategory()
Gets the current category that this series is in
|
java.lang.Object[] |
getDataPoints()
Gets all of the data points for this series, used to plot the series no
matter what visualization service is being used.
|
java.lang.String |
getLabel()
Gets the label used to describe this series and to be shown on the
graphs.
|
ISeries |
getParentSeries()
Gets the parent series for this series.
|
ISeriesStyle |
getStyle()
Sets the
ISeriesStyle of the series. |
double |
getTime()
Gets the timestamp for this series.
|
boolean |
isEnabled()
Gets if this series is enabled or not.
|
void |
setEnabled(boolean enable)
Sets the enabled state of this series.
|
void |
setLabel(java.lang.String label)
Sets the label used to describe this series and to be shown on the
graphs.
|
void |
setStyle(ISeriesStyle style)
Sets the
ISeriesStyle used for this series. |
void |
setTime(double time)
Sets the time for this series to the specified time.
|
public double[] getBounds()
ISeries
ISeries
was established but no data was ever added to it (see
ISeries#add(double)
).public java.lang.String getCategory()
ISeries
getCategory
in interface ISeries
public java.lang.Object[] getDataPoints()
ISeries
getDataPoints
in interface ISeries
public java.lang.String getLabel()
ISeries
public ISeries getParentSeries()
ISeries
getParentSeries
in interface ISeries
public ISeriesStyle getStyle()
ISeries
ISeriesStyle
of the series. That style defines the
color, point style, line style, default preferred axis, and many other
types of style information for the series to be properly formatted when
being plotted. This allows for some configuration rather than the default
plot implementation to be used for every plotting purpose.public double getTime()
ISeries
public boolean isEnabled()
ISeries
public void setEnabled(boolean enable)
ISeries
setEnabled
in interface ISeries
enable
- The state of the series. True will enable the series for
plotting, false will disable the series.public void setLabel(java.lang.String label)
ISeries
public void setStyle(ISeriesStyle style)
ISeries
ISeriesStyle
used for this series. That style defines
the color, point style, line style, default preferred axis, and many
other types of style information for the series to be properly formatted
when being plotted. This allows for some configuration rather than the
default plot implementation to be used for every plotting purpose.