HMProcessDiagramGenerator 1

/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.activiti.image;

import java.awt.image.BufferedImage;
import java.io.InputStream;
import java.util.List;

import org.activiti.bpmn.model.BpmnModel;

/**
* This interface declares methods to generate process diagram
*
* @author martin.grofcik
* @author Tijs Rademakers
*/
public interface HMProcessDiagramGenerator extends ProcessDiagramGenerator{

/**
* Generates a diagram of the given process definition, using the
* diagram interchange information of the process.
* @param bpmnModel bpmn model to get diagram for
* @param imageType type of the image to generate.
* @param highLightedActivities activities to highlight
* @param highLightedFlows flows to highlight
* @param activityFontName override the default activity font
* @param labelFontName override the default label font
* @param annotationFontName override the default annotation font
* @param customClassLoader provide a custom classloader for retrieving icon images
*/
public InputStream generateDiagram(BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, List<String> highLightedFlows,
String activityFontName, String labelFontName, String annotationFontName, ClassLoader customClassLoader, 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,List<String> currentHighlightdActivities);

/**
* Generates a diagram of the given process definition, using the
* diagram interchange information of the process.
* @param bpmnModel bpmn model to get diagram for
* @param imageType type of the image to generate.
* @param highLightedActivities activities to highlight
* @param highLightedFlows flows to highlight
*/
public InputStream generateDiagram(BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, List<String> highLightedFlows);

public InputStream generateDiagram(BpmnModel bpmnModel, String imageType, List<String> highLightedActivities,
List<String> highLightedFlows, double scaleFactor);

public InputStream generateDiagram(BpmnModel bpmnModel, String imageType, List<String> highLightedActivities);

public InputStream generateDiagram(BpmnModel bpmnModel, String imageType, List<String> highLightedActivities, double scaleFactor);

public InputStream generateDiagram(BpmnModel bpmnModel, String imageType, String activityFontName, String labelFontName, String annotationFontName, ClassLoader customClassLoader);

public InputStream generateDiagram(BpmnModel bpmnModel, String imageType, String activityFontName,
String labelFontName, String annotationFontName, ClassLoader customClassLoader, double scaleFactor);

public InputStream generatePngDiagram(BpmnModel bpmnModel);

public InputStream generatePngDiagram(BpmnModel bpmnModel, double scaleFactor);

public InputStream generateJpgDiagram(BpmnModel bpmnModel);

public InputStream generateJpgDiagram(BpmnModel bpmnModel, double scaleFactor);

public BufferedImage generatePngImage(BpmnModel bpmnModel, double scaleFactor);

}

posted @ 2019-06-10 15:58  albert_think  阅读(540)  评论(0编辑  收藏  举报