org.apache.batik.gvt.event
Class CompositeGraphicsNodeEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.apache.batik.gvt.event.GraphicsNodeEvent
              |
              +--org.apache.batik.gvt.event.CompositeGraphicsNodeEvent
All Implemented Interfaces:
java.io.Serializable

public class CompositeGraphicsNodeEvent
extends GraphicsNodeEvent

A low-level event which indicates that a composite graphics node's contents changed because a graphics node was added or removed.

See Also:
Serialized Form

Field Summary
static int GRAPHICS_NODE_ADDED
          The id for the "graphicsNodeAdded" event.
static int GRAPHICS_NODE_REMOVED
          The id for the "graphicsNodeRemoved" event.
 
Fields inherited from class org.apache.batik.gvt.event.GraphicsNodeEvent
id
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CompositeGraphicsNodeEvent(GraphicsNode source, int id, GraphicsNode child)
          Constructs a new composite graphics node.
 
Method Summary
 GraphicsNode getChild()
          Returns the graphics node that was affected by the event.
 CompositeGraphicsNode getCompositeGraphicsNode()
          Returns the originator of the event.
 
Methods inherited from class org.apache.batik.gvt.event.GraphicsNodeEvent
consume, getGraphicsNode, getID, isConsumed
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GRAPHICS_NODE_ADDED

public static final int GRAPHICS_NODE_ADDED
The id for the "graphicsNodeAdded" event.

GRAPHICS_NODE_REMOVED

public static final int GRAPHICS_NODE_REMOVED
The id for the "graphicsNodeRemoved" event.
Constructor Detail

CompositeGraphicsNodeEvent

public CompositeGraphicsNodeEvent(GraphicsNode source,
                                  int id,
                                  GraphicsNode child)
Constructs a new composite graphics node.
Parameters:
source - the graphics node where the event originated
id - the id of this event
child - the graphics node that was added or removed
Method Detail

getChild

public GraphicsNode getChild()
Returns the graphics node that was affected by the event.
Returns:
the graphics node that was added or removed

getCompositeGraphicsNode

public CompositeGraphicsNode getCompositeGraphicsNode()
Returns the originator of the event.
Returns:
the CompositeGraphicsNode that originated the event


Copyright © 2001 Apache Software Foundation. All Rights Reserved.