All Packages Class Hierarchy This Package Previous Next Index
Tools inform their editor when they are done with an interaction by calling the editor's toolDone() method. The Tools are created once and reused. They are initialized/deinitialized with activate()/deactivate().
State
Tool plays the role of the State. In encapsulates all state
specific behavior. DrawingView plays the role of the StateContext.
public abstract void activate()
public abstract void deactivate()
public abstract void mouseDown(MouseEvent e,
int x,
int y)
public abstract void mouseDrag(MouseEvent e,
int x,
int y)
public abstract void mouseUp(MouseEvent e,
int x,
int y)
public abstract void mouseMove(MouseEvent evt,
int x,
int y)
public abstract void keyDown(KeyEvent evt,
int key)
All Packages Class Hierarchy This Package Previous Next Index