Class EditingModalGraphMouse<V,E>

All Implemented Interfaces:
ModalGraphMouse, VisualizationViewer.GraphMouse, MouseListener, MouseMotionListener, MouseWheelListener, ItemSelectable, EventListener

public class EditingModalGraphMouse<V,E> extends AbstractModalGraphMouse implements ModalGraphMouse, ItemSelectable
  • Field Details

  • Constructor Details

    • EditingModalGraphMouse

      public EditingModalGraphMouse(RenderContext<V,E> rc, com.google.common.base.Supplier<V> vertexFactory, com.google.common.base.Supplier<E> edgeFactory)
      Creates an instance with the specified rendering context and vertex/edge factories, and with default zoom in/out values of 1.1 and 1/1.1.
      Parameters:
      rc - the rendering context
      vertexFactory - used to construct vertices
      edgeFactory - used to construct edges
    • EditingModalGraphMouse

      public EditingModalGraphMouse(RenderContext<V,E> rc, com.google.common.base.Supplier<V> vertexFactory, com.google.common.base.Supplier<E> edgeFactory, float in, float out)
      Creates an instance with the specified rendering context and vertex/edge factories, and with the specified zoom in/out values.
      Parameters:
      rc - the rendering context
      vertexFactory - used to construct vertices
      edgeFactory - used to construct edges
      in - amount to zoom in by for each action
      out - amount to zoom out by for each action
  • Method Details