public abstract class DataSeriesCore extends java.lang.Object implements IDataSeriesCore
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SIZE |
Constructor and Description |
---|
DataSeriesCore() |
Modifier and Type | Method and Description |
---|---|
void |
addObserver(IDataSeriesObserver observer)
Adds
IDataSeriesObserver which observes changes in this series |
void |
clear()
Clears the series, resetting internal lists to zero size.
|
boolean |
getHasValues()
Gets whether the DataSeries has values(is not empty).
|
java.lang.String |
getSeriesName()
Gets the name of this series.
|
protected void |
onDataSeriesChanged(int updateAction)
Notifies observers about update in this series
|
void |
removeObserver(IDataSeriesObserver observer)
Removes
IDataSeriesObserver from list of change observers for this series |
void |
setSeriesName(java.lang.String seriesName)
Sets the name of this series.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, getCount
public static final int DEFAULT_SIZE
public final java.lang.String getSeriesName()
getSeriesName
in interface IDataSeriesCore
public final void setSeriesName(java.lang.String seriesName)
setSeriesName
in interface IDataSeriesCore
seriesName
- The new name of this seriespublic final void clear()
clear
in interface IDataSeriesCore
public boolean getHasValues()
getHasValues
in interface IDataSeriesCore
public final void addObserver(IDataSeriesObserver observer)
IDataSeriesObserver
which observes changes in this seriesaddObserver
in interface IDataSeriesCore
observer
- The observer to addpublic final void removeObserver(IDataSeriesObserver observer)
IDataSeriesObserver
from list of change observers for this seriesremoveObserver
in interface IDataSeriesCore
observer
- The observer to removeprotected final void onDataSeriesChanged(int updateAction)
updateAction
- The update action