|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaxodraw.gui.JaxoCanvasEventListener
public class JaxoCanvasEventListener
A listener to process mouse events that happen on the canvas.
Constructor Summary | |
---|---|
JaxoCanvasEventListener(JaxoCanvas canvas)
Constructor. |
Method Summary | |
---|---|
void |
mouseClicked(MouseEvent e)
The action to be taken when the mouse is clicked on the canvas. |
void |
mouseDragged(MouseEvent e)
The action to be taken when the mouse is dragged on the canvas. |
void |
mouseEntered(MouseEvent e)
Process the event when the mouse enters the canvas. |
void |
mouseExited(MouseEvent e)
Process the event when the mouse exits the canvas. |
void |
mouseMoved(MouseEvent e)
Process the event when the mouse is moved on the canvas. |
void |
mousePressed(MouseEvent e)
The action to be taken when the mouse is pressed on the canvas. |
void |
mouseReleased(MouseEvent e)
The action to be taken when the mouse is released on the canvas. |
void |
propertyChange(PropertyChangeEvent evt)
|
void |
setMode(int mode)
Set the current editing mode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JaxoCanvasEventListener(JaxoCanvas canvas)
canvas
- the canvas
. Not null.Method Detail |
---|
public void setMode(int mode)
mode
- the current editing mode.public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
e
- The corresponding mouse event.public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
e
- The corresponding mouse event.public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
e
- The corresponding mouse event.public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
e
- The mouse event to process.public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
e
- The mouse event to process.public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
e
- The corresponding mouse event.public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
e
- The mouse event to process.public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |