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.mxConnectionHandlerEdge controller for creating and managing edges.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected classEdgeController.BpmnConnectPreviewEdge creation preview.
 - 
Field SummaryFields Modifier and Type Field Description protected ModelContainermodelcontainerThe model containerprotected booleanreallycommitReally commit flag.
 - 
Constructor SummaryConstructors Constructor Description EdgeController(com.mxgraph.swing.mxGraphComponent graphcomponent, ModelContainer modelcontainer)Creates the edge controller.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.mxgraph.swing.handler.mxConnectPreviewcreateConnectPreview()Creates the preview.voidmouseReleased(java.awt.event.MouseEvent e)Called when mouse is released.java.lang.StringvalidateConnection(java.lang.Object source, java.lang.Object target)Validates a connection.- 
Methods inherited from class com.mxgraph.swing.handler.mxConnectionHandleraddGraphListeners, 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- 
modelcontainerprotected ModelContainer modelcontainer The model container
 - 
reallycommitprotected boolean reallycommit Really commit flag. Hack?
 
- 
 - 
Constructor Detail- 
EdgeControllerpublic EdgeController(com.mxgraph.swing.mxGraphComponent graphcomponent, ModelContainer modelcontainer)Creates the edge controller.- Parameters:
- graphcomponent- The graph component.
 
 
- 
 - 
Method Detail- 
createConnectPreviewprotected com.mxgraph.swing.handler.mxConnectPreview createConnectPreview() Creates the preview.- Overrides:
- createConnectPreviewin class- com.mxgraph.swing.handler.mxConnectionHandler
 
 - 
validateConnectionpublic java.lang.String validateConnection(java.lang.Object source, java.lang.Object target)Validates a connection.- Overrides:
- validateConnectionin class- com.mxgraph.swing.handler.mxConnectionHandler
 
 - 
mouseReleasedpublic void mouseReleased(java.awt.event.MouseEvent e) Called when mouse is released.- Specified by:
- mouseReleasedin interface- java.awt.event.MouseListener
- Overrides:
- mouseReleasedin class- com.mxgraph.swing.handler.mxConnectionHandler
 
 
- 
 
-