public interface ToolListener
extends java.util.EventListener
Tool
s.
Observer
State changes of tools can be observed by other objects. Specifically
DrawingEditor
observes area invalidations of tools and repaints
its active drawing view accordingly.
Subject: Tool
;
Observer: ToolListener
; Event: ToolEvent
;
Concrete Observer: DrawingEditor
.
Modifier and Type | Method and Description |
---|---|
void |
areaInvalidated(ToolEvent e)
Sent when an area of the drawing view needs to be repainted.
|
void |
boundsInvalidated(ToolEvent e)
Sent when the tool has edited an area outside of the bounds
of the canvas.
|
void |
toolDone(ToolEvent event)
Informs the listener that a tool has done its interaction.
|
void |
toolStarted(ToolEvent event)
Informs the listener that a tool has starteds interacting with a
specific drawing view.
|
void toolStarted(ToolEvent event)
void toolDone(ToolEvent event)
void areaInvalidated(ToolEvent e)
void boundsInvalidated(ToolEvent e)