infovis.utils
Class ChangeManager

java.lang.Object
  extended by infovis.utils.ChangeManager
Direct Known Subclasses:
AbstractColumn, Permutation

public class ChangeManager
extends Object


Constructor Summary
ChangeManager()
           
 
Method Summary
 void addChangeListener(ChangeListener listener)
          Adds a listener to the list that's notified each time a change occurs.
 void disableNotify()
          Disables notification until enableNotify has been called.
 void enableNotify()
          Re enable notifications, triggering eventListeners if modifications occur.
 int getModCount()
          Returns the modCount.
 void removeChangeListener(ChangeListener listener)
          Removes a listener from the list that's notified each time a change occurs.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeManager

public ChangeManager()
Method Detail

getModCount

public int getModCount()
Returns the modCount.

Returns:
int

disableNotify

public void disableNotify()
Disables notification until enableNotify has been called.

This method is useful if a large number of modifications is going to happen on the column and notifying each time would be too time consuming. The notification will be deferred until enableNotify is called.

Calls to disableNotify can be nested

See Also:
enableNotify()

enableNotify

public void enableNotify()
Re enable notifications, triggering eventListeners if modifications occur.

See Also:
disableNotify()

addChangeListener

public void addChangeListener(ChangeListener listener)
Adds a listener to the list that's notified each time a change occurs.

Parameters:
listener - the listener

removeChangeListener

public void removeChangeListener(ChangeListener listener)
Removes a listener from the list that's notified each time a change occurs.

Parameters:
listener - the listener


Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.