|
ALBPM Process API (PAPI) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface represents the diagram of a given process. It has several methods to decorate the process or add different labels to activities and other objects.
| Field Summary | |
static String |
THEME_BPMN
|
static String |
THEME_BUSINESS_ANALYST
|
static String |
THEME_CLASSIC
|
static String |
THEME_COLOR_BPMN
|
static String |
THEME_UML
|
static String[] |
themes
|
static String |
TRANSITION_CONDITION
|
static String |
TRANSITION_DESCRIPTION
|
static String |
TRANSITION_NAME
|
| Method Summary | |
BufferedImage |
getIconForActivity(String activityId)
Gets the icon image of the activity using the selected theme. |
BufferedImage |
getImage()
Gets the image of the process. |
BufferedImage |
getImageForActivity(String activityId)
Gets the image being used to render the activity shape by returning the corresponding image taken from the used theme or the custom image if the designer has used a local image |
String |
getRelativePathForActivityIconImage(String activityId)
|
String |
getRelativePathForActivityImage(String activityId)
|
Shape |
getShapeForActivity(String activityId)
Gets the shape of the bounds of the passed activity |
void |
highlightActivityPath(ProcessDiagramPath[] events)
Sets an activity path to be highlighted in the process diagram. |
void |
setDrawFlowOnly(boolean value)
Sets the diagram to draw only the flow of the process excluding global activities and roles with only globals inside |
void |
setHeadless(boolean isHeadless)
|
void |
setHorizontalDrawing(boolean isHorizontalDrawing)
Defines if the process will be drawn horizontally. |
void |
setLocale(Locale loc)
Sets the default locale for the process so all visible labels are printed in this locale if available Otherwise the default locale will be used. |
void |
setScale(float scale)
|
void |
setTheme(String themeName)
Sets the theme to be used in the drawing |
void |
setTransitionMessageType(String type)
Sets what to render as label for conditional transitions |
void |
showIconInActivity(String activityId,
ImageIcon icon)
Shows an icon in the upper right side of the activity |
void |
showTextInActivity(String activityId,
String text)
Sets a label to be located in the upper side of the activity. |
| Field Detail |
public static final String THEME_BPMN
public static final String THEME_BUSINESS_ANALYST
public static final String THEME_CLASSIC
public static final String THEME_COLOR_BPMN
public static final String THEME_UML
public static final String[] themes
public static final String TRANSITION_CONDITION
public static final String TRANSITION_DESCRIPTION
public static final String TRANSITION_NAME
| Method Detail |
public void setDrawFlowOnly(boolean value)
value - public void setHorizontalDrawing(boolean isHorizontalDrawing)
isHorizontalDrawing - public BufferedImage getIconForActivity(String activityId)
activityId -
public BufferedImage getImage()
public BufferedImage getImageForActivity(String activityId)
activityId -
public void setLocale(Locale loc)
loc - public String getRelativePathForActivityIconImage(String activityId)
public String getRelativePathForActivityImage(String activityId)
public void setScale(float scale)
public Shape getShapeForActivity(String activityId)
activityId - - The activity's name
public void setTheme(String themeName)
themeName - public void setTransitionMessageType(String type)
type - The type of message to render: TRANSITION_CONDITION, TRANSITION_NAME, TRANSITION_DESCRIPTIONTRANSITION_CONDITION,
TRANSITION_NAME,
TRANSITION_DESCRIPTIONpublic void setHeadless(boolean isHeadless)
public void highlightActivityPath(ProcessDiagramPath[] events)
null the highlighted path is reset
events -
public void showIconInActivity(String activityId,
ImageIcon icon)
activityId - icon -
public void showTextInActivity(String activityId,
String text)
activityId - text -
|
ALBPM Process API (PAPI) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||