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() |
DefaultProcessDiagramGenerator(double scaleFactor) |
| 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,
double scaleFactor,
Boolean drawSequenceFlowNameWithNoLabelDI) |
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,
String imageType,
List<String> highLightedActivities,
boolean drawSequenceFlowNameWithNoLabelDI) |
InputStream |
generateDiagram(BpmnModel bpmnModel,
String imageType,
List<String> highLightedActivities,
double scaleFactor,
boolean drawSequenceFlowNameWithNoLabelDI) |
InputStream |
generateDiagram(BpmnModel bpmnModel,
String imageType,
List<String> highLightedActivities,
List<String> highLightedFlows,
boolean drawSequenceFlowNameWithNoLabelDI)
Generates a diagram of the given process definition, using the diagram interchange information of the process.
|
InputStream |
generateDiagram(BpmnModel bpmnModel,
String imageType,
List<String> highLightedActivities,
List<String> highLightedFlows,
double scaleFactor,
boolean drawSequenceFlowNameWithNoLabelDI) |
InputStream |
generateDiagram(BpmnModel bpmnModel,
String imageType,
List<String> highLightedActivities,
List<String> highLightedFlows,
String activityFontName,
String labelFontName,
String annotationFontName,
ClassLoader customClassLoader,
double scaleFactor,
boolean drawSequenceFlowNameWithNoLabelDI)
Generates a diagram of the given process definition, using the diagram interchange information of the process.
|
InputStream |
generateDiagram(BpmnModel bpmnModel,
String imageType,
String activityFontName,
String labelFontName,
String annotationFontName,
ClassLoader customClassLoader,
boolean drawSequenceFlowNameWithNoLabelDI) |
InputStream |
generateDiagram(BpmnModel bpmnModel,
String imageType,
String activityFontName,
String labelFontName,
String annotationFontName,
ClassLoader customClassLoader,
double scaleFactor,
boolean drawSequenceFlowNameWithNoLabelDI) |
BufferedImage |
generateImage(BpmnModel bpmnModel,
String imageType,
List<String> highLightedActivities,
List<String> highLightedFlows,
double scaleFactor,
boolean drawSequenceFlowNameWithNoLabelDI) |
BufferedImage |
generateImage(BpmnModel bpmnModel,
String imageType,
List<String> highLightedActivities,
List<String> highLightedFlows,
String activityFontName,
String labelFontName,
String annotationFontName,
ClassLoader customClassLoader,
double scaleFactor,
boolean drawSequenceFlowNameWithNoLabelDI) |
InputStream |
generateJpgDiagram(BpmnModel bpmnModel) |
InputStream |
generateJpgDiagram(BpmnModel bpmnModel,
double scaleFactor,
boolean drawSequenceFlowNameWithNoLabelDI) |
InputStream |
generatePngDiagram(BpmnModel bpmnModel,
boolean drawSequenceFlowNameWithNoLabelDI) |
InputStream |
generatePngDiagram(BpmnModel bpmnModel,
double scaleFactor,
boolean drawSequenceFlowNameWithNoLabelDI) |
BufferedImage |
generatePngImage(BpmnModel bpmnModel,
double scaleFactor) |
protected DefaultProcessDiagramCanvas |
generateProcessDiagram(BpmnModel bpmnModel,
String imageType,
List<String> highLightedActivities,
List<String> highLightedFlows,
String activityFontName,
String labelFontName,
String annotationFontName,
ClassLoader customClassLoader,
double scaleFactor,
boolean drawSequenceFlowNameWithNoLabelDI) |
Map<Class<? extends BaseElement>,DefaultProcessDiagramGenerator.ActivityDrawInstruction> |
getActivityDrawInstructions() |
Map<Class<? extends BaseElement>,DefaultProcessDiagramGenerator.ArtifactDrawInstruction> |
getArtifactDrawInstructions() |
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 imageType,
String activityFontName,
String labelFontName,
String annotationFontName,
ClassLoader customClassLoader) |
protected boolean |
isPartOfCollapsedSubProcess(FlowElement flowElement,
BpmnModel model) |
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 DefaultProcessDiagramGenerator()
public DefaultProcessDiagramGenerator(double scaleFactor)
public InputStream generateDiagram(BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, List<String> highLightedFlows, String activityFontName, String labelFontName, String annotationFontName, ClassLoader customClassLoader, double scaleFactor, boolean drawSequenceFlowNameWithNoLabelDI)
ProcessDiagramGeneratorgenerateDiagram in interface ProcessDiagramGeneratorbpmnModel - bpmn model to get diagram forimageType - type of the image to generate.highLightedActivities - activities to highlighthighLightedFlows - flows to highlightactivityFontName - override the default activity fontlabelFontName - override the default label fontcustomClassLoader - provide a custom classloader for retrieving icon imagesdrawSequenceFlowNameWithNoLabelDI - provide a option to also include the sequence flow name in case there's no Label DIpublic InputStream generateDiagram(BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, List<String> highLightedFlows, boolean drawSequenceFlowNameWithNoLabelDI)
ProcessDiagramGeneratorgenerateDiagram in interface ProcessDiagramGeneratorbpmnModel - bpmn model to get diagram forimageType - type of the image to generate.highLightedActivities - activities to highlighthighLightedFlows - flows to highlightdrawSequenceFlowNameWithNoLabelDI - provide a option to also include the sequence flow name in case there's no Label DIpublic InputStream generateDiagram(BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, List<String> highLightedFlows, double scaleFactor, boolean drawSequenceFlowNameWithNoLabelDI)
generateDiagram in interface ProcessDiagramGeneratorpublic InputStream generateDiagram(BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, boolean drawSequenceFlowNameWithNoLabelDI)
generateDiagram in interface ProcessDiagramGeneratorpublic InputStream generateDiagram(BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, double scaleFactor, boolean drawSequenceFlowNameWithNoLabelDI)
generateDiagram in interface ProcessDiagramGeneratorpublic InputStream generateDiagram(BpmnModel bpmnModel, String imageType, String activityFontName, String labelFontName, String annotationFontName, ClassLoader customClassLoader, boolean drawSequenceFlowNameWithNoLabelDI)
generateDiagram in interface ProcessDiagramGeneratorpublic InputStream generateDiagram(BpmnModel bpmnModel, String imageType, String activityFontName, String labelFontName, String annotationFontName, ClassLoader customClassLoader, double scaleFactor, boolean drawSequenceFlowNameWithNoLabelDI)
generateDiagram in interface ProcessDiagramGeneratorpublic InputStream generatePngDiagram(BpmnModel bpmnModel, boolean drawSequenceFlowNameWithNoLabelDI)
generatePngDiagram in interface ProcessDiagramGeneratorpublic InputStream generatePngDiagram(BpmnModel bpmnModel, double scaleFactor, boolean drawSequenceFlowNameWithNoLabelDI)
generatePngDiagram in interface ProcessDiagramGeneratorpublic InputStream generateJpgDiagram(BpmnModel bpmnModel)
generateJpgDiagram in interface ProcessDiagramGeneratorpublic InputStream generateJpgDiagram(BpmnModel bpmnModel, double scaleFactor, boolean drawSequenceFlowNameWithNoLabelDI)
generateJpgDiagram in interface ProcessDiagramGeneratorpublic BufferedImage generateImage(BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, List<String> highLightedFlows, String activityFontName, String labelFontName, String annotationFontName, ClassLoader customClassLoader, double scaleFactor, boolean drawSequenceFlowNameWithNoLabelDI)
public BufferedImage generateImage(BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, List<String> highLightedFlows, double scaleFactor, boolean drawSequenceFlowNameWithNoLabelDI)
public BufferedImage generatePngImage(BpmnModel bpmnModel, double scaleFactor)
generatePngImage in interface ProcessDiagramGeneratorprotected DefaultProcessDiagramCanvas generateProcessDiagram(BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, List<String> highLightedFlows, String activityFontName, String labelFontName, String annotationFontName, ClassLoader customClassLoader, double scaleFactor, boolean drawSequenceFlowNameWithNoLabelDI)
protected void prepareBpmnModel(BpmnModel bpmnModel)
protected void drawActivity(DefaultProcessDiagramCanvas processDiagramCanvas, BpmnModel bpmnModel, FlowNode flowNode, List<String> highLightedActivities, List<String> highLightedFlows, double scaleFactor, Boolean drawSequenceFlowNameWithNoLabelDI)
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 imageType, String activityFontName, String labelFontName, String annotationFontName, ClassLoader customClassLoader)
protected static List<FlowNode> gatherAllFlowNodes(FlowElementsContainer flowElementsContainer)
protected boolean isPartOfCollapsedSubProcess(FlowElement flowElement, BpmnModel model)
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 © 2022 Flowable. All rights reserved.