View Javadoc

1   /*
2    * Copyright (c) 2005, the JUNG Project and the Regents of the University of
3    * California All rights reserved.
4    *
5    * This software is open-source under the BSD license; see either "license.txt"
6    * or http://jung.sourceforge.net/license.txt for a description.
7    *
8    * Created on Aug 18, 2005
9    */
10  
11  package edu.uci.ics.jung.visualization.util;
12  
13  import javax.swing.event.ChangeListener;
14  
15  /**
16   * the implementing class provides support for ChangeEvents.
17   * 
18   * @author Tom Nelson - tomnelson@dev.java.net
19   *
20   */
21  public interface ChangeEventSupport {
22  
23      void addChangeListener(ChangeListener l);
24  
25      /**
26       * Removes a ChangeListener.
27       * @param l the listener to be removed
28       */
29      void removeChangeListener(ChangeListener l);
30  
31      /**
32       * Returns an array of all the <code>ChangeListener</code>s added
33       * with addChangeListener().
34       *
35       * @return all of the <code>ChangeListener</code>s added or an empty
36       *         array if no listeners have been added
37       */
38      ChangeListener[] getChangeListeners();
39      
40      void fireStateChanged();
41  
42  }