|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectobjectdraw.AWTWindowControllerListener
class AWTWindowControllerListener
Listener class designed to pass mouse events to simplified event handling methods associated with a WindowController.
Constructor Summary | |
---|---|
AWTWindowControllerListener(AWTWindowController controller,
DrawingCanvas canvas)
Create a listener that will forward mouse events to specialized WindowController event handling methods. |
Method Summary | |
---|---|
void |
mouseClicked(MouseEvent e)
Invoked when the mouse has been clicked on the canvas. |
void |
mouseDragged(MouseEvent e)
Invoked when a mouse button is pressed on the canvas and then dragged. |
void |
mouseEntered(MouseEvent e)
Invoked when the mouse enters the canvas. |
void |
mouseExited(MouseEvent e)
Invoked when the mouse exits the canvas. |
void |
mouseMoved(MouseEvent e)
Invoked when the mouse button has been moved on a component (with no buttons no down). |
void |
mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on the canvas. |
void |
mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on the canvas. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AWTWindowControllerListener(AWTWindowController controller, DrawingCanvas canvas)
controller
- the WindowController that will handle mouse events.canvas
- the DrawingCanvas associated with controller.Method Detail |
---|
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
e
- the mouse eventpublic void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
e
- the mouse eventpublic void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
e
- the mouse eventpublic void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
e
- the mouse eventpublic void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
e
- the mouse eventpublic void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
e
- the mouse eventpublic void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
e
- the mouse event
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |