|
JHotDraw 7.3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FigureListener
Interface implemented by observers of 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
.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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)
|
Copyright 1996-2009 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |