Class VisualGraphTranslatingGraphMousePlugin<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.control.GraphMousePlugin, VisualGraphMousePlugin<V,​E>, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

    public class VisualGraphTranslatingGraphMousePlugin<V extends VisualVertex,​E extends VisualEdge<V>>
    extends edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
    implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener, VisualGraphMousePlugin<V,​E>
    Note: this class is based on TranslatingGraphMousePlugin.

    TranslatingGraphMousePlugin uses a MouseButtonOne press and drag gesture to translate the graph display in the x and y direction. The default MouseButtonOne modifier can be overridden to cause a different mouse gesture to translate the display.

    • Constructor Detail

      • VisualGraphTranslatingGraphMousePlugin

        public VisualGraphTranslatingGraphMousePlugin()
      • VisualGraphTranslatingGraphMousePlugin

        public VisualGraphTranslatingGraphMousePlugin​(int modifiers)
    • Method Detail

      • checkModifiers

        public boolean checkModifiers​(java.awt.event.MouseEvent e)
        Specified by:
        checkModifiers in interface edu.uci.ics.jung.visualization.control.GraphMousePlugin
        Overrides:
        checkModifiers in class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
      • 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
      • mouseDragged

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

        public void mouseClicked​(java.awt.event.MouseEvent e)
        Specified by:
        mouseClicked 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
      • mouseMoved

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