org.activiti.engine.impl.bpmn.diagram
类 ProcessDiagramLayoutFactory

java.lang.Object
  继承者 org.activiti.engine.impl.bpmn.diagram.ProcessDiagramLayoutFactory

public class ProcessDiagramLayoutFactory
extends Object

Provides positions and dimensions of elements in a process diagram as provided by RepositoryService.getProcessDiagram(String).

作者:
Falko Menge

构造方法摘要
ProcessDiagramLayoutFactory()
           
 
方法摘要
protected  Map<String,DiagramNode> fixFlowNodePositionsIfModelFromAdonis(Document bpmnModel, Map<String,DiagramNode> elementBoundsFromBpmnDi)
           
 DiagramLayout getBpmnProcessDiagramLayout(Document bpmnModel, InputStream imageStream)
          Provides positions and dimensions of elements in a BPMN process diagram as provided by RepositoryService.getProcessDiagram(String).
protected  DiagramNode getDiagramBoundsFromBpmnDi(Document bpmnModel)
           
protected  DiagramNode getDiagramBoundsFromImage(BufferedImage image, int offsetTop, int offsetBottom)
           
protected  DiagramNode getDiagramBoundsFromImage(InputStream imageStream)
           
protected  DiagramNode getDiagramBoundsFromImage(InputStream imageStream, int offsetTop, int offsetBottom)
           
protected  Map<String,DiagramNode> getElementBoundsFromBpmnDi(Document bpmnModel)
           
 DiagramLayout getProcessDiagramLayout(InputStream bpmnXmlStream, InputStream imageStream)
          Provides positions and dimensions of elements in a process diagram as provided by RepositoryService.getProcessDiagram(String).
protected  boolean isExportedFromAdonis50(Document bpmnModel)
           
protected  DiagramNode parseBounds(Element boundsElement)
           
protected  Document parseXml(InputStream bpmnXmlStream)
           
protected  DiagramNode transformBoundsForImage(DiagramNode diagramBoundsImage, DiagramNode diagramBoundsXml, DiagramNode elementBounds)
           
protected  Map<String,DiagramElement> transformBoundsForImage(DiagramNode diagramBoundsImage, DiagramNode diagramBoundsXml, Map<String,DiagramNode> listOfBounds)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ProcessDiagramLayoutFactory

public ProcessDiagramLayoutFactory()
方法详细信息

getProcessDiagramLayout

public DiagramLayout getProcessDiagramLayout(InputStream bpmnXmlStream,
                                             InputStream imageStream)
Provides positions and dimensions of elements in a process diagram as provided by RepositoryService.getProcessDiagram(String). Currently, it only supports BPMN 2.0 models.

参数:
bpmnXmlStream - BPMN 2.0 XML file
imageStream - BPMN 2.0 diagram in PNG format (JPEG and other formats supported by ImageIO may also work)
返回:
Layout of the process diagram

getBpmnProcessDiagramLayout

public DiagramLayout getBpmnProcessDiagramLayout(Document bpmnModel,
                                                 InputStream imageStream)
Provides positions and dimensions of elements in a BPMN process diagram as provided by RepositoryService.getProcessDiagram(String).

参数:
bpmnXmlStream - BPMN 2.0 XML document
imageStream - BPMN 2.0 diagram in PNG format (JPEG and other formats supported by ImageIO may also work)
返回:
Layout of the process diagram

parseXml

protected Document parseXml(InputStream bpmnXmlStream)

getDiagramBoundsFromBpmnDi

protected DiagramNode getDiagramBoundsFromBpmnDi(Document bpmnModel)

getDiagramBoundsFromImage

protected DiagramNode getDiagramBoundsFromImage(InputStream imageStream)

getDiagramBoundsFromImage

protected DiagramNode getDiagramBoundsFromImage(InputStream imageStream,
                                                int offsetTop,
                                                int offsetBottom)

getDiagramBoundsFromImage

protected DiagramNode getDiagramBoundsFromImage(BufferedImage image,
                                                int offsetTop,
                                                int offsetBottom)

getElementBoundsFromBpmnDi

protected Map<String,DiagramNode> getElementBoundsFromBpmnDi(Document bpmnModel)

parseBounds

protected DiagramNode parseBounds(Element boundsElement)

transformBoundsForImage

protected Map<String,DiagramElement> transformBoundsForImage(DiagramNode diagramBoundsImage,
                                                             DiagramNode diagramBoundsXml,
                                                             Map<String,DiagramNode> listOfBounds)

transformBoundsForImage

protected DiagramNode transformBoundsForImage(DiagramNode diagramBoundsImage,
                                              DiagramNode diagramBoundsXml,
                                              DiagramNode elementBounds)

fixFlowNodePositionsIfModelFromAdonis

protected Map<String,DiagramNode> fixFlowNodePositionsIfModelFromAdonis(Document bpmnModel,
                                                                        Map<String,DiagramNode> elementBoundsFromBpmnDi)

isExportedFromAdonis50

protected boolean isExportedFromAdonis50(Document bpmnModel)


Copyright © 2013 Alfresco. All rights reserved.