public class ShapeEvent
extends java.util.EventObject
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
int |
getIndex() |
java.lang.String |
getOldName() |
Shape |
getShape() |
public ShapeEvent(java.lang.Object source, Shape shape, int index, java.lang.String oldName)
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.public ShapeEvent(java.lang.Object source, Shape shape, int index)
public int getIndex()
public java.lang.String getOldName()
public Shape getShape()