Modifier and Type | Field and Description |
---|---|
protected List<BoundaryEvent> |
boundaryEvents |
protected BpmnModel |
bpmnModel |
protected Object |
cellParent |
protected int |
eventSize |
protected int |
gatewaySize |
protected Map<String,Object> |
generatedEdges |
protected Map<String,Object> |
generatedVertices |
protected com.mxgraph.view.mxGraph |
graph |
protected Map<String,FlowElement> |
handledFlowElements |
protected Map<String,SequenceFlow> |
sequenceFlows |
protected int |
subProcessMargin |
protected int |
taskHeight |
protected int |
taskWidth |
Constructor and Description |
---|
BpmnAutoLayout(BpmnModel bpmnModel) |
Modifier and Type | Method and Description |
---|---|
protected GraphicInfo |
createDiagramInterchangeInformation(FlowElement flowElement,
int x,
int y,
int width,
int height) |
protected void |
createDiagramInterchangeInformation(SequenceFlow sequenceFlow,
List<com.mxgraph.util.mxPoint> waypoints) |
protected void |
createEventVertex(FlowElement flowElement) |
protected void |
createGatewayVertex(FlowElement flowElement) |
protected void |
ensureSequenceFlowIdSet(SequenceFlow sequenceFlow) |
protected double |
euclidianDistance(com.mxgraph.util.mxPoint point1,
com.mxgraph.util.mxPoint point2) |
void |
execute() |
protected void |
generateActivityDiagramInterchangeElements() |
protected void |
generateDiagramInterchangeElements() |
protected void |
generateSequenceFlowDiagramInterchangeElements() |
int |
getEventSize() |
int |
getGatewaySize() |
com.mxgraph.view.mxGraph |
getGraph() |
int |
getSubProcessMargin() |
int |
getTaskHeight() |
int |
getTaskWidth() |
protected void |
handleActivity(FlowElement flowElement) |
protected void |
handleBoundaryEvents() |
protected void |
handleEvent(FlowElement flowElement) |
protected void |
handleSequenceFlow() |
protected void |
handleSequenceFlow(SequenceFlow sequenceFlow) |
protected void |
handleSubProcess(FlowElement flowElement) |
protected void |
layout(FlowElementsContainer flowElementsContainer) |
protected List<com.mxgraph.util.mxPoint> |
optimizeEdgePoints(List<com.mxgraph.util.mxPoint> unoptimizedPointsList) |
void |
setEventSize(int eventSize) |
void |
setGatewaySize(int gatewaySize) |
void |
setGraph(com.mxgraph.view.mxGraph graph) |
void |
setSubProcessMargin(int subProcessMargin) |
void |
setTaskHeight(int taskHeight) |
void |
setTaskWidth(int taskWidth) |
protected void |
translateNestedSubprocessElements(SubProcess subProcess) |
protected void |
translateNestedSubprocesses(Process process)
Since subprocesses are autolayouted independently (see
handleSubProcess(FlowElement) ),
the elements have x and y coordinates relative to the bounds of the subprocess (thinking the subprocess
is on (0,0). |
protected BpmnModel bpmnModel
protected int eventSize
protected int gatewaySize
protected int taskWidth
protected int taskHeight
protected int subProcessMargin
protected com.mxgraph.view.mxGraph graph
protected Object cellParent
protected Map<String,SequenceFlow> sequenceFlows
protected List<BoundaryEvent> boundaryEvents
protected Map<String,FlowElement> handledFlowElements
public BpmnAutoLayout(BpmnModel bpmnModel)
public void execute()
protected void layout(FlowElementsContainer flowElementsContainer)
protected void ensureSequenceFlowIdSet(SequenceFlow sequenceFlow)
protected void handleSequenceFlow(SequenceFlow sequenceFlow)
protected void handleEvent(FlowElement flowElement)
protected void handleActivity(FlowElement flowElement)
protected void handleSubProcess(FlowElement flowElement)
protected void handleBoundaryEvents()
protected void handleSequenceFlow()
protected void createEventVertex(FlowElement flowElement)
protected void createGatewayVertex(FlowElement flowElement)
protected void generateDiagramInterchangeElements()
protected void generateActivityDiagramInterchangeElements()
protected void generateSequenceFlowDiagramInterchangeElements()
protected double euclidianDistance(com.mxgraph.util.mxPoint point1, com.mxgraph.util.mxPoint point2)
protected List<com.mxgraph.util.mxPoint> optimizeEdgePoints(List<com.mxgraph.util.mxPoint> unoptimizedPointsList)
protected GraphicInfo createDiagramInterchangeInformation(FlowElement flowElement, int x, int y, int width, int height)
protected void createDiagramInterchangeInformation(SequenceFlow sequenceFlow, List<com.mxgraph.util.mxPoint> waypoints)
protected void translateNestedSubprocesses(Process process)
handleSubProcess(FlowElement)
),
the elements have x and y coordinates relative to the bounds of the subprocess (thinking the subprocess
is on (0,0). This however, does not work for nested subprocesses, as they need to
take in account the x and y coordinates for each of the parent subproceses.
This method is to be called after fully layouting one process,
since ALL elements need to have x and y.protected void translateNestedSubprocessElements(SubProcess subProcess)
public com.mxgraph.view.mxGraph getGraph()
public void setGraph(com.mxgraph.view.mxGraph graph)
public int getEventSize()
public void setEventSize(int eventSize)
public int getGatewaySize()
public void setGatewaySize(int gatewaySize)
public int getTaskWidth()
public void setTaskWidth(int taskWidth)
public int getTaskHeight()
public void setTaskHeight(int taskHeight)
public int getSubProcessMargin()
public void setSubProcessMargin(int subProcessMargin)
Copyright © 2016 Alfresco. All rights reserved.