Package diva.canvas.event
Class LayerAdapter
- java.lang.Object
-
- diva.canvas.event.LayerAdapter
-
- All Implemented Interfaces:
LayerListener
,java.util.EventListener
- Direct Known Subclasses:
BasicGraphFrame.MousePressedLayerAdapter
public class LayerAdapter extends java.lang.Object implements LayerListener
An adapter for layer listeners. The methods in this class are empty -- the class is provided to make it easier to produce anonymous LayerListeners.- Version:
- $Id$
- Author:
- John Reekie
-
-
Constructor Summary
Constructors Constructor Description LayerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
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.
-
-
-
Method Detail
-
mouseDragged
public void mouseDragged(LayerEvent e)
Invoked when the mouse moves while the button is still held down.- Specified by:
mouseDragged
in interfaceLayerListener
- Parameters:
e
- The event
-
mousePressed
public void mousePressed(LayerEvent e)
Invoked when the mouse is pressed on a layer or figure.- Specified by:
mousePressed
in interfaceLayerListener
- Parameters:
e
- The event
-
mouseReleased
public void mouseReleased(LayerEvent e)
Invoked when the mouse is released on a layer or figure.- Specified by:
mouseReleased
in interfaceLayerListener
- Parameters:
e
- The event
-
mouseClicked
public void mouseClicked(LayerEvent e)
Invoked when the mouse is clicked on a layer or figure.- Specified by:
mouseClicked
in interfaceLayerListener
- Parameters:
e
- The event
-
-