Constructor and Description |
---|
NullTool() |
Modifier and Type | Method and Description |
---|---|
void |
activate() |
void |
deactivate() |
void |
keyDown(java.awt.event.KeyEvent evt,
int key)
Handles key down events in the drawing view (KEY_PRESSED events).
|
void |
mouseDown(java.awt.event.MouseEvent e,
int x,
int y)
Handles mouse down events in the drawing view.
|
void |
mouseDrag(java.awt.event.MouseEvent e,
int x,
int y)
Handles mouse drag events in the drawing view (while mouse button is down).
|
void |
mouseMove(java.awt.event.MouseEvent e,
int x,
int y)
Handles mouse moves (while the mouse button is up).
|
void |
mouseUp(java.awt.event.MouseEvent e,
int x,
int y)
Handles mouse up in the drawing view.
|
public void mouseDown(java.awt.event.MouseEvent e, int x, int y)
Tool
public void mouseDrag(java.awt.event.MouseEvent e, int x, int y)
Tool
public void mouseMove(java.awt.event.MouseEvent e, int x, int y)
Tool
public void mouseUp(java.awt.event.MouseEvent e, int x, int y)
Tool
public void activate()
public void deactivate()
public void keyDown(java.awt.event.KeyEvent evt, int key)
Tool
From the book: Flexible, Reliable Software, © CRC Press 2010. Author: Henrik B. Christensen, Aarhus University, Denmark