public class FigureChangedEvent extends EventObject
Draw
instance.Modifier and Type | Field and Description |
---|---|
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.
|
source
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
LayerEvent |
getLayerEvent()
Return the LayerEvent that was associated with the change.
|
int |
getType()
Return type of event.
|
getSource, toString
public static final int CREATED
public static final int REMOVED
public static final int CHANGED
protected int type
protected LayerEvent layerEvent
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.public int getType()
public LayerEvent getLayerEvent()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.