@Component public class DefaultProcessDiagramGenerator extends Object implements ProcessDiagramGenerator
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
DefaultProcessDiagramGenerator.ActivityDrawInstruction |
protected static interface |
DefaultProcessDiagramGenerator.ArtifactDrawInstruction |
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class<? extends BaseElement>,DefaultProcessDiagramGenerator.ActivityDrawInstruction> |
activityDrawInstructions |
protected Map<Class<? extends BaseElement>,DefaultProcessDiagramGenerator.ArtifactDrawInstruction> |
artifactDrawInstructions |
| Constructor and Description |
|---|
DefaultProcessDiagramGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected static List<GraphicInfo> |
connectionPerfectionizer(DefaultProcessDiagramCanvas processDiagramCanvas,
BpmnModel bpmnModel,
BaseElement sourceElement,
BaseElement targetElement,
List<GraphicInfo> graphicInfoList)
This method makes coordinates of connection flow better.
|
protected void |
drawActivity(DefaultProcessDiagramCanvas processDiagramCanvas,
BpmnModel bpmnModel,
FlowNode flowNode,
List<String> highLightedActivities,
List<String> highLightedFlows) |
protected void |
drawArtifact(DefaultProcessDiagramCanvas processDiagramCanvas,
BpmnModel bpmnModel,
Artifact artifact) |
protected static List<Artifact> |
gatherAllArtifacts(BpmnModel bpmnModel) |
protected static List<FlowNode> |
gatherAllFlowNodes(BpmnModel bpmnModel) |
protected static List<FlowNode> |
gatherAllFlowNodes(FlowElementsContainer flowElementsContainer) |
InputStream |
generateDiagram(BpmnModel bpmnModel,
List<String> highLightedActivities) |
InputStream |
generateDiagram(BpmnModel bpmnModel,
List<String> highLightedActivities,
List<String> highLightedFlows)
Generates a diagram of the given process definition, using the diagram interchange information of the process.
|
InputStream |
generateDiagram(BpmnModel bpmnModel,
List<String> highLightedActivities,
List<String> highLightedFlows,
String activityFontName,
String labelFontName,
String annotationFontName)
Generates a diagram of the given process definition, using the diagram interchange information of the process.
|
InputStream |
generateDiagram(BpmnModel bpmnModel,
String activityFontName,
String labelFontName,
String annotationFontName) |
protected DefaultProcessDiagramCanvas |
generateProcessDiagram(BpmnModel bpmnModel,
List<String> highLightedActivities,
List<String> highLightedFlows,
String activityFontName,
String labelFontName,
String annotationFontName) |
Map<Class<? extends BaseElement>,DefaultProcessDiagramGenerator.ActivityDrawInstruction> |
getActivityDrawInstructions() |
Map<Class<? extends BaseElement>,DefaultProcessDiagramGenerator.ArtifactDrawInstruction> |
getArtifactDrawInstructions() |
String |
getDefaultActivityFontName() |
String |
getDefaultAnnotationFontName() |
String |
getDefaultLabelFontName() |
protected static GraphicInfo |
getLineCenter(List<GraphicInfo> graphicInfoList) |
protected static DefaultProcessDiagramCanvas.SHAPE_TYPE |
getShapeType(BaseElement baseElement)
This method returns shape type of base element.
Each element can be presented as rectangle, rhombus, or ellipse. |
protected static DefaultProcessDiagramCanvas |
initProcessDiagramCanvas(BpmnModel bpmnModel,
String activityFontName,
String labelFontName,
String annotationFontName) |
protected void |
prepareBpmnModel(BpmnModel bpmnModel) |
void |
setActivityDrawInstructions(Map<Class<? extends BaseElement>,DefaultProcessDiagramGenerator.ActivityDrawInstruction> activityDrawInstructions) |
void |
setArtifactDrawInstructions(Map<Class<? extends BaseElement>,DefaultProcessDiagramGenerator.ArtifactDrawInstruction> artifactDrawInstructions) |
protected Map<Class<? extends BaseElement>,DefaultProcessDiagramGenerator.ActivityDrawInstruction> activityDrawInstructions
protected Map<Class<? extends BaseElement>,DefaultProcessDiagramGenerator.ArtifactDrawInstruction> artifactDrawInstructions
public String getDefaultActivityFontName()
getDefaultActivityFontName in interface ProcessDiagramGeneratorpublic String getDefaultLabelFontName()
getDefaultLabelFontName in interface ProcessDiagramGeneratorpublic String getDefaultAnnotationFontName()
getDefaultAnnotationFontName in interface ProcessDiagramGeneratorpublic InputStream generateDiagram(BpmnModel bpmnModel, List<String> highLightedActivities, List<String> highLightedFlows, String activityFontName, String labelFontName, String annotationFontName)
ProcessDiagramGeneratorgenerateDiagram in interface ProcessDiagramGeneratorbpmnModel - bpmn model to get diagram forhighLightedActivities - activities to highlighthighLightedFlows - flows to highlightactivityFontName - override the default activity fontlabelFontName - override the default label fontpublic InputStream generateDiagram(BpmnModel bpmnModel, List<String> highLightedActivities, List<String> highLightedFlows)
ProcessDiagramGeneratorgenerateDiagram in interface ProcessDiagramGeneratorbpmnModel - bpmn model to get diagram forhighLightedActivities - activities to highlighthighLightedFlows - flows to highlightpublic InputStream generateDiagram(BpmnModel bpmnModel, List<String> highLightedActivities)
generateDiagram in interface ProcessDiagramGeneratorpublic InputStream generateDiagram(BpmnModel bpmnModel, String activityFontName, String labelFontName, String annotationFontName)
generateDiagram in interface ProcessDiagramGeneratorprotected DefaultProcessDiagramCanvas generateProcessDiagram(BpmnModel bpmnModel, List<String> highLightedActivities, List<String> highLightedFlows, String activityFontName, String labelFontName, String annotationFontName)
protected void prepareBpmnModel(BpmnModel bpmnModel)
protected void drawActivity(DefaultProcessDiagramCanvas processDiagramCanvas, BpmnModel bpmnModel, FlowNode flowNode, List<String> highLightedActivities, List<String> highLightedFlows)
protected static List<GraphicInfo> connectionPerfectionizer(DefaultProcessDiagramCanvas processDiagramCanvas, BpmnModel bpmnModel, BaseElement sourceElement, BaseElement targetElement, List<GraphicInfo> graphicInfoList)
processDiagramCanvas - bpmnModel - sourceElement - targetElement - graphicInfoList - protected static DefaultProcessDiagramCanvas.SHAPE_TYPE getShapeType(BaseElement baseElement)
baseElement - protected static GraphicInfo getLineCenter(List<GraphicInfo> graphicInfoList)
protected void drawArtifact(DefaultProcessDiagramCanvas processDiagramCanvas, BpmnModel bpmnModel, Artifact artifact)
protected static DefaultProcessDiagramCanvas initProcessDiagramCanvas(BpmnModel bpmnModel, String activityFontName, String labelFontName, String annotationFontName)
protected static List<FlowNode> gatherAllFlowNodes(FlowElementsContainer flowElementsContainer)
public Map<Class<? extends BaseElement>,DefaultProcessDiagramGenerator.ActivityDrawInstruction> getActivityDrawInstructions()
public void setActivityDrawInstructions(Map<Class<? extends BaseElement>,DefaultProcessDiagramGenerator.ActivityDrawInstruction> activityDrawInstructions)
public Map<Class<? extends BaseElement>,DefaultProcessDiagramGenerator.ArtifactDrawInstruction> getArtifactDrawInstructions()
public void setArtifactDrawInstructions(Map<Class<? extends BaseElement>,DefaultProcessDiagramGenerator.ArtifactDrawInstruction> artifactDrawInstructions)
Copyright © 2010–2017 Alfresco. All rights reserved.