org.apache.batik.gvt.event
Class GraphicsNodeChangeEvent

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

public class GraphicsNodeChangeEvent
extends GraphicsNodeEvent

An event which indicates that a change action occurred on a graphics node.

See Also:
Serialized Form

Field Summary
static int CHANGE_COMPLETED
          The id for the "changeCompleted" event.
static int CHANGE_STARTED
          The id for the "changeStarted" event.
protected  java.awt.geom.Rectangle2D from
           
protected  java.awt.geom.Rectangle2D to
           
 
Fields inherited from class org.apache.batik.gvt.event.GraphicsNodeEvent
id
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GraphicsNodeChangeEvent(GraphicsNode source, int id)
          Constructs a new graphics node event with the specified source and ID.
 
Method Summary
 java.awt.geom.Rectangle2D getFrom()
           
 java.awt.geom.Rectangle2D getTo()
           
 void setFrom(java.awt.geom.Rectangle2D from)
           
 void setTo(java.awt.geom.Rectangle2D to)
           
 
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

CHANGE_STARTED

public static final int CHANGE_STARTED
The id for the "changeStarted" event. This change event occurs when a change has started on a graphics node (but no changes have occured on the graphics node it's self).

CHANGE_COMPLETED

public static final int CHANGE_COMPLETED
The id for the "changeCompleted" event. This change event occurs when a change has completed on a graphics node (all changes have completed on the graphics node it's self).

from

protected java.awt.geom.Rectangle2D from

to

protected java.awt.geom.Rectangle2D to
Constructor Detail

GraphicsNodeChangeEvent

public GraphicsNodeChangeEvent(GraphicsNode source,
                               int id)
Constructs a new graphics node event with the specified source and ID.
Parameters:
source - the graphics node where the event originated
id - the id of this event
Method Detail

setFrom

public void setFrom(java.awt.geom.Rectangle2D from)

setTo

public void setTo(java.awt.geom.Rectangle2D to)

getFrom

public java.awt.geom.Rectangle2D getFrom()

getTo

public java.awt.geom.Rectangle2D getTo()


Copyright © 2002 Apache Software Foundation. All Rights Reserved.