org.graphstream.ui.swingViewer.util
Class DefaultMouseManager

java.lang.Object
  extended by org.graphstream.ui.swingViewer.util.DefaultMouseManager
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener, MouseInputListener, MouseManager

public class DefaultMouseManager
extends Object
implements MouseManager


Constructor Summary
DefaultMouseManager()
           
 
Method Summary
 void init(GraphicGraph graph, View view)
          Make the manager active on the given graph and view.
 void mouseClicked(MouseEvent event)
           
 void mouseDragged(MouseEvent event)
           
 void mouseEntered(MouseEvent event)
           
 void mouseExited(MouseEvent event)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent event)
           
 void mouseReleased(MouseEvent event)
           
 void release()
          Release the links between this manager and the view and the graph.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMouseManager

public DefaultMouseManager()
Method Detail

init

public void init(GraphicGraph graph,
                 View view)
Description copied from interface: MouseManager
Make the manager active on the given graph and view.

Specified by:
init in interface MouseManager
Parameters:
graph - The graph to control.
view - The view to control.

release

public void release()
Description copied from interface: MouseManager
Release the links between this manager and the view and the graph.

Specified by:
release in interface MouseManager

mouseClicked

public void mouseClicked(MouseEvent event)
Specified by:
mouseClicked in interface MouseListener

mousePressed

public void mousePressed(MouseEvent event)
Specified by:
mousePressed in interface MouseListener

mouseDragged

public void mouseDragged(MouseEvent event)
Specified by:
mouseDragged in interface MouseMotionListener

mouseReleased

public void mouseReleased(MouseEvent event)
Specified by:
mouseReleased in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent event)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent event)
Specified by:
mouseExited in interface MouseListener

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener


Copyright © 2012. All Rights Reserved.