Package jadex.bpmn.editor.model.visual
Class BpmnVisualModelReader
- java.lang.Object
-
- jadex.bpmn.editor.model.visual.BpmnVisualModelReader
-
- All Implemented Interfaces:
IBpmnVisualModelReader,IPostProcessingVisualModelReader
public class BpmnVisualModelReader extends java.lang.Object implements IPostProcessingVisualModelReader
Reader for the visual BPMN model.
-
-
Constructor Summary
Constructors Constructor Description BpmnVisualModelReader(BpmnGraph graph)Creates a visual model reader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VActivitycreateActivity()VDataEdgecreateDataEdge()VExternalSubProcesscreateExternalSuboprocess()VLanecreateLane()VMessagingEdgecreateMessagingEdge()VPoolcreatePool()VSequenceEdgecreateSequenceEdge()VSubProcesscreateSuboprocess()voidpostProcess()Performs the post-process.voidprocessBpmnEdge(java.lang.String bpmnid, MIdElement medge, java.util.List<java.awt.geom.Point2D> waypoints)Process the visual part of a standard BPMN edge.voidprocessBpmnShape(java.lang.String bpmnid, MIdElement e, java.lang.Boolean expanded, java.awt.geom.Rectangle2D bounds, java.awt.geom.Rectangle2D altbounds, java.util.Set<java.lang.String> internalparameters, java.lang.String eventparentid, java.lang.String subprocessparentid, java.lang.String laneparentid)Process the visual part of a standard BPMN shape.voidprocessGenericEdge(java.lang.String type, java.util.List<java.awt.geom.Point2D> waypoints, java.util.Map<java.lang.String,java.lang.String> attrs, java.util.Map<java.lang.String,MIdElement> emap)Process the visual part of a generic (non-standard) edge.voidreadElement(javax.xml.namespace.QName tag, java.util.Map<java.lang.String,java.lang.String> attrs, java.util.Map<java.lang.String,java.lang.String> laneparents, java.util.Map<java.lang.String,MIdElement> emap, java.util.Map<java.lang.String,java.lang.Object> buffer)Reads a visual element.
-
-
-
Constructor Detail
-
BpmnVisualModelReader
public BpmnVisualModelReader(BpmnGraph graph)
Creates a visual model reader.- Parameters:
graph- The visual graph.
-
-
Method Detail
-
readElement
public void readElement(javax.xml.namespace.QName tag, java.util.Map<java.lang.String,java.lang.String> attrs, java.util.Map<java.lang.String,java.lang.String> laneparents, java.util.Map<java.lang.String,MIdElement> emap, java.util.Map<java.lang.String,java.lang.Object> buffer)Reads a visual element.- Parameters:
tag- The XML tag.attrs- The attributes.laneparents- The parents of lanes.emap- Map of BPMN elements by ID.buffer- Buffer map.
-
processBpmnShape
public void processBpmnShape(java.lang.String bpmnid, MIdElement e, java.lang.Boolean expanded, java.awt.geom.Rectangle2D bounds, java.awt.geom.Rectangle2D altbounds, java.util.Set<java.lang.String> internalparameters, java.lang.String eventparentid, java.lang.String subprocessparentid, java.lang.String laneparentid)Process the visual part of a standard BPMN shape.- Specified by:
processBpmnShapein interfaceIBpmnVisualModelReader- Parameters:
bpmnid- The referenced ID of the shape.e- The semantic shape, if found, null otherwise.expanded- Flag whether the shape should be collapsed (false), expanded (true) or default (null).bounds- Bounds of the shape.altbounds- Alternative bounds.internalparameters- Parameters that are considered to be internal and should not have input connectors.eventparentid- The parent ID if the shape is an event with a parent.subprocessparentid- The parent subprocess ID if the shape is part of a subprocess.laneparentid- ID if the parent if the shape is a lane.
-
processBpmnEdge
public void processBpmnEdge(java.lang.String bpmnid, MIdElement medge, java.util.List<java.awt.geom.Point2D> waypoints)Process the visual part of a standard BPMN edge.- Specified by:
processBpmnEdgein interfaceIBpmnVisualModelReader- Parameters:
bpmnid- The referenced ID of the edge.medge- The semantic edge, if found.waypoints- The way points of the edge.
-
processGenericEdge
public void processGenericEdge(java.lang.String type, java.util.List<java.awt.geom.Point2D> waypoints, java.util.Map<java.lang.String,java.lang.String> attrs, java.util.Map<java.lang.String,MIdElement> emap)Process the visual part of a generic (non-standard) edge.- Specified by:
processGenericEdgein interfaceIBpmnVisualModelReader- Parameters:
type- Type of the edge, if found.waypoints- The way points of the edge.attrs- XML attributes for the edge.emap- Map from element IDs to semantic elements.
-
postProcess
public void postProcess()
Performs the post-process.- Specified by:
postProcessin interfaceIPostProcessingVisualModelReader
-
createExternalSuboprocess
public VExternalSubProcess createExternalSuboprocess()
-
createSuboprocess
public VSubProcess createSuboprocess()
-
createActivity
public VActivity createActivity()
-
createPool
public VPool createPool()
-
createLane
public VLane createLane()
-
createSequenceEdge
public VSequenceEdge createSequenceEdge()
-
createMessagingEdge
public VMessagingEdge createMessagingEdge()
-
createDataEdge
public VDataEdge createDataEdge()
-
-