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

    • Constructor Detail

      • VisualGraphPickingGraphMousePlugin

        public VisualGraphPickingGraphMousePlugin()
    • 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)
        Description copied from class: JungPickingGraphMousePlugin
        For primary modifiers (default, MouseButton1): pick a single Vertex or Edge that is under the mouse pointer. If no Vertex or edge is under the pointer, unselect all picked Vertices and edges, and set up to draw a rectangle for multiple selection of contained Vertices. For additional selection (default Shift+MouseButton1): Add to the selection, a single Vertex or Edge that is under the mouse pointer. If a previously picked Vertex or Edge is under the pointer, it is un-picked. If no vertex or Edge is under the pointer, set up to draw a multiple selection rectangle (as above) but do not unpick previously picked elements.
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
        Overrides:
        mousePressed in class JungPickingGraphMousePlugin<V extends VisualVertex,​E extends VisualEdge<V>>
        Parameters:
        e - the event
      • mouseDragged

        public void mouseDragged​(java.awt.event.MouseEvent e)
        Description copied from class: JungPickingGraphMousePlugin
        If the mouse is over a picked vertex, drag all picked vertices with the mouse. If the mouse is not over a Vertex, draw the rectangle to select multiple Vertices
        Specified by:
        mouseDragged in interface java.awt.event.MouseMotionListener
        Overrides:
        mouseDragged in class JungPickingGraphMousePlugin<V extends VisualVertex,​E extends VisualEdge<V>>