|
JHotDraw 7.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ToolListener
Interface implemented by observers of 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
.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void toolStarted(ToolEvent event)
void toolDone(ToolEvent event)
void areaInvalidated(ToolEvent e)
void boundsInvalidated(ToolEvent e)
|
Copyright 1996-2010 (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 |