public class BpmnVisualModelReader
extends java.lang.Object
implements jadex.bpmn.model.io.IPostProcessingVisualModelReader
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.util.List<VNode>> |
childmap
Map of unconnected children
|
protected BpmnGraph |
graph
The visual BPMN graph.
|
protected java.util.Map<java.lang.String,VElement> |
vmap
The visual elements.
|
| Constructor and Description |
|---|
BpmnVisualModelReader(BpmnGraph graph)
Creates a visual model reader.
|
| Modifier and Type | Method and Description |
|---|---|
VActivity |
createActivity() |
VDataEdge |
createDataEdge() |
VExternalSubProcess |
createExternalSuboprocess() |
VLane |
createLane() |
VMessagingEdge |
createMessagingEdge() |
VPool |
createPool() |
VSequenceEdge |
createSequenceEdge() |
VSubProcess |
createSuboprocess() |
void |
postProcess()
Performs the post-process.
|
void |
processBpmnEdge(java.lang.String bpmnid,
jadex.bpmn.model.MIdElement medge,
java.util.List<java.awt.geom.Point2D> waypoints)
Process the visual part of a standard BPMN edge.
|
void |
processBpmnShape(java.lang.String bpmnid,
jadex.bpmn.model.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.
|
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,jadex.bpmn.model.MIdElement> emap)
Process the visual part of a generic (non-standard) edge.
|
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,jadex.bpmn.model.MIdElement> emap,
java.util.Map<java.lang.String,java.lang.Object> buffer)
Reads a visual element.
|
protected BpmnGraph graph
protected java.util.Map<java.lang.String,VElement> vmap
protected java.util.Map<java.lang.String,java.util.List<VNode>> childmap
public BpmnVisualModelReader(BpmnGraph graph)
graph - The visual graph.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,jadex.bpmn.model.MIdElement> emap,
java.util.Map<java.lang.String,java.lang.Object> buffer)
tag - The XML tag.attrs - The attributes.laneparents - The parents of lanes.emap - Map of BPMN elements by ID.buffer - Buffer map.public void processBpmnShape(java.lang.String bpmnid,
jadex.bpmn.model.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)
processBpmnShape in interface jadex.bpmn.model.io.IBpmnVisualModelReaderbpmnid - 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.public void processBpmnEdge(java.lang.String bpmnid,
jadex.bpmn.model.MIdElement medge,
java.util.List<java.awt.geom.Point2D> waypoints)
processBpmnEdge in interface jadex.bpmn.model.io.IBpmnVisualModelReaderbpmnid - The referenced ID of the edge.medge - The semantic edge, if found.waypoints - The way points of the edge.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,jadex.bpmn.model.MIdElement> emap)
processGenericEdge in interface jadex.bpmn.model.io.IBpmnVisualModelReadertype - 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.public void postProcess()
postProcess in interface jadex.bpmn.model.io.IPostProcessingVisualModelReaderpublic VExternalSubProcess createExternalSuboprocess()
public VSubProcess createSuboprocess()
public VActivity createActivity()
public VPool createPool()
public VLane createLane()
public VSequenceEdge createSequenceEdge()
public VMessagingEdge createMessagingEdge()
public VDataEdge createDataEdge()