public class ProcessDiagramLayoutFactory extends Object
RepositoryService.getProcessDiagram(String)
.Constructor and Description |
---|
ProcessDiagramLayoutFactory() |
public DiagramLayout getProcessDiagramLayout(InputStream bpmnXmlStream, InputStream imageStream)
RepositoryService.getProcessDiagram(String)
.
Currently, it only supports BPMN 2.0 models.bpmnXmlStream
- BPMN 2.0 XML fileimageStream
- BPMN 2.0 diagram in PNG format (JPEG and other formats supported
by ImageIO
may also work)public DiagramLayout getBpmnProcessDiagramLayout(Document bpmnModel, InputStream imageStream)
RepositoryService.getProcessDiagram(String)
.bpmnXmlStream
- BPMN 2.0 XML documentimageStream
- BPMN 2.0 diagram in PNG format (JPEG and other formats supported
by ImageIO
may also work)protected Document parseXml(InputStream bpmnXmlStream)
protected DiagramNode getDiagramBoundsFromBpmnDi(Document bpmnModel)
protected DiagramNode getDiagramBoundsFromImage(InputStream imageStream)
protected DiagramNode getDiagramBoundsFromImage(InputStream imageStream, int offsetTop, int offsetBottom)
protected DiagramNode getDiagramBoundsFromImage(BufferedImage image, int offsetTop, int offsetBottom)
protected Map<String,DiagramNode> getElementBoundsFromBpmnDi(Document bpmnModel)
protected DiagramNode parseBounds(Element boundsElement)
protected Map<String,DiagramElement> transformBoundsForImage(DiagramNode diagramBoundsImage, DiagramNode diagramBoundsXml, Map<String,DiagramNode> listOfBounds)
protected DiagramNode transformBoundsForImage(DiagramNode diagramBoundsImage, DiagramNode diagramBoundsXml, DiagramNode elementBounds)
protected Map<String,DiagramNode> fixFlowNodePositionsIfModelFromAdonis(Document bpmnModel, Map<String,DiagramNode> elementBoundsFromBpmnDi)
protected boolean isExportedFromAdonis50(Document bpmnModel)
Copyright © 2015. All rights reserved.