Class ViewTranslatingGraphMousePlugin

java.lang.Object
edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
edu.uci.ics.jung.visualization.control.ViewTranslatingGraphMousePlugin
All Implemented Interfaces:
GraphMousePlugin, MouseListener, MouseMotionListener, EventListener

public class ViewTranslatingGraphMousePlugin extends AbstractGraphMousePlugin implements MouseListener, MouseMotionListener
ViewTranslatingGraphMousePlugin uses a MouseButtonOne press and drag gesture to translate the graph display in the x and y direction by changing the AffineTransform applied to the Graphics2D. The default MouseButtonOne modifier can be overridden to cause a different mouse gesture to translate the display.
  • Constructor Details

    • ViewTranslatingGraphMousePlugin

      public ViewTranslatingGraphMousePlugin()
    • ViewTranslatingGraphMousePlugin

      public ViewTranslatingGraphMousePlugin(int modifiers)
      create an instance with passed modifer value
      Parameters:
      modifiers - the mouse event modifier to activate this function
  • Method Details