Class VisualGraphPluggableGraphMouse<V extends VisualVertex,​E extends VisualEdge<V>>

  • Type Parameters:
    V - the vertex type
    E - the edge type
    All Implemented Interfaces:
    edu.uci.ics.jung.visualization.VisualizationViewer.GraphMouse, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
    Direct Known Subclasses:
    VisualGraphSatelliteGraphMouse

    public class VisualGraphPluggableGraphMouse<V extends VisualVertex,​E extends VisualEdge<V>>
    extends java.lang.Object
    implements edu.uci.ics.jung.visualization.VisualizationViewer.GraphMouse
    This is the class that controls which mouse plugins get installed into the graph.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.concurrent.CopyOnWriteArrayList<edu.uci.ics.jung.visualization.control.GraphMousePlugin> mousePlugins  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(edu.uci.ics.jung.visualization.control.GraphMousePlugin p)  
      protected void addPlugins()  
      void dispose()  
      void mouseClicked​(java.awt.event.MouseEvent e)  
      void mouseDragged​(java.awt.event.MouseEvent e)  
      void mouseEntered​(java.awt.event.MouseEvent e)  
      void mouseExited​(java.awt.event.MouseEvent e)  
      void mouseMoved​(java.awt.event.MouseEvent e)  
      void mousePressed​(java.awt.event.MouseEvent e)  
      void mouseReleased​(java.awt.event.MouseEvent e)  
      void mouseWheelMoved​(java.awt.event.MouseWheelEvent e)  
      void prepend​(edu.uci.ics.jung.visualization.control.GraphMousePlugin p)
      Places the given plugin at the front of the list
      void remove​(edu.uci.ics.jung.visualization.control.GraphMousePlugin p)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mousePlugins

        protected java.util.concurrent.CopyOnWriteArrayList<edu.uci.ics.jung.visualization.control.GraphMousePlugin> mousePlugins
    • Constructor Detail

      • VisualGraphPluggableGraphMouse

        public VisualGraphPluggableGraphMouse()
    • Method Detail

      • addPlugins

        protected void addPlugins()
      • prepend

        public void prepend​(edu.uci.ics.jung.visualization.control.GraphMousePlugin p)
        Places the given plugin at the front of the list
        Parameters:
        p - the mouse plugin to prepend
      • add

        public void add​(edu.uci.ics.jung.visualization.control.GraphMousePlugin p)
      • remove

        public void remove​(edu.uci.ics.jung.visualization.control.GraphMousePlugin p)
      • dispose

        public void dispose()
      • mouseClicked

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

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

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

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

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

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

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

        public void mouseWheelMoved​(java.awt.event.MouseWheelEvent e)
        Specified by:
        mouseWheelMoved in interface java.awt.event.MouseWheelListener