Class EdgeController

  • All Implemented Interfaces:
    java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

    public class EdgeController
    extends com.mxgraph.swing.handler.mxConnectionHandler
    Edge controller for creating and managing edges.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ModelContainer modelcontainer
      The model container
      protected boolean reallycommit
      Really commit flag.
      • Fields inherited from class com.mxgraph.swing.handler.mxConnectionHandler

        active, bounds, CONNECT_CURSOR, connectIcon, connectPreview, createTarget, enabled, error, eventSource, first, graphComponent, handleEnabled, handleSize, keepOnTop, marker, resetHandler, select, source
    • Constructor Summary

      Constructors 
      Constructor Description
      EdgeController​(com.mxgraph.swing.mxGraphComponent graphcomponent, ModelContainer modelcontainer)
      Creates the edge controller.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.mxgraph.swing.handler.mxConnectPreview createConnectPreview()
      Creates the preview.
      void mouseReleased​(java.awt.event.MouseEvent e)
      Called when mouse is released.
      java.lang.String validateConnection​(java.lang.Object source, java.lang.Object target)
      Validates a connection.
      • Methods inherited from class com.mxgraph.swing.handler.mxConnectionHandler

        addGraphListeners, addListener, createTargetVertex, getConnecIcon, getConnectPreview, getHandleSize, getMarker, isActive, isConnecting, isCreateTarget, isEnabled, isHandleEnabled, isHighlighting, isKeepOnTop, isSelect, isValidSource, isValidTarget, mouseDragged, mouseMoved, mousePressed, paint, removeGraphListeners, removeListener, removeListener, reset, setBounds, setConnectIcon, setConnectPreview, setCreateTarget, setEnabled, setHandleEnabled, setHandleSize, setKeepOnTop, setMarker, setSelect, start
      • Methods inherited from class com.mxgraph.swing.util.mxMouseAdapter

        mouseClicked, mouseEntered, mouseExited
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • modelcontainer

        protected ModelContainer modelcontainer
        The model container
      • reallycommit

        protected boolean reallycommit
        Really commit flag. Hack?
    • Constructor Detail

      • EdgeController

        public EdgeController​(com.mxgraph.swing.mxGraphComponent graphcomponent,
                              ModelContainer modelcontainer)
        Creates the edge controller.
        Parameters:
        graphcomponent - The graph component.
    • Method Detail

      • createConnectPreview

        protected com.mxgraph.swing.handler.mxConnectPreview createConnectPreview()
        Creates the preview.
        Overrides:
        createConnectPreview in class com.mxgraph.swing.handler.mxConnectionHandler
      • validateConnection

        public java.lang.String validateConnection​(java.lang.Object source,
                                                   java.lang.Object target)
        Validates a connection.
        Overrides:
        validateConnection in class com.mxgraph.swing.handler.mxConnectionHandler
      • mouseReleased

        public void mouseReleased​(java.awt.event.MouseEvent e)
        Called when mouse is released.
        Specified by:
        mouseReleased in interface java.awt.event.MouseListener
        Overrides:
        mouseReleased in class com.mxgraph.swing.handler.mxConnectionHandler