Class DefaultMouseManager

java.lang.Object
org.graphstream.ui.swing_viewer.util.DefaultMouseManager
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener, javax.swing.event.MouseInputListener, org.graphstream.ui.view.util.MouseManager
Direct Known Subclasses:
MouseOverMouseManager

public class DefaultMouseManager
extends java.lang.Object
implements javax.swing.event.MouseInputListener, org.graphstream.ui.view.util.MouseManager
  • Constructor Summary

    Constructors 
    Constructor Description
    DefaultMouseManager()  
    DefaultMouseManager​(java.util.EnumSet<org.graphstream.ui.view.util.InteractiveElement> types)  
  • Method Summary

    Modifier and Type Method Description
    java.util.EnumSet<org.graphstream.ui.view.util.InteractiveElement> getManagedTypes()  
    void init​(org.graphstream.ui.graphicGraph.GraphicGraph graph, org.graphstream.ui.view.View view)  
    void mouseClicked​(java.awt.event.MouseEvent event)  
    void mouseDragged​(java.awt.event.MouseEvent event)  
    void mouseEntered​(java.awt.event.MouseEvent event)  
    void mouseExited​(java.awt.event.MouseEvent event)  
    void mouseMoved​(java.awt.event.MouseEvent event)  
    void mousePressed​(java.awt.event.MouseEvent event)  
    void mouseReleased​(java.awt.event.MouseEvent event)  
    void release()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • init

      public void init​(org.graphstream.ui.graphicGraph.GraphicGraph graph, org.graphstream.ui.view.View view)
      Specified by:
      init in interface org.graphstream.ui.view.util.MouseManager
    • getManagedTypes

      public java.util.EnumSet<org.graphstream.ui.view.util.InteractiveElement> getManagedTypes()
      Specified by:
      getManagedTypes in interface org.graphstream.ui.view.util.MouseManager
    • release

      public void release()
      Specified by:
      release in interface org.graphstream.ui.view.util.MouseManager
    • mouseClicked

      public void mouseClicked​(java.awt.event.MouseEvent event)
      Specified by:
      mouseClicked in interface java.awt.event.MouseListener
    • mousePressed

      public void mousePressed​(java.awt.event.MouseEvent event)
      Specified by:
      mousePressed in interface java.awt.event.MouseListener
    • mouseDragged

      public void mouseDragged​(java.awt.event.MouseEvent event)
      Specified by:
      mouseDragged in interface java.awt.event.MouseMotionListener
    • mouseReleased

      public void mouseReleased​(java.awt.event.MouseEvent event)
      Specified by:
      mouseReleased in interface java.awt.event.MouseListener
    • mouseEntered

      public void mouseEntered​(java.awt.event.MouseEvent event)
      Specified by:
      mouseEntered in interface java.awt.event.MouseListener
    • mouseExited

      public void mouseExited​(java.awt.event.MouseEvent event)
      Specified by:
      mouseExited in interface java.awt.event.MouseListener
    • mouseMoved

      public void mouseMoved​(java.awt.event.MouseEvent event)
      Specified by:
      mouseMoved in interface java.awt.event.MouseMotionListener