Jazz API Documentation

edu.umd.cs.jazz.event
Class ZNodeEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--java.awt.AWTEvent
              |
              +--edu.umd.cs.jazz.event.ZNodeEvent
All Implemented Interfaces:
java.io.Serializable

public class ZNodeEvent
extends java.awt.AWTEvent
implements java.io.Serializable

ZNodeEvent is an event which indicates that a node has changed.

Node events are provided for notification purposes ONLY; Jazz will automatically handle changes to the node contents internally so that the program works properly regardless of whether the program is receiving these events or not.

This event is generated by a ZNode when a node's bounds are changed. The event is passed to every ZNodeListener or ZNodeAdapter object which registered to receive such events using the Node's addNodeListener method. (ZNodeAdapter objects implement the ZNodeListener interface.) Each such listener object gets this ZNodeEvent when the event occurs.

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.

See Also:
ZNodeAdapter, ZNodeListener, Serialized Form

Field Summary
static int BOUNDS_CHANGED
          This event indicates that a node's bounds changed.
static int GLOBAL_BOUNDS_CHANGED
          This event indicates that a node's global bounds changed.
static int NODE_FIRST
          The first number in the range of ids used for node events.
static int NODE_LAST
          The last number in the range of ids used for node events.
 
Fields inherited from class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ZNodeEvent(ZNode source, int id)
          Constructs a ZNodeEvent object.
 
Method Summary
 void consume()
          Consume this event.
 ZNode getNode()
          Returns the node whose bounds has changed.
 boolean isConsumed()
          True if this event has been consumed.
 
Methods inherited from class java.awt.AWTEvent
finalize, getID, paramString, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NODE_FIRST

public static final int NODE_FIRST
The first number in the range of ids used for node events.

NODE_LAST

public static final int NODE_LAST
The last number in the range of ids used for node events.

BOUNDS_CHANGED

public static final int BOUNDS_CHANGED
This event indicates that a node's bounds changed.

GLOBAL_BOUNDS_CHANGED

public static final int GLOBAL_BOUNDS_CHANGED
This event indicates that a node's global bounds changed.
Constructor Detail

ZNodeEvent

public ZNodeEvent(ZNode source,
                  int id)
Constructs a ZNodeEvent object.
Parameters:
source - the ZNode object that originated the event, and whose bounds have changed.
id - an integer indicating the type of event
Method Detail

getNode

public ZNode getNode()
Returns the node whose bounds has changed.
Returns:
the ZNode whose bounds has changed.

isConsumed

public boolean isConsumed()
True if this event has been consumed.
Overrides:
isConsumed in class java.awt.AWTEvent

consume

public void consume()
Consume this event.
Overrides:
consume in class java.awt.AWTEvent

Jazz API Documentation