public class DefaultProcessDiagramGenerator extends Object implements HMProcessDiagramGenerator
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 org.activiti.bpmn.model.BaseElement>,DefaultProcessDiagramGenerator.ActivityDrawInstruction> |
activityDrawInstructions |
protected Map<Class<? extends org.activiti.bpmn.model.BaseElement>,DefaultProcessDiagramGenerator.ArtifactDrawInstruction> |
artifactDrawInstructions |
Constructor and Description |
---|
DefaultProcessDiagramGenerator() |
DefaultProcessDiagramGenerator(double scaleFactor) |
Modifier and Type | Method and Description |
---|---|
protected static List<org.activiti.bpmn.model.GraphicInfo> |
connectionPerfectionizer(DefaultProcessDiagramCanvas processDiagramCanvas,
org.activiti.bpmn.model.BpmnModel bpmnModel,
org.activiti.bpmn.model.BaseElement sourceElement,
org.activiti.bpmn.model.BaseElement targetElement,
List<org.activiti.bpmn.model.GraphicInfo> graphicInfoList)
This method makes coordinates of connection flow better.
|
protected void |
drawActivity(DefaultProcessDiagramCanvas processDiagramCanvas,
org.activiti.bpmn.model.BpmnModel bpmnModel,
org.activiti.bpmn.model.FlowNode flowNode,
List<String> highLightedActivities,
List<String> highLightedFlows,
double scaleFactor) |
protected void |
drawActivity(DefaultProcessDiagramCanvas processDiagramCanvas,
org.activiti.bpmn.model.BpmnModel bpmnModel,
org.activiti.bpmn.model.FlowNode flowNode,
List<String> highLightedActivities,
List<String> highLightedFlows,
double scaleFactor,
List<String> highLightedExecutedActivities) |
protected void |
drawArtifact(DefaultProcessDiagramCanvas processDiagramCanvas,
org.activiti.bpmn.model.BpmnModel bpmnModel,
org.activiti.bpmn.model.Artifact artifact) |
protected static List<org.activiti.bpmn.model.Artifact> |
gatherAllArtifacts(org.activiti.bpmn.model.BpmnModel bpmnModel) |
protected static List<org.activiti.bpmn.model.FlowNode> |
gatherAllFlowNodes(org.activiti.bpmn.model.BpmnModel bpmnModel) |
protected static List<org.activiti.bpmn.model.FlowNode> |
gatherAllFlowNodes(org.activiti.bpmn.model.FlowElementsContainer flowElementsContainer) |
InputStream |
generateDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel,
String imageType,
List<String> highLightedActivities) |
InputStream |
generateDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel,
String imageType,
List<String> highLightedActivities,
double scaleFactor) |
InputStream |
generateDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel,
String imageType,
List<String> highLightedActivities,
List<String> highLightedFlows)
Generates a diagram of the given process definition, using the
diagram interchange information of the process.
|
InputStream |
generateDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel,
String imageType,
List<String> highLightedActivities,
List<String> highLightedFlows,
double scaleFactor) |
InputStream |
generateDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel,
String imageType,
List<String> highLightedActivities,
List<String> highLightedFlows,
String activityFontName,
String labelFontName,
String annotationFontName,
ClassLoader customClassLoader,
double scaleFactor)
Generates a diagram of the given process definition, using the
diagram interchange information of the process.
|
InputStream |
generateDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel,
String imageType,
List<String> highLightedActivities,
List<String> highLightedFlows,
String activityFontName,
String labelFontName,
String annotationFontName,
ClassLoader customClassLoader,
double scaleFactor,
List<String> highLightedCurrentActivities) |
InputStream |
generateDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel,
String imageType,
String activityFontName,
String labelFontName,
String annotationFontName,
ClassLoader customClassLoader) |
InputStream |
generateDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel,
String imageType,
String activityFontName,
String labelFontName,
String annotationFontName,
ClassLoader customClassLoader,
double scaleFactor) |
BufferedImage |
generateImage(org.activiti.bpmn.model.BpmnModel bpmnModel,
String imageType,
List<String> highLightedActivities,
List<String> highLightedFlows,
double scaleFactor) |
BufferedImage |
generateImage(org.activiti.bpmn.model.BpmnModel bpmnModel,
String imageType,
List<String> highLightedActivities,
List<String> highLightedFlows,
String activityFontName,
String labelFontName,
String annotationFontName,
ClassLoader customClassLoader,
double scaleFactor) |
InputStream |
generateJpgDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel) |
InputStream |
generateJpgDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel,
double scaleFactor) |
InputStream |
generatePngDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel) |
InputStream |
generatePngDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel,
double scaleFactor) |
BufferedImage |
generatePngImage(org.activiti.bpmn.model.BpmnModel bpmnModel,
double scaleFactor) |
protected DefaultProcessDiagramCanvas |
generateProcessDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel,
String imageType,
List<String> highLightedActivities,
List<String> highLightedFlows,
String activityFontName,
String labelFontName,
String annotationFontName,
ClassLoader customClassLoader,
double scaleFactor) |
protected DefaultProcessDiagramCanvas |
generateProcessDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel,
String imageType,
List<String> highLightedActivities,
List<String> highLightedFlows,
String activityFontName,
String labelFontName,
String annotationFontName,
ClassLoader customClassLoader,
double scaleFactor,
List<String> highCurrentLightedActivities) |
Map<Class<? extends org.activiti.bpmn.model.BaseElement>,DefaultProcessDiagramGenerator.ActivityDrawInstruction> |
getActivityDrawInstructions() |
Map<Class<? extends org.activiti.bpmn.model.BaseElement>,DefaultProcessDiagramGenerator.ArtifactDrawInstruction> |
getArtifactDrawInstructions() |
protected static org.activiti.bpmn.model.GraphicInfo |
getLineCenter(List<org.activiti.bpmn.model.GraphicInfo> graphicInfoList) |
protected static DefaultProcessDiagramCanvas.SHAPE_TYPE |
getShapeType(org.activiti.bpmn.model.BaseElement baseElement)
This method returns shape type of base element.
Each element can be presented as rectangle, rhombus, or ellipse. |
protected static DefaultProcessDiagramCanvas |
initProcessDiagramCanvas(org.activiti.bpmn.model.BpmnModel bpmnModel,
String imageType,
String activityFontName,
String labelFontName,
String annotationFontName,
ClassLoader customClassLoader) |
protected void |
prepareBpmnModel(org.activiti.bpmn.model.BpmnModel bpmnModel) |
void |
setActivityDrawInstructions(Map<Class<? extends org.activiti.bpmn.model.BaseElement>,DefaultProcessDiagramGenerator.ActivityDrawInstruction> activityDrawInstructions) |
void |
setArtifactDrawInstructions(Map<Class<? extends org.activiti.bpmn.model.BaseElement>,DefaultProcessDiagramGenerator.ArtifactDrawInstruction> artifactDrawInstructions) |
protected Map<Class<? extends org.activiti.bpmn.model.BaseElement>,DefaultProcessDiagramGenerator.ActivityDrawInstruction> activityDrawInstructions
protected Map<Class<? extends org.activiti.bpmn.model.BaseElement>,DefaultProcessDiagramGenerator.ArtifactDrawInstruction> artifactDrawInstructions
public DefaultProcessDiagramGenerator()
public DefaultProcessDiagramGenerator(double scaleFactor)
public InputStream generateDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, List<String> highLightedFlows, String activityFontName, String labelFontName, String annotationFontName, ClassLoader customClassLoader, double scaleFactor)
HMProcessDiagramGenerator
generateDiagram
in interface HMProcessDiagramGenerator
generateDiagram
in interface org.activiti.image.ProcessDiagramGenerator
bpmnModel
- 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 fontannotationFontName
- override the default annotation fontcustomClassLoader
- provide a custom classloader for retrieving icon imagespublic InputStream generateDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, List<String> highLightedFlows, String activityFontName, String labelFontName, String annotationFontName, ClassLoader customClassLoader, double scaleFactor, List<String> highLightedCurrentActivities)
generateDiagram
in interface HMProcessDiagramGenerator
public InputStream generateDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, List<String> highLightedFlows)
HMProcessDiagramGenerator
generateDiagram
in interface HMProcessDiagramGenerator
generateDiagram
in interface org.activiti.image.ProcessDiagramGenerator
bpmnModel
- bpmn model to get diagram forimageType
- type of the image to generate.highLightedActivities
- activities to highlighthighLightedFlows
- flows to highlightpublic InputStream generateDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, List<String> highLightedFlows, double scaleFactor)
generateDiagram
in interface HMProcessDiagramGenerator
generateDiagram
in interface org.activiti.image.ProcessDiagramGenerator
public InputStream generateDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel, String imageType, List<String> highLightedActivities)
generateDiagram
in interface HMProcessDiagramGenerator
generateDiagram
in interface org.activiti.image.ProcessDiagramGenerator
public InputStream generateDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, double scaleFactor)
generateDiagram
in interface HMProcessDiagramGenerator
generateDiagram
in interface org.activiti.image.ProcessDiagramGenerator
public InputStream generateDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel, String imageType, String activityFontName, String labelFontName, String annotationFontName, ClassLoader customClassLoader)
generateDiagram
in interface HMProcessDiagramGenerator
generateDiagram
in interface org.activiti.image.ProcessDiagramGenerator
public InputStream generateDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel, String imageType, String activityFontName, String labelFontName, String annotationFontName, ClassLoader customClassLoader, double scaleFactor)
generateDiagram
in interface HMProcessDiagramGenerator
generateDiagram
in interface org.activiti.image.ProcessDiagramGenerator
public InputStream generatePngDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel)
generatePngDiagram
in interface HMProcessDiagramGenerator
generatePngDiagram
in interface org.activiti.image.ProcessDiagramGenerator
public InputStream generatePngDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel, double scaleFactor)
generatePngDiagram
in interface HMProcessDiagramGenerator
generatePngDiagram
in interface org.activiti.image.ProcessDiagramGenerator
public InputStream generateJpgDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel)
generateJpgDiagram
in interface HMProcessDiagramGenerator
generateJpgDiagram
in interface org.activiti.image.ProcessDiagramGenerator
public InputStream generateJpgDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel, double scaleFactor)
generateJpgDiagram
in interface HMProcessDiagramGenerator
generateJpgDiagram
in interface org.activiti.image.ProcessDiagramGenerator
public BufferedImage generateImage(org.activiti.bpmn.model.BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, List<String> highLightedFlows, String activityFontName, String labelFontName, String annotationFontName, ClassLoader customClassLoader, double scaleFactor)
public BufferedImage generateImage(org.activiti.bpmn.model.BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, List<String> highLightedFlows, double scaleFactor)
public BufferedImage generatePngImage(org.activiti.bpmn.model.BpmnModel bpmnModel, double scaleFactor)
generatePngImage
in interface HMProcessDiagramGenerator
generatePngImage
in interface org.activiti.image.ProcessDiagramGenerator
protected DefaultProcessDiagramCanvas generateProcessDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, List<String> highLightedFlows, String activityFontName, String labelFontName, String annotationFontName, ClassLoader customClassLoader, double scaleFactor)
protected DefaultProcessDiagramCanvas generateProcessDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, List<String> highLightedFlows, String activityFontName, String labelFontName, String annotationFontName, ClassLoader customClassLoader, double scaleFactor, List<String> highCurrentLightedActivities)
protected void prepareBpmnModel(org.activiti.bpmn.model.BpmnModel bpmnModel)
protected void drawActivity(DefaultProcessDiagramCanvas processDiagramCanvas, org.activiti.bpmn.model.BpmnModel bpmnModel, org.activiti.bpmn.model.FlowNode flowNode, List<String> highLightedActivities, List<String> highLightedFlows, double scaleFactor)
protected void drawActivity(DefaultProcessDiagramCanvas processDiagramCanvas, org.activiti.bpmn.model.BpmnModel bpmnModel, org.activiti.bpmn.model.FlowNode flowNode, List<String> highLightedActivities, List<String> highLightedFlows, double scaleFactor, List<String> highLightedExecutedActivities)
protected static List<org.activiti.bpmn.model.GraphicInfo> connectionPerfectionizer(DefaultProcessDiagramCanvas processDiagramCanvas, org.activiti.bpmn.model.BpmnModel bpmnModel, org.activiti.bpmn.model.BaseElement sourceElement, org.activiti.bpmn.model.BaseElement targetElement, List<org.activiti.bpmn.model.GraphicInfo> graphicInfoList)
processDiagramCanvas
- bpmnModel
- sourceElement
- targetElement
- graphicInfoList
- protected static DefaultProcessDiagramCanvas.SHAPE_TYPE getShapeType(org.activiti.bpmn.model.BaseElement baseElement)
baseElement
- protected static org.activiti.bpmn.model.GraphicInfo getLineCenter(List<org.activiti.bpmn.model.GraphicInfo> graphicInfoList)
protected void drawArtifact(DefaultProcessDiagramCanvas processDiagramCanvas, org.activiti.bpmn.model.BpmnModel bpmnModel, org.activiti.bpmn.model.Artifact artifact)
protected static DefaultProcessDiagramCanvas initProcessDiagramCanvas(org.activiti.bpmn.model.BpmnModel bpmnModel, String imageType, String activityFontName, String labelFontName, String annotationFontName, ClassLoader customClassLoader)
protected static List<org.activiti.bpmn.model.Artifact> gatherAllArtifacts(org.activiti.bpmn.model.BpmnModel bpmnModel)
protected static List<org.activiti.bpmn.model.FlowNode> gatherAllFlowNodes(org.activiti.bpmn.model.BpmnModel bpmnModel)
protected static List<org.activiti.bpmn.model.FlowNode> gatherAllFlowNodes(org.activiti.bpmn.model.FlowElementsContainer flowElementsContainer)
public Map<Class<? extends org.activiti.bpmn.model.BaseElement>,DefaultProcessDiagramGenerator.ActivityDrawInstruction> getActivityDrawInstructions()
public void setActivityDrawInstructions(Map<Class<? extends org.activiti.bpmn.model.BaseElement>,DefaultProcessDiagramGenerator.ActivityDrawInstruction> activityDrawInstructions)
public Map<Class<? extends org.activiti.bpmn.model.BaseElement>,DefaultProcessDiagramGenerator.ArtifactDrawInstruction> getArtifactDrawInstructions()
public void setArtifactDrawInstructions(Map<Class<? extends org.activiti.bpmn.model.BaseElement>,DefaultProcessDiagramGenerator.ArtifactDrawInstruction> artifactDrawInstructions)
Copyright © 2019. All rights reserved.