| java.lang.Object | |
| ↳ | org.jfree.data.general.Series |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Base class representing a data series. Subclasses are left to implement the actual data structures.
The series has two properties ("Key" and "Description") for which you can
register a PropertyChangeListener.
You can also register a SeriesChangeListener to receive notification
of changes to the series data.
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new series with the specified key.
| |||||||||||
Creates a new series with the specified key and description.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Registers an object with this series, to receive notification whenever
the series changes.
| |||||||||||
Adds a property change listener to the series.
| |||||||||||
Returns a clone of the series.
| |||||||||||
Tests the series for equality with another object.
| |||||||||||
General method for signalling to registered listeners that the series
has been changed.
| |||||||||||
Returns a description of the series.
| |||||||||||
Returns the number of data items in the series.
| |||||||||||
Returns the key for the series.
| |||||||||||
Returns the flag that controls whether or not change events are sent to
registered listeners.
| |||||||||||
Returns a hash code.
| |||||||||||
Returns
true if the series contains no data items, and
false otherwise. | |||||||||||
Deregisters an object, so that it not longer receives notification
whenever the series changes.
| |||||||||||
Removes a property change listener from the series.
| |||||||||||
Sets the description of the series and sends a
PropertyChangeEvent to all registered listeners. | |||||||||||
Sets the key for the series and sends a
PropertyChangeEvent
(with the property name "Key") to all registered listeners. | |||||||||||
Sets the flag that controls whether or not change events are sent to
registered listeners.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Fires a property change event.
| |||||||||||
Sends a change event to all registered listeners.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a new series with the specified key.
| key | the series key (null not permitted).
|
|---|
Creates a new series with the specified key and description.
| key | the series key (null NOT permitted). |
|---|---|
| description | the series description (null permitted).
|
Registers an object with this series, to receive notification whenever the series changes.
Objects being registered must implement the SeriesChangeListener
interface.
| listener | the listener to register. |
|---|
Adds a property change listener to the series.
| listener | the listener. |
|---|
Returns a clone of the series.
Notes:
| CloneNotSupportedException | not thrown by this class, but subclasses may differ. |
|---|
Tests the series for equality with another object.
| obj | the object (null permitted). |
|---|
true or false.
General method for signalling to registered listeners that the series has been changed.
Returns a description of the series.
null).Returns the number of data items in the series.
Returns the flag that controls whether or not change events are sent to registered listeners.
Returns a hash code.
Returns true if the series contains no data items, and
false otherwise.
Deregisters an object, so that it not longer receives notification whenever the series changes.
| listener | the listener to deregister. |
|---|
Removes a property change listener from the series.
| listener | The listener. |
|---|
Sets the description of the series and sends a
PropertyChangeEvent to all registered listeners.
| description | the description (null permitted). |
|---|
Sets the key for the series and sends a PropertyChangeEvent
(with the property name "Key") to all registered listeners.
| key | the key (null not permitted). |
|---|
Sets the flag that controls whether or not change events are sent to registered listeners.
| notify | the new value of the flag. |
|---|
Fires a property change event.
| property | the property key. |
|---|---|
| oldValue | the old value. |
| newValue | the new value. |
Sends a change event to all registered listeners.
| event | contains information about the event that triggered the notification. |
|---|