public interface FigureObserver
Details:
A FigureObserver
monitors a Figure
for changes.
Instance of this class are subscribed to Figure
s as listeners via Figure.subscribe(FigureObserver)
.
Whenever a Figure
changes, all subscribed FigureObservers
are notified via one or more of the callbacks defined in this interface.
Modifier and Type | Method and Description |
---|---|
void |
doodleAdded(Figure iFigure,
Doodle iDoodle)
Doodle was added to figure.
|
void |
doodleChanged(Figure iFigure,
Doodle iDoodle)
Doodle has changed.
|
void |
doodleRemoved(Figure iFigure,
Doodle iDoodle)
Doodle was removed from figure.
|
void doodleChanged(Figure iFigure, Doodle iDoodle)
Details:
doodleChanged
notifies this listener that the given doodle has changed, and that the view should redraw the area covered by it.
iFigure
- figure whose doodle changediDoodle
- doodle that changedvoid doodleAdded(Figure iFigure, Doodle iDoodle)
Details:
doodleAdded
notifies this listener that a doodle has been added to the figure.
This callback will always be followed by a call to doodleChanged(Figure, Doodle)
, so it is not usually critical to respond to this message.
iFigure
- affected figureiDoodle
- added doodlevoid doodleRemoved(Figure iFigure, Doodle iDoodle)
Details:
doodleRemoved
notifies this listener that a doodle was removed from the figure.
This callback will always be followed by a call to doodleChanged(Figure, Doodle)
, so it is not critical to respond to this message.
iFigure
- affected figureiDoodle
- removed doodleCopyright © 2013. All Rights Reserved.