public class AbstractDataset3D extends java.lang.Object implements Dataset3D
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDataset3D()
Default constructor - allocates storage for listeners that can
be registered with the dataset.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(Dataset3DChangeListener listener)
Registers an object to receive notification of changes to the dataset.
|
protected void |
fireChangeEvent()
Sends a
Dataset3DChangeEvent to all registered listeners, unless
the notify flag is set to false in which
case this method does nothing. |
protected void |
fireDatasetChanged()
Notifies all registered listeners that the dataset has changed.
|
boolean |
hasListener(java.util.EventListener listener)
Returns
true if the specified object is registered with
the dataset as a listener. |
boolean |
isNotify()
Returns a flag that controls whether or not change events are sent to
registered listeners.
|
protected void |
notifyListeners(Dataset3DChangeEvent event)
Notifies all registered listeners that the dataset has changed, unless
the
notify flag is set to false in which
case this method does nothing. |
void |
removeChangeListener(Dataset3DChangeListener listener)
Deregisters an object so that it no longer receives notification of
changes to the dataset.
|
void |
setNotify(boolean notify)
Sets a flag that controls whether or not listeners receive
Dataset3DChangeEvent notifications. |
protected AbstractDataset3D()
public boolean isNotify()
setNotify(boolean)public void setNotify(boolean notify)
Dataset3DChangeEvent notifications.notify - a boolean.isNotify()public void addChangeListener(Dataset3DChangeListener listener)
addChangeListener in interface Dataset3Dlistener - the object to register.removeChangeListener(Dataset3DChangeListener)public void removeChangeListener(Dataset3DChangeListener listener)
removeChangeListener in interface Dataset3Dlistener - the object to deregister.addChangeListener(Dataset3DChangeListener)public boolean hasListener(java.util.EventListener listener)
true if the specified object is registered with
the dataset as a listener. Most applications won't need to call this
method, it exists mainly for use by unit testing code.hasListener in interface Dataset3Dlistener - the listener.addChangeListener(Dataset3DChangeListener),
removeChangeListener(Dataset3DChangeListener)protected void fireDatasetChanged()
protected void notifyListeners(Dataset3DChangeEvent event)
notify flag is set to false in which
case this method does nothing.event - contains information about the event that triggered the
notification.addChangeListener(Dataset3DChangeListener),
removeChangeListener(Dataset3DChangeListener)protected void fireChangeEvent()
Dataset3DChangeEvent to all registered listeners, unless
the notify flag is set to false in which
case this method does nothing.