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 MouseFiltergetMouseFilter()voidmouseClicked(LayerEvent e)Invoked when the mouse is clicked on a layer or figure.voidmouseDragged(LayerEvent e)Invoked when the mouse moves while the button is still held down.voidmouseEntered(LayerEvent e)Invoked when the mouse enters a layer or figure.voidmouseExited(LayerEvent e)Invoked when the mouse exits a layer or figure.voidmouseMoved(LayerEvent e)Invoked when the mouse moves while over a layer or figure.voidmousePressed(LayerEvent e)Invoked when the mouse is pressed on a layer or figure.voidmouseReleased(LayerEvent e)Invoked when the mouse is released on a layer or figure.voidsetMouseFilter(MouseFilter f)
-
-
-
Method Detail
-
getMouseFilter
public MouseFilter getMouseFilter()
-
mouseClicked
public void mouseClicked(LayerEvent e)
Description copied from interface:LayerListenerInvoked when the mouse is clicked on a layer or figure.- Specified by:
mouseClickedin interfaceLayerListener- Parameters:
e- The event
-
mousePressed
public void mousePressed(LayerEvent e)
Description copied from interface:LayerListenerInvoked when the mouse is pressed on a layer or figure.- Specified by:
mousePressedin interfaceLayerListener- Parameters:
e- The event
-
mouseDragged
public void mouseDragged(LayerEvent e)
Description copied from interface:LayerListenerInvoked when the mouse moves while the button is still held down.- Specified by:
mouseDraggedin interfaceLayerListener- Parameters:
e- The event
-
mouseMoved
public void mouseMoved(LayerEvent e)
Description copied from interface:LayerMotionListenerInvoked when the mouse moves while over a layer or figure.- Specified by:
mouseMovedin interfaceLayerMotionListener- Parameters:
e- The event
-
mouseReleased
public void mouseReleased(LayerEvent e)
Description copied from interface:LayerListenerInvoked when the mouse is released on a layer or figure.- Specified by:
mouseReleasedin interfaceLayerListener- Parameters:
e- The event
-
mouseEntered
public void mouseEntered(LayerEvent e)
Description copied from interface:LayerMotionListenerInvoked when the mouse enters a layer or figure.- Specified by:
mouseEnteredin interfaceLayerMotionListener- Parameters:
e- The event
-
mouseExited
public void mouseExited(LayerEvent e)
Description copied from interface:LayerMotionListenerInvoked when the mouse exits a layer or figure.- Specified by:
mouseExitedin interfaceLayerMotionListener- Parameters:
e- The event
-
setMouseFilter
public void setMouseFilter(MouseFilter f)
-
-