edu.umd.cs.jazz.event
Class ZNodeAdapter

java.lang.Object
  |
  +--edu.umd.cs.jazz.event.ZNodeAdapter
All Implemented Interfaces:
java.util.EventListener, java.io.Serializable, ZNodeListener

public class ZNodeAdapter
extends java.lang.Object
implements ZNodeListener, java.io.Serializable

ZNodeAdapater is an abstract adapter class for receiving node events. The methods in this class are empty. This class exists as convenience for creating listener objects. Based on Swing's ComponentListener.

Extend this class to create a ZNodeEvent listener and override the methods for the events of interest. (If you implement the ZNodeListener interface, you have to define all of the methods in it. This abstract class defines null methods for them all, so you can only have to define methods for events you care about.)

Create a listener object using your class and then register it with a node using the node's addNodeListener method. When the node's state changes, the relevant method in the listener object is invoked, and the ZNodeEvent is passed to it.

Warning: Serialized and ZSerialized objects of this class will not be compatible with future Jazz releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Jazz. A future release of Jazz will provide support for long term persistence.

Author:
Ben Bederson
See Also:
ZNodeAdapter, ZNodeEvent, Serialized Form

Constructor Summary
ZNodeAdapter()
           
 
Method Summary
 void boundsChanged(ZNodeEvent e)
          Invoked when a node's bounds have changed.
 void globalBoundsChanged(ZNodeEvent e)
          Invoked when a node's global bounds have changed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZNodeAdapter

public ZNodeAdapter()
Method Detail

boundsChanged

public void boundsChanged(ZNodeEvent e)
Invoked when a node's bounds have changed.
Specified by:
boundsChanged in interface ZNodeListener

globalBoundsChanged

public void globalBoundsChanged(ZNodeEvent e)
Invoked when a node's global bounds have changed
Specified by:
globalBoundsChanged in interface ZNodeListener


Copyright © 2001 by University of Maryland, College Park, MD 20742, USA All rights reserved.