org.apache.batik.gvt.event
Class GraphicsNodePaintEvent

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

public class GraphicsNodePaintEvent
extends GraphicsNodeEvent

An event which indicates that a modification occurred in a graphics node. The node has to be repainted.

See Also:
Serialized Form

Field Summary
static int GRAPHICS_NODE_MODIFIED
          The id for the "graphicsNodeModified" event.
protected  java.awt.geom.Rectangle2D oldBounds
          The old bounds of the source.
 
Fields inherited from class org.apache.batik.gvt.event.GraphicsNodeEvent
id
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GraphicsNodePaintEvent(GraphicsNode source, int id, java.awt.geom.Rectangle2D oldBounds)
          Constructs a new graphics node paint event.
 
Method Summary
 java.awt.geom.Rectangle2D getOldBounds()
          Returns the old bounds of the modified graphics node.
 
Methods inherited from class org.apache.batik.gvt.event.GraphicsNodeEvent
clone, consume, getGraphicsNode, getID, isConsumed
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GRAPHICS_NODE_MODIFIED

public static final int GRAPHICS_NODE_MODIFIED
The id for the "graphicsNodeModified" event.

oldBounds

protected java.awt.geom.Rectangle2D oldBounds
The old bounds of the source.
Constructor Detail

GraphicsNodePaintEvent

public GraphicsNodePaintEvent(GraphicsNode source,
                              int id,
                              java.awt.geom.Rectangle2D oldBounds)
Constructs a new graphics node paint event.
Parameters:
source - the graphics node where the event originated
id - the id of this event
oldBounds - the old bounds of the graphics node
Method Detail

getOldBounds

public java.awt.geom.Rectangle2D getOldBounds()
Returns the old bounds of the modified graphics node.


Copyright © 2000 Apache Software Foundation. All Rights Reserved.