public class ProxySeries extends AbstractSeries
ISeries
implementation. This is used to share data between series--each with its own
customization--without duplicating the series data.
As such, if a source has been set via setSource(ISeries)
, then the
following methods will be redirected to the respective method from the source
series:
AbstractSeries
.Constructor and Description |
---|
ProxySeries() |
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.
|
ISeries |
getParentSeries()
Gets the parent series for this series.
|
double |
getTime()
Gets the timestamp for this series.
|
void |
setSource(ISeries source)
Sets the source
ISeries on which this series is based. |
void |
setTime(double time)
Sets the time for this series to the specified time.
|
getLabel, getStyle, isEnabled, setEnabled, setLabel, setStyle
public double[] getBounds()
ISeries
ISeries
was established but no data was ever added to it (see
ISeries#add(double)
).getBounds
in interface ISeries
getBounds
in class AbstractSeries
public java.lang.String getCategory()
ISeries
getCategory
in interface ISeries
getCategory
in class AbstractSeries
public java.lang.Object[] getDataPoints()
ISeries
getDataPoints
in interface ISeries
getDataPoints
in class AbstractSeries
public ISeries getParentSeries()
ISeries
getParentSeries
in interface ISeries
getParentSeries
in class AbstractSeries
public double getTime()
ISeries
getTime
in interface ISeries
getTime
in class AbstractSeries
public void setSource(ISeries source)
ISeries
on which this series is based. This
method allows this series' data to be derived from the specified series.source
- The source series. If null
, the source will be unset
and all source data will revert to the implementation provided
by AbstractSeries
.public void setTime(double time)
ISeries
setTime
in interface ISeries
setTime
in class AbstractSeries
time
- The time for this series.