|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
uk.ac.starlink.diva.FigureChangedEvent
public class FigureChangedEvent
FigureChangedEvent defines an event that describes a change to a
figure drawn on a Draw
instance.
Field Summary | |
---|---|
static int |
CHANGED
Used when figure is changed (transformed). |
static int |
CREATED
Used when a figure is created. |
protected LayerEvent |
layerEvent
The LayerEvent associated with the change to the Figure. |
static int |
REMOVED
Used when a figure is removed. |
protected int |
type
The type of event. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
FigureChangedEvent(Object source,
int type)
Constructs a FigureChangedEvent object, suitable when no LayerEvent is associated. |
|
FigureChangedEvent(Object source,
int type,
LayerEvent le)
Constructs a FigureChangedEvent object. |
Method Summary | |
---|---|
LayerEvent |
getLayerEvent()
Return the LayerEvent that was associated with the change. |
int |
getType()
Return type of event. |
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 |
---|
public static final int CREATED
public static final int REMOVED
public static final int CHANGED
protected int type
protected LayerEvent layerEvent
Constructor Detail |
---|
public FigureChangedEvent(Object source, int type, LayerEvent le)
source
- the source Figure.type
- an int specifying CREATED, REMOVED or CHANGED.le
- the LayerEvent associated with the Figure change.public FigureChangedEvent(Object source, int type)
source
- the source Figure.type
- an int specifying CREATED, REMOVED or CHANGED.Method Detail |
---|
public int getType()
public LayerEvent getLayerEvent()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |