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()
-
Constructor Details
-
DefaultMouseManager
public DefaultMouseManager() -
DefaultMouseManager
public DefaultMouseManager(java.util.EnumSet<org.graphstream.ui.view.util.InteractiveElement> types)
-
-
Method Details
-
init
public void init(org.graphstream.ui.graphicGraph.GraphicGraph graph, org.graphstream.ui.view.View view)- Specified by:
init
in interfaceorg.graphstream.ui.view.util.MouseManager
-
getManagedTypes
public java.util.EnumSet<org.graphstream.ui.view.util.InteractiveElement> getManagedTypes()- Specified by:
getManagedTypes
in interfaceorg.graphstream.ui.view.util.MouseManager
-
release
public void release()- Specified by:
release
in interfaceorg.graphstream.ui.view.util.MouseManager
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent event)- Specified by:
mouseClicked
in interfacejava.awt.event.MouseListener
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent event)- Specified by:
mousePressed
in interfacejava.awt.event.MouseListener
-
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent event)- Specified by:
mouseDragged
in interfacejava.awt.event.MouseMotionListener
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent event)- Specified by:
mouseReleased
in interfacejava.awt.event.MouseListener
-
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent event)- Specified by:
mouseEntered
in interfacejava.awt.event.MouseListener
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent event)- Specified by:
mouseExited
in interfacejava.awt.event.MouseListener
-
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent event)- Specified by:
mouseMoved
in interfacejava.awt.event.MouseMotionListener
-