diva.canvas.event
Interface LayerListener

All Superinterfaces:
EventListener
All Known Subinterfaces:
Interactor
All Known Implementing Classes:
AbstractInteractor, ActionInteractor, ArcInteractor, BasicGraphController.NodeCreator, BasicInterpreter, BasicTablePlotter, BoundedDragInteractor, CommandInterpreter, CommandInterpreter.CommandStrokeListener, CompositeInteractor, ConnectorInteractor, DragInteractor, DragRegion, EdgeCreator, EdgeCreator, EdgeInteractor, EdgeInteractor, HighlightInterpreter, LayerAdapter, LayerConsumer, LayerEventMulticaster, LayerMouseAdapter, MeasureBand, MenuCreator, MultiStateInterpreter, NodeDragInteractor, NodeDragInteractor, NodeInteractor, NodeInteractor, PanZoomInterpreter, SelectionDragger, SelectionDragger, SelectionInteractor, SimpleGraphController.NodeCreator, SketchTest2.SketchInteractor, SketchTest3.SketchInteractor, WhiteboardView.SketchInterpreter

public interface LayerListener
extends EventListener

The interface for listeners that respond to mouse clicks and drags. Unlike the AWT MouseListener interface, this interface does not include the enter and leave events, but does include the drag event, for performance reasons.

Version:
$Revision: 1.5 $
Author:
John Reekie

Method Summary
 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

void mouseDragged(LayerEvent e)
Invoked when the mouse moves while the button is still held down.


mousePressed

void mousePressed(LayerEvent e)
Invoked when the mouse is pressed on a layer or figure.


mouseReleased

void mouseReleased(LayerEvent e)
Invoked when the mouse is released on a layer or figure.


mouseClicked

void mouseClicked(LayerEvent e)
Invoked when the mouse is clicked on a layer or figure.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.