com.mindfusion.diagramming
Class ShapeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.mindfusion.diagramming.ShapeEvent
All Implemented Interfaces:
java.io.Serializable

public class ShapeEvent
extends java.util.EventObject

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ShapeEvent(java.lang.Object source, Shape shape)
          Initializes a new instance of the ShapeEvent class.
ShapeEvent(java.lang.Object source, Shape shape, int index)
           
ShapeEvent(java.lang.Object source, Shape shape, int index, java.lang.String oldName)
          Initializes a new ShapeEvent instance.
 
Method Summary
 int getIndex()
           
 java.lang.String getOldName()
           
 Shape getShape()
           
 
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
 

Constructor Detail

ShapeEvent

public ShapeEvent(java.lang.Object source,
                  Shape shape,
                  int index,
                  java.lang.String oldName)
Initializes a new ShapeEvent instance.

Parameters:
source - The source of the event.
shape - The Shape related to the event.
index - The zero-based index of the shape within its containing collection.
oldName - The old identifier of the shape.

ShapeEvent

public ShapeEvent(java.lang.Object source,
                  Shape shape,
                  int index)

ShapeEvent

public ShapeEvent(java.lang.Object source,
                  Shape shape)
Initializes a new instance of the ShapeEvent class.

Parameters:
shape - The Shape related to the event.
Method Detail

getIndex

public int getIndex()

getOldName

public java.lang.String getOldName()

getShape

public Shape getShape()