edu.ucla.loni.LOVE
Interface BoundedModel

All Known Implementing Classes:
BoundedColorMap, BoundedModelImpl

public interface BoundedModel

Interface for bounded model. As indicated in Java Bean, this model have a list of listener. Once the bounded value of this model changes it will fire a PropertyChangeEvent to notify all the listeners. Listener of this class should implement PropertyChangeListener interface.


Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Add a PropertyChangeListener to this model.
 void firePropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
          Fire a PropertyChangeEvent .
 void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
          Fire a PropertyChangeEvent .
 void removePropertyListener(java.beans.PropertyChangeListener listener)
          Remove the PropertyChangeListener from this model.
 

Method Detail

addPropertyChangeListener

void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to this model.

Parameters:
listener - The listener to be added.

removePropertyListener

void removePropertyListener(java.beans.PropertyChangeListener listener)
Remove the PropertyChangeListener from this model.

Parameters:
listener - The listener to be removed.

firePropertyChange

void firePropertyChange(java.lang.String propertyName,
                        java.lang.Object oldValue,
                        java.lang.Object newValue)
Fire a PropertyChangeEvent .

Parameters:
propertyName - The name of the changed property.
oldValue - Original value of the changed property.
newValue - New value of the changed property.

firePropertyChange

void firePropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
Fire a PropertyChangeEvent .

Parameters:
propertyChangeEvent - A PropertyChangeEvent .