Class SCreationController
- java.lang.Object
-
- jadex.bpmn.editor.gui.controllers.SCreationController
-
public class SCreationController extends java.lang.Object
Methods for creating model objects.
-
-
Constructor Summary
Constructors Constructor Description SCreationController()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static com.mxgraph.util.mxPoint
adjustPoint(com.mxgraph.view.mxGraph graph, java.lang.Object parent, com.mxgraph.util.mxPoint point)
Adjusts a point for relative positioning.static VActivity
createActivity(ModelContainer modelcontainer, java.lang.String mode, java.lang.Object targetcell, java.awt.geom.Point2D tp, boolean xcenter)
Creates an activity.static com.mxgraph.model.mxICell
createConnection(BpmnGraph graph, java.lang.String mode, java.lang.Object src, java.lang.Object tgt, long timestamp)
Creates a connection.static void
createControlPoint(VEdge vedge, com.mxgraph.util.mxPoint mxp, ModelContainer modelcontainer)
Creates a control point.protected static VDataEdge
createDataEdge(BpmnGraph graph, IdGenerator idgenerator, VNamedNode src, VNamedNode tgt, boolean autoseqedge)
Creates a data edge.static VLane
createLane(ModelContainer modelcontainer, java.lang.Object targetcell)
Creates a new lane.static VPool
createPool(ModelContainer modelcontainer, java.awt.geom.Point2D targetpoint)
Creates a new pool.static void
deleteControlPoint(VEdge vedge, com.mxgraph.util.mxPoint mxp, ModelContainer modelcontainer)
Deletes a control point.protected static java.util.Set<VNode>
getReverseSequenceFlowNodes(VNode start, java.util.Set<VNode> visited, VNode match)
-
-
-
Method Detail
-
createPool
public static final VPool createPool(ModelContainer modelcontainer, java.awt.geom.Point2D targetpoint)
Creates a new pool.- Parameters:
modelcontainer
- The model container.targetpoint
- The targeted point for the pool.- Returns:
- The created pool.
-
createLane
public static final VLane createLane(ModelContainer modelcontainer, java.lang.Object targetcell)
Creates a new lane.- Parameters:
modelcontainer
- The model container.targetcell
- The parent cell.- Returns:
- The created lane.
-
createActivity
public static VActivity createActivity(ModelContainer modelcontainer, java.lang.String mode, java.lang.Object targetcell, java.awt.geom.Point2D tp, boolean xcenter)
Creates an activity.- Parameters:
modelcontainer
- The model container.mode
- The activity edit mode.targetcell
- The parent cell.targetpoint
- The targeted point for the activity.- Returns:
- The created activity.
-
createConnection
public static final com.mxgraph.model.mxICell createConnection(BpmnGraph graph, java.lang.String mode, java.lang.Object src, java.lang.Object tgt, long timestamp)
Creates a connection.- Parameters:
src
- Source object.tgt
- Target object.- Returns:
- Created edge.
-
createControlPoint
public static final void createControlPoint(VEdge vedge, com.mxgraph.util.mxPoint mxp, ModelContainer modelcontainer)
Creates a control point.
-
deleteControlPoint
public static final void deleteControlPoint(VEdge vedge, com.mxgraph.util.mxPoint mxp, ModelContainer modelcontainer)
Deletes a control point.
-
createDataEdge
protected static final VDataEdge createDataEdge(BpmnGraph graph, IdGenerator idgenerator, VNamedNode src, VNamedNode tgt, boolean autoseqedge)
Creates a data edge.- Parameters:
graph
- The graph.idgenerator
- The ID generator.source
- Edge source.target
- Edge target.- Returns:
- The edge.
-
getReverseSequenceFlowNodes
protected static final java.util.Set<VNode> getReverseSequenceFlowNodes(VNode start, java.util.Set<VNode> visited, VNode match)
-
adjustPoint
protected static final com.mxgraph.util.mxPoint adjustPoint(com.mxgraph.view.mxGraph graph, java.lang.Object parent, com.mxgraph.util.mxPoint point)
Adjusts a point for relative positioning.- Parameters:
modelcontainer
- The model container.parent
- The parent cell.point
- The unadjusted targeted point.- Returns:
- The adjusted point.
-
-