Class EditingModalGraphMouse<V,​E>

    • Constructor Detail

      • 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