Class EditingGraphMousePlugin<V,​E>

    • Field Detail

      • modifiers

        protected int modifiers
    • Constructor Detail

      • EditingGraphMousePlugin

        public EditingGraphMousePlugin​(Supplier<V> vertexFactory,
                                       Supplier<E> edgeFactory)
        Creates an instance and prepares shapes for visual effects, using the default modifiers of BUTTON1_DOWN_MASK.
        Parameters:
        vertexFactory - for creating vertices
        edgeFactory - for creating edges
      • EditingGraphMousePlugin

        public EditingGraphMousePlugin​(int modifiers,
                                       Supplier<V> vertexFactory,
                                       Supplier<E> edgeFactory)
        Creates an instance and prepares shapes for visual effects.
        Parameters:
        modifiers - the mouse event modifiers to use
        vertexFactory - for creating vertices
        edgeFactory - for creating edges