Class LensTranslatingGraphMousePlugin

All Implemented Interfaces:
GraphMousePlugin, MouseListener, MouseMotionListener, EventListener

public class LensTranslatingGraphMousePlugin extends TranslatingGraphMousePlugin implements MouseListener, MouseMotionListener
Extends TranslatingGraphMousePlugin and adds the capability to drag and resize the viewing lens in the graph view. Mouse1 in the center moves the lens, mouse1 on the edge resizes the lens. The default mouse button and modifiers can be overridden in the constructor.
  • Field Details

    • dragOnLens

      protected boolean dragOnLens
    • dragOnEdge

      protected boolean dragOnEdge
    • edgeOffset

      protected double edgeOffset
  • Constructor Details

    • LensTranslatingGraphMousePlugin

      public LensTranslatingGraphMousePlugin()
      create an instance with default modifiers
    • LensTranslatingGraphMousePlugin

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