ch.elca.dependency.graph
Class LayeringEventSupport

java.lang.Object
  |
  +--ch.elca.dependency.graph.LayeringEventSupport

public class LayeringEventSupport
extends java.lang.Object

This is an utility class which supports LayeringEvents. You can use an instance of this class as a member field of a class firing LayeringEvents and delegate various work associated with LayeringEvents to it.

Version:
1.0-beta
Author:
Pawel Kowalski

Constructor Summary
LayeringEventSupport()
           
 
Method Summary
 void addLayeringListener(LayeringListener listener)
          Add a LayeringListener to the list of Listeners.
 void fireLayeringEvent(Edge edge)
          Fire an LayeringEvent with an Edge associated with it.
 void removeLayeringListener(LayeringListener listener)
          Remove a Listener from the list of Listeners receiving LayeringEvents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayeringEventSupport

public LayeringEventSupport()
Method Detail

fireLayeringEvent

public void fireLayeringEvent(Edge edge)
Fire an LayeringEvent with an Edge associated with it.

Parameters:
edge - an Edge value

addLayeringListener

public void addLayeringListener(LayeringListener listener)
Add a LayeringListener to the list of Listeners. Each Listener will receive a LayeringEvent. Each added Listener will receive the LayeringEvents only once.

Parameters:
listener - a LayeringListener value

removeLayeringListener

public void removeLayeringListener(LayeringListener listener)
Remove a Listener from the list of Listeners receiving LayeringEvents.

Parameters:
listener - a LayeringListener value


Copyright © 2003 ELCA Informatique SA. All Rights Reserved.