Package diva.canvas.event
Class LayerMouseAdapter
- java.lang.Object
-
- diva.canvas.event.LayerMouseAdapter
-
- All Implemented Interfaces:
LayerListener
,LayerMotionListener
,java.util.EventListener
public class LayerMouseAdapter extends java.lang.Object implements LayerListener, LayerMotionListener
An object which wraps a mouse listener and makes it compatible with the Diva canvas, sending it mouse events in the local coordinate system. XXX haven't translated it yet.- Version:
- $Id$
- Author:
- Michael Shilman
-
-
Constructor Summary
Constructors Constructor Description LayerMouseAdapter(java.awt.event.MouseListener ml, java.awt.event.MouseMotionListener mml)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MouseFilter
getMouseFilter()
void
mouseClicked(LayerEvent e)
Invoked when the mouse is clicked on a layer or figure.void
mouseDragged(LayerEvent e)
Invoked when the mouse moves while the button is still held down.void
mouseEntered(LayerEvent e)
Invoked when the mouse enters a layer or figure.void
mouseExited(LayerEvent e)
Invoked when the mouse exits a layer or figure.void
mouseMoved(LayerEvent e)
Invoked when the mouse moves while over a layer or figure.void
mousePressed(LayerEvent e)
Invoked when the mouse is pressed on a layer or figure.void
mouseReleased(LayerEvent e)
Invoked when the mouse is released on a layer or figure.void
setMouseFilter(MouseFilter f)
-
-
-
Method Detail
-
getMouseFilter
public MouseFilter getMouseFilter()
-
mouseClicked
public void mouseClicked(LayerEvent e)
Description copied from interface:LayerListener
Invoked when the mouse is clicked on a layer or figure.- Specified by:
mouseClicked
in interfaceLayerListener
- Parameters:
e
- The event
-
mousePressed
public void mousePressed(LayerEvent e)
Description copied from interface:LayerListener
Invoked when the mouse is pressed on a layer or figure.- Specified by:
mousePressed
in interfaceLayerListener
- Parameters:
e
- The event
-
mouseDragged
public void mouseDragged(LayerEvent e)
Description copied from interface:LayerListener
Invoked when the mouse moves while the button is still held down.- Specified by:
mouseDragged
in interfaceLayerListener
- Parameters:
e
- The event
-
mouseMoved
public void mouseMoved(LayerEvent e)
Description copied from interface:LayerMotionListener
Invoked when the mouse moves while over a layer or figure.- Specified by:
mouseMoved
in interfaceLayerMotionListener
- Parameters:
e
- The event
-
mouseReleased
public void mouseReleased(LayerEvent e)
Description copied from interface:LayerListener
Invoked when the mouse is released on a layer or figure.- Specified by:
mouseReleased
in interfaceLayerListener
- Parameters:
e
- The event
-
mouseEntered
public void mouseEntered(LayerEvent e)
Description copied from interface:LayerMotionListener
Invoked when the mouse enters a layer or figure.- Specified by:
mouseEntered
in interfaceLayerMotionListener
- Parameters:
e
- The event
-
mouseExited
public void mouseExited(LayerEvent e)
Description copied from interface:LayerMotionListener
Invoked when the mouse exits a layer or figure.- Specified by:
mouseExited
in interfaceLayerMotionListener
- Parameters:
e
- The event
-
setMouseFilter
public void setMouseFilter(MouseFilter f)
-
-