Package mgui.interfaces.shapes.util
Class ShapeEvent
java.lang.Object
java.util.EventObject
mgui.interfaces.shapes.util.ShapeEvent
- All Implemented Interfaces:
java.io.Serializable
public class ShapeEvent
extends java.util.EventObject
Event on an InterfaceShape object.
The following events are defined by the
EventType
enum:
- General
- ShapeAdded
- ShapeRemoved
- ShapeModified
- ShapeSetModified
- AttributeModified
- ShapeDestroyed
- ShapeInserted
- ShapeMoved
- TextureModified
- SectionAdded
- SectionRemoved
- VertexColumnAdded
- VertexColumnRemoved
- VertexColumnChanged
- VertexColumnRenamed
- ClipModified
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShapeEvent.EventType
-
Field Summary
Fields Modifier and Type Field Description java.util.ArrayList<ShapeListener>
already_responded
ShapeEvent.EventType
eventType
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
Constructors Constructor Description ShapeEvent(InterfaceShape thisShape, ShapeEvent.EventType type)
ShapeEvent(InterfaceShape thisShape, ShapeEvent.EventType type, boolean modifies_shape_set)
-
Method Summary
Modifier and Type Method Description boolean
alreadyResponded(ShapeListener listener)
void
consume()
InterfaceShape
getShape()
boolean
isConsumed()
boolean
modifiesShapeSet()
void
responded(ShapeListener listener)
void
setModifiesShapeSet(boolean b)
void
setShape(InterfaceShape shape)
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 Details
-
already_responded
-
eventType
-
-
Constructor Details
-
ShapeEvent
-
ShapeEvent
-
-
Method Details
-
setShape
-
getShape
-
setModifiesShapeSet
public void setModifiesShapeSet(boolean b) -
modifiesShapeSet
public boolean modifiesShapeSet() -
responded
-
alreadyResponded
-
consume
public void consume() -
isConsumed
public boolean isConsumed()
-