edu.umd.cs.jazz.event
Class ZNodeAdapter

java.lang.Object
  |
  +--edu.umd.cs.jazz.event.ZNodeAdapter

public class ZNodeAdapter
extends java.lang.Object
implements ZNodeListener

ZNodeListener An abstract adapter class for receiving node events. The methods in this class are empty. This class exists as convenience for creating listener objects.

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 component using the component's addNodeListener method. When the component's size, location, or visibility changes, the relevant method in the listener object is invoked, and the ZNodeEvent is passed to it.

Based on Swing's ComponentAdapter class.

See Also:
ZNodeAdapter, ZNodeEvent

Constructor Summary
ZNodeAdapter()
           
 
Method Summary
 void nodeHidden(ZNodeEvent e)
          Invoked when the node has been made invisible.
 void nodeShown(ZNodeEvent e)
          Invoked when the node has been made visible.
 void nodeTransformed(ZNodeEvent e)
          Invoked when the node's transform changes.
 
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

nodeTransformed

public void nodeTransformed(ZNodeEvent e)
Invoked when the node's transform changes.
Specified by:
nodeTransformed in interface ZNodeListener

nodeShown

public void nodeShown(ZNodeEvent e)
Invoked when the node has been made visible.
Specified by:
nodeShown in interface ZNodeListener

nodeHidden

public void nodeHidden(ZNodeEvent e)
Invoked when the node has been made invisible.
Specified by:
nodeHidden in interface ZNodeListener