Class EdgeController
- java.lang.Object
-
- com.mxgraph.swing.util.mxMouseAdapter
-
- com.mxgraph.swing.handler.mxConnectionHandler
-
- jadex.bpmn.editor.gui.controllers.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
EdgeController.BpmnConnectPreview
Edge creation preview.
-
Field Summary
Fields Modifier and Type Field Description protected ModelContainer
modelcontainer
The model containerprotected boolean
reallycommit
Really commit flag.
-
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
-
-
-
-
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 classcom.mxgraph.swing.handler.mxConnectionHandler
-
validateConnection
public java.lang.String validateConnection(java.lang.Object source, java.lang.Object target)
Validates a connection.- Overrides:
validateConnection
in classcom.mxgraph.swing.handler.mxConnectionHandler
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
Called when mouse is released.- Specified by:
mouseReleased
in interfacejava.awt.event.MouseListener
- Overrides:
mouseReleased
in classcom.mxgraph.swing.handler.mxConnectionHandler
-
-