public interface FigureListener
extends java.util.EventListener
Figure
objects.
Observer
State changes of figures can be observed by other objects. Specifically
CompositeFigure
observes area invalidations and remove requests
of its child figures. DrawingView
also observes area invalidations
of its drawing object.
Subject: Figure
;
Observer: FigureListener
;
Event: FigureEvent
;
Concrete Observer: CompositeFigure
,
DrawingView
.
Modifier and Type | Method and Description |
---|---|
void |
areaInvalidated(FigureEvent e)
Sent when the drawing area used by the figure needs to be repainted.
|
void |
attributeChanged(FigureEvent e)
Sent when an attribute of the figure has changed.
|
void |
figureAdded(FigureEvent e)
Sent when a figure was added to a drawing.
|
void |
figureChanged(FigureEvent e)
Sent when the geometry (for example the bounds) of the figure has changed.
|
void |
figureHandlesChanged(FigureEvent e)
Sent when handles of a Figure have been added, removed or replaced.
|
void |
figureRemoved(FigureEvent e)
Sent when a figure was removed from a drawing.
|
void |
figureRequestRemove(FigureEvent e)
Sent when the figure requests to be removed from a drawing.
|
void areaInvalidated(FigureEvent e)
void attributeChanged(FigureEvent e)
void figureHandlesChanged(FigureEvent e)
DrawingViews listen to this event to repopulate the Handles.
A Figure should not fire this event, if just the state or the location of Handle has changed.
void figureChanged(FigureEvent e)
void figureAdded(FigureEvent e)
void figureRemoved(FigureEvent e)
void figureRequestRemove(FigureEvent e)