edu.ucla.loni.LOVE
Class BoundedModelImpl

java.lang.Object
  extended by edu.ucla.loni.LOVE.BoundedModelImpl
All Implemented Interfaces:
BoundedModel
Direct Known Subclasses:
BoundedColorMap

public class BoundedModelImpl
extends java.lang.Object
implements BoundedModel

Base class 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.


Constructor Summary
BoundedModelImpl()
          Constructor
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundedModelImpl

public BoundedModelImpl()
Constructor

Method Detail

addPropertyChangeListener

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

Specified by:
addPropertyChangeListener in interface BoundedModel
Parameters:
listener - The listener to be added.

removePropertyListener

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

Specified by:
removePropertyListener in interface BoundedModel
Parameters:
listener - The listener to be removed.

firePropertyChange

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

Specified by:
firePropertyChange in interface BoundedModel
Parameters:
propertyName - The name of the changed property.
oldValue - Original value of the changed property.
newValue - New value of the changed property.

firePropertyChange

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

Specified by:
firePropertyChange in interface BoundedModel
Parameters:
propertyChangeEvent - A PropertyChangeEvent .