|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jdraw.jdraw_ui.CanvasMouseListener
Class CanvasMouseListener is the controlling class for the CanvasWindows. These methods determine the course of action, given the MouseEvent which has occured in this Listener's Window.
| Field Summary | |
protected CanvasWindow |
canvasWindow
A local reference to the companion CanvasWindow object. |
| Constructor Summary | |
CanvasMouseListener(CanvasWindow cWindow)
Construct this with the passed CanvasWindow object by simply setting this.canvasWindow = passed CanvasWindow. |
|
| Method Summary | |
void |
mouseClicked(java.awt.event.MouseEvent e)
Method mouseClicked is functionless as of now. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Method mouseDragged(MouseEvent) determines whether a button is down and as such calls the appropriate method of canvasWindow. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Method mouseEntered is functionless as of now. |
void |
mouseExited(java.awt.event.MouseEvent e)
Method mouseExited is functionless as of now. |
void |
mouseMoved(java.awt.event.MouseEvent e)
Method mouseMoved(MouseEvent) calls canvasWindow.normalDrag. |
void |
mousePressed(java.awt.event.MouseEvent e)
Method mousePressed(MouseEvent) determines which button was clicked and then performs the appropriate method call to canvasWindow. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Method mouseReleased(MouseEvent) determines which button was released and then performs the appropriate method call to canvasWindow. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected CanvasWindow canvasWindow
| Constructor Detail |
public CanvasMouseListener(CanvasWindow cWindow)
cWindow - - The CanvasWindow to be stored in this.canvasWindow.| Method Detail |
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenere - - The MouseEvent which includes this mousePress.public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenere - - The MouseEvent which includes this mouseRelease.public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenere - - The MouseEvent which includes this mouseDragpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenere - - The MouseEvent to be passed to canvasWindow through normalDrag call.public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||