public class JaxoCanvasEventListener
extends java.lang.Object
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.beans.PropertyChangeListener
Constructor and Description |
---|
JaxoCanvasEventListener(JaxoCanvas canvas)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
mouseClicked(java.awt.event.MouseEvent e)
The action to be taken when the mouse is clicked on the canvas.
|
void |
mouseDragged(java.awt.event.MouseEvent e)
The action to be taken when the mouse is dragged on the canvas.
|
void |
mouseEntered(java.awt.event.MouseEvent e)
Process the event when the mouse enters the canvas.
|
void |
mouseExited(java.awt.event.MouseEvent e)
Process the event when the mouse exits the canvas.
|
void |
mouseMoved(java.awt.event.MouseEvent e)
Process the event when the mouse is moved on the canvas.
|
void |
mousePressed(java.awt.event.MouseEvent e)
The action to be taken when the mouse is pressed on the canvas.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
The action to be taken when the mouse is released on the canvas.
|
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
void |
setMode(int mode)
Set the current editing mode.
|
public JaxoCanvasEventListener(JaxoCanvas canvas)
canvas
- the canvas
. Not null.public void setMode(int mode)
mode
- the current editing mode.public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
e
- The corresponding mouse event.public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
e
- The corresponding mouse event.public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
e
- The corresponding mouse event.public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
e
- The mouse event to process.public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
e
- The mouse event to process.public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
e
- The corresponding mouse event.public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
e
- The mouse event to process.public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
Licensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.