Class AnimatedPickingGraphMousePlugin<V,E>

java.lang.Object
edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
edu.uci.ics.jung.visualization.control.AnimatedPickingGraphMousePlugin<V,E>
All Implemented Interfaces:
GraphMousePlugin, MouseListener, MouseMotionListener, EventListener
Direct Known Subclasses:
SatelliteAnimatedPickingGraphMousePlugin

public class AnimatedPickingGraphMousePlugin<V,E> extends AbstractGraphMousePlugin implements MouseListener, MouseMotionListener
AnimatedPickingGraphMousePlugin supports the picking of one Graph Vertex. When the mouse is released, the graph is translated so that the picked Vertex is moved to the center of the view. This translation is conducted in an animation Thread so that the graph slides to its new position
  • Field Details

    • vertex

      protected V vertex
      the picked Vertex
  • Constructor Details

    • AnimatedPickingGraphMousePlugin

      public AnimatedPickingGraphMousePlugin()
      Creates an instance with default modifiers of BUTTON1_MASK and CTRL_MASK
    • AnimatedPickingGraphMousePlugin

      public AnimatedPickingGraphMousePlugin(int selectionModifiers)
      Creates an instance with the specified mouse event modifiers.
      Parameters:
      selectionModifiers - the mouse event modifiers to use.
  • Method Details