public abstract class SeriesRegistry<BundleType extends SeriesBundle<SeriesType,FormatterType>,SeriesType extends Series,FormatterType extends Formatter> extends Object implements Serializable
Constructor and Description |
---|
SeriesRegistry() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(SeriesType series,
FormatterType formatter) |
void |
clear()
Remove all series from the plot.
|
protected List<SeriesBundle<SeriesType,FormatterType>> |
get(SeriesType series) |
List<SeriesBundle<SeriesType,FormatterType>> |
getLegendEnabledItems() |
List<BundleType> |
getSeriesAndFormatterList() |
List<SeriesType> |
getSeriesList() |
boolean |
isEmpty() |
protected abstract BundleType |
newSeriesBundle(SeriesType series,
FormatterType formatter) |
boolean |
remove(SeriesType series)
Remove all occurrences of series regardless of the associated Renderer.
|
List<BundleType> |
remove(SeriesType series,
Class rendererClass) |
int |
size() |
public List<BundleType> getSeriesAndFormatterList()
public List<SeriesType> getSeriesList()
public int size()
public boolean isEmpty()
public boolean add(SeriesType series, FormatterType formatter)
protected abstract BundleType newSeriesBundle(SeriesType series, FormatterType formatter)
protected List<SeriesBundle<SeriesType,FormatterType>> get(SeriesType series)
series
- SeriesBundle
instances that reference series.public List<BundleType> remove(SeriesType series, Class rendererClass)
public boolean remove(SeriesType series)
series
- public void clear()
public List<SeriesBundle<SeriesType,FormatterType>> getLegendEnabledItems()