|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectorg.activiti.engine.impl.bpmn.diagram.ProcessDiagramCanvas
public class ProcessDiagramCanvas
Represents a canvas on which BPMN 2.0 constructs can be drawn. Some of the icons used are licenced under a Creative Commons Attribution 2.5 License, see http://www.famfamfam.com/lab/icons/silk/
ProcessDiagramGenerator
字段摘要 | |
---|---|
protected String |
activityFontName
|
protected static Font |
ANNOTATION_FONT
|
protected static Stroke |
ANNOTATION_STROKE
|
protected static int |
ANNOTATION_TEXT_PADDING
|
protected static int |
ARROW_WIDTH
|
protected static Stroke |
ASSOCIATION_STROKE
|
protected static Color |
BOUNDARY_EVENT_COLOR
|
protected static Image |
BUSINESS_RULE_TASK_IMAGE
|
protected int |
canvasHeight
|
protected int |
canvasWidth
|
protected boolean |
closed
|
protected static Color |
CONDITIONAL_INDICATOR_COLOR
|
protected static int |
CONDITIONAL_INDICATOR_WIDTH
|
protected static int |
DEFAULT_INDICATOR_WIDTH
|
protected static Stroke |
END_EVENT_STROKE
|
protected static Image |
ERROR_CATCH_IMAGE
|
protected static Image |
ERROR_THROW_IMAGE
|
protected static Stroke |
EVENT_SUBPROCESS_STROKE
|
protected static int |
FONT_SIZE
|
protected static int |
FONT_SPACING
|
protected FontMetrics |
fontMetrics
|
protected Graphics2D |
g
|
protected static Stroke |
GATEWAY_TYPE_STROKE
|
protected static Color |
HIGHLIGHT_COLOR
|
protected static Stroke |
HIGHLIGHT_FLOW_STROKE
|
protected static int |
ICON_PADDING
|
protected static int |
ICON_SIZE
|
protected static Stroke |
INTERRUPTING_EVENT_STROKE
|
protected static Color |
LABEL_COLOR
|
protected static Font |
LABEL_FONT
|
protected String |
labelFontName
|
protected static int |
LINE_HEIGHT
|
protected static org.slf4j.Logger |
LOGGER
|
protected static Image |
MANUALTASK_IMAGE
|
protected static int |
MARKER_WIDTH
|
protected int |
minX
|
protected int |
minY
|
protected static Stroke |
MULTI_INSTANCE_STROKE
|
protected BufferedImage |
processDiagram
|
protected static Image |
RECEIVETASK_IMAGE
|
protected static Image |
SCRIPTTASK_IMAGE
|
protected static Image |
SENDTASK_IMAGE
|
protected static Image |
SERVICETASK_IMAGE
|
protected static Image |
SIGNAL_CATCH_IMAGE
|
protected static Image |
SIGNAL_THROW_IMAGE
|
protected static Color |
SUBPROCESS_BOX_COLOR
|
protected static Color |
TASK_BOX_COLOR
|
protected static Font |
TASK_FONT
|
protected static int |
TEXT_PADDING
|
protected static Stroke |
THICK_TASK_BORDER_STROKE
|
protected static Image |
TIMER_IMAGE
|
protected static Image |
USERTASK_IMAGE
|
构造方法摘要 | |
---|---|
ProcessDiagramCanvas(int width,
int height)
Creates an empty canvas with given width and height. |
|
ProcessDiagramCanvas(int width,
int height,
int minX,
int minY)
Creates an empty canvas with given width and height. |
方法摘要 | |
---|---|
void |
close()
Closes the canvas which dissallows further drawing and releases graphical resources. |
void |
drawActivityMarkers(int x,
int y,
int width,
int height,
boolean multiInstanceSequential,
boolean multiInstanceParallel,
boolean collapsed)
|
void |
drawArrowHead(Line2D.Double line)
|
void |
drawAssociation(int[] xPoints,
int[] yPoints,
org.activiti.bpmn.model.AssociationDirection associationDirection,
boolean highLighted)
|
void |
drawBusinessRuleTask(String name,
int x,
int y,
int width,
int height)
|
void |
drawCatchingErrorEvent(int x,
int y,
int width,
int height,
boolean isInterrupting)
|
void |
drawCatchingErrorEvent(String name,
int x,
int y,
int width,
int height,
boolean isInterrupting)
|
void |
drawCatchingEvent(int x,
int y,
int width,
int height,
boolean isInterrupting,
Image image)
|
void |
drawCatchingSignalEvent(int x,
int y,
int width,
int height,
boolean isInterrupting)
|
void |
drawCatchingSignalEvent(String name,
int x,
int y,
int width,
int height,
boolean isInterrupting)
|
void |
drawCatchingTimerEvent(int x,
int y,
int width,
int height,
boolean isInterrupting)
|
void |
drawCatchingTimerEvent(String name,
int x,
int y,
int width,
int height,
boolean isInterrupting)
|
void |
drawCollapsedCallActivity(String name,
int x,
int y,
int width,
int height)
|
void |
drawCollapsedMarker(int x,
int y,
int width,
int height)
|
void |
drawCollapsedSubProcess(String name,
int x,
int y,
int width,
int height,
Boolean isTriggeredByEvent)
|
protected void |
drawCollapsedTask(String name,
int x,
int y,
int width,
int height,
boolean thickBorder)
|
void |
drawConditionalSequenceFlowIndicator(Line2D.Double line)
|
void |
drawConnection(int[] xPoints,
int[] yPoints,
boolean conditional,
boolean isDefault,
String connectionType,
org.activiti.bpmn.model.AssociationDirection associationDirection,
boolean highLighted)
|
void |
drawDefaultSequenceFlowIndicator(Line2D.Double line)
|
void |
drawErrorEndEvent(int x,
int y,
int width,
int height)
|
void |
drawErrorEndEvent(String name,
int x,
int y,
int width,
int height)
|
void |
drawErrorStartEvent(int x,
int y,
int width,
int height)
|
void |
drawEventBasedGateway(int x,
int y,
int width,
int height)
|
void |
drawExclusiveGateway(int x,
int y,
int width,
int height)
|
void |
drawExpandedSubProcess(String name,
int x,
int y,
int width,
int height,
Boolean isTriggeredByEvent)
|
void |
drawGateway(int x,
int y,
int width,
int height)
|
void |
drawHighLight(int x,
int y,
int width,
int height)
|
void |
drawInclusiveGateway(int x,
int y,
int width,
int height)
|
void |
drawLabel(String text,
int x,
int y,
int width,
int height)
|
void |
drawLabel(String text,
int x,
int y,
int width,
int height,
boolean centered)
|
void |
drawManualTask(String name,
int x,
int y,
int width,
int height)
|
void |
drawMultiInstanceMarker(boolean sequential,
int x,
int y,
int width,
int height)
|
protected void |
drawMultilineAnnotationText(String text,
int x,
int y,
int boxWidth,
int boxHeight)
|
protected void |
drawMultilineCentredText(String text,
int x,
int y,
int boxWidth,
int boxHeight)
|
protected void |
drawMultilineText(String text,
int x,
int y,
int boxWidth,
int boxHeight,
boolean centered)
|
void |
drawNoneEndEvent(int x,
int y,
int width,
int height)
|
void |
drawNoneStartEvent(int x,
int y,
int width,
int height)
|
void |
drawParallelGateway(int x,
int y,
int width,
int height)
|
void |
drawPoolOrLane(String name,
int x,
int y,
int width,
int height)
|
void |
drawReceiveTask(String name,
int x,
int y,
int width,
int height)
|
void |
drawScriptTask(String name,
int x,
int y,
int width,
int height)
|
void |
drawSendTask(String name,
int x,
int y,
int width,
int height)
|
void |
drawSequenceflow(int[] xPoints,
int[] yPoints,
boolean conditional,
boolean isDefault,
boolean highLighted)
|
void |
drawSequenceflow(int srcX,
int srcY,
int targetX,
int targetY,
boolean conditional)
|
void |
drawSequenceflow(int srcX,
int srcY,
int targetX,
int targetY,
boolean conditional,
boolean highLighted)
|
void |
drawSequenceflowWithoutArrow(int srcX,
int srcY,
int targetX,
int targetY,
boolean conditional)
|
void |
drawSequenceflowWithoutArrow(int srcX,
int srcY,
int targetX,
int targetY,
boolean conditional,
boolean highLighted)
|
void |
drawServiceTask(String name,
int x,
int y,
int width,
int height)
|
void |
drawStartEvent(int x,
int y,
int width,
int height,
Image image)
|
void |
drawTask(String name,
int x,
int y,
int width,
int height)
|
protected void |
drawTask(String name,
int x,
int y,
int width,
int height,
boolean thickBorder)
|
void |
drawTextAnnotation(String text,
int x,
int y,
int width,
int height)
|
void |
drawThrowingNoneEvent(int x,
int y,
int width,
int height)
|
void |
drawThrowingSignalEvent(int x,
int y,
int width,
int height)
|
void |
drawTimerStartEvent(int x,
int y,
int width,
int height)
|
void |
drawUserTask(String name,
int x,
int y,
int width,
int height)
|
protected String |
fitTextToWidth(String original,
int width)
|
InputStream |
generateImage(String imageType)
Generates an image of what currently is drawn on the canvas. |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
protected static final org.slf4j.Logger LOGGER
protected static final int ARROW_WIDTH
protected static final int CONDITIONAL_INDICATOR_WIDTH
protected static final int DEFAULT_INDICATOR_WIDTH
protected static final int MARKER_WIDTH
protected static final int FONT_SIZE
protected static final int FONT_SPACING
protected static final int TEXT_PADDING
protected static final int ANNOTATION_TEXT_PADDING
protected static final int LINE_HEIGHT
protected static Color TASK_BOX_COLOR
protected static Color SUBPROCESS_BOX_COLOR
protected static Color BOUNDARY_EVENT_COLOR
protected static Color CONDITIONAL_INDICATOR_COLOR
protected static Color HIGHLIGHT_COLOR
protected static Color LABEL_COLOR
protected static Font LABEL_FONT
protected static Font ANNOTATION_FONT
protected static Font TASK_FONT
protected static Stroke THICK_TASK_BORDER_STROKE
protected static Stroke GATEWAY_TYPE_STROKE
protected static Stroke END_EVENT_STROKE
protected static Stroke MULTI_INSTANCE_STROKE
protected static Stroke EVENT_SUBPROCESS_STROKE
protected static Stroke INTERRUPTING_EVENT_STROKE
protected static Stroke HIGHLIGHT_FLOW_STROKE
protected static Stroke ANNOTATION_STROKE
protected static Stroke ASSOCIATION_STROKE
protected static int ICON_SIZE
protected static int ICON_PADDING
protected static Image USERTASK_IMAGE
protected static Image SCRIPTTASK_IMAGE
protected static Image SERVICETASK_IMAGE
protected static Image RECEIVETASK_IMAGE
protected static Image SENDTASK_IMAGE
protected static Image MANUALTASK_IMAGE
protected static Image BUSINESS_RULE_TASK_IMAGE
protected static Image TIMER_IMAGE
protected static Image ERROR_THROW_IMAGE
protected static Image ERROR_CATCH_IMAGE
protected static Image SIGNAL_CATCH_IMAGE
protected static Image SIGNAL_THROW_IMAGE
protected int canvasWidth
protected int canvasHeight
protected int minX
protected int minY
protected BufferedImage processDiagram
protected Graphics2D g
protected FontMetrics fontMetrics
protected boolean closed
protected String activityFontName
protected String labelFontName
构造方法详细信息 |
---|
public ProcessDiagramCanvas(int width, int height)
public ProcessDiagramCanvas(int width, int height, int minX, int minY)
minX
- Hint that will be used when generating the image. Parts that fall
below minX on the horizontal scale will be cropped.minY
- Hint that will be used when generating the image. Parts that fall
below minX on the horizontal scale will be cropped.方法详细信息 |
---|
public InputStream generateImage(String imageType)
ActivitiException
when close()
is already
called.
public void close()
public void drawNoneStartEvent(int x, int y, int width, int height)
public void drawTimerStartEvent(int x, int y, int width, int height)
public void drawStartEvent(int x, int y, int width, int height, Image image)
public void drawNoneEndEvent(int x, int y, int width, int height)
public void drawErrorEndEvent(String name, int x, int y, int width, int height)
public void drawErrorEndEvent(int x, int y, int width, int height)
public void drawErrorStartEvent(int x, int y, int width, int height)
public void drawCatchingEvent(int x, int y, int width, int height, boolean isInterrupting, Image image)
public void drawCatchingTimerEvent(String name, int x, int y, int width, int height, boolean isInterrupting)
public void drawCatchingTimerEvent(int x, int y, int width, int height, boolean isInterrupting)
public void drawCatchingErrorEvent(String name, int x, int y, int width, int height, boolean isInterrupting)
public void drawCatchingErrorEvent(int x, int y, int width, int height, boolean isInterrupting)
public void drawCatchingSignalEvent(String name, int x, int y, int width, int height, boolean isInterrupting)
public void drawCatchingSignalEvent(int x, int y, int width, int height, boolean isInterrupting)
public void drawThrowingSignalEvent(int x, int y, int width, int height)
public void drawThrowingNoneEvent(int x, int y, int width, int height)
public void drawSequenceflow(int srcX, int srcY, int targetX, int targetY, boolean conditional)
public void drawSequenceflow(int srcX, int srcY, int targetX, int targetY, boolean conditional, boolean highLighted)
public void drawAssociation(int[] xPoints, int[] yPoints, org.activiti.bpmn.model.AssociationDirection associationDirection, boolean highLighted)
public void drawSequenceflow(int[] xPoints, int[] yPoints, boolean conditional, boolean isDefault, boolean highLighted)
public void drawConnection(int[] xPoints, int[] yPoints, boolean conditional, boolean isDefault, String connectionType, org.activiti.bpmn.model.AssociationDirection associationDirection, boolean highLighted)
public void drawSequenceflowWithoutArrow(int srcX, int srcY, int targetX, int targetY, boolean conditional)
public void drawSequenceflowWithoutArrow(int srcX, int srcY, int targetX, int targetY, boolean conditional, boolean highLighted)
public void drawArrowHead(Line2D.Double line)
public void drawDefaultSequenceFlowIndicator(Line2D.Double line)
public void drawConditionalSequenceFlowIndicator(Line2D.Double line)
public void drawTask(String name, int x, int y, int width, int height)
public void drawPoolOrLane(String name, int x, int y, int width, int height)
protected void drawTask(String name, int x, int y, int width, int height, boolean thickBorder)
protected void drawMultilineCentredText(String text, int x, int y, int boxWidth, int boxHeight)
protected void drawMultilineAnnotationText(String text, int x, int y, int boxWidth, int boxHeight)
protected void drawMultilineText(String text, int x, int y, int boxWidth, int boxHeight, boolean centered)
protected String fitTextToWidth(String original, int width)
public void drawUserTask(String name, int x, int y, int width, int height)
public void drawScriptTask(String name, int x, int y, int width, int height)
public void drawServiceTask(String name, int x, int y, int width, int height)
public void drawReceiveTask(String name, int x, int y, int width, int height)
public void drawSendTask(String name, int x, int y, int width, int height)
public void drawManualTask(String name, int x, int y, int width, int height)
public void drawBusinessRuleTask(String name, int x, int y, int width, int height)
public void drawExpandedSubProcess(String name, int x, int y, int width, int height, Boolean isTriggeredByEvent)
public void drawCollapsedSubProcess(String name, int x, int y, int width, int height, Boolean isTriggeredByEvent)
public void drawCollapsedCallActivity(String name, int x, int y, int width, int height)
protected void drawCollapsedTask(String name, int x, int y, int width, int height, boolean thickBorder)
public void drawCollapsedMarker(int x, int y, int width, int height)
public void drawActivityMarkers(int x, int y, int width, int height, boolean multiInstanceSequential, boolean multiInstanceParallel, boolean collapsed)
public void drawGateway(int x, int y, int width, int height)
public void drawParallelGateway(int x, int y, int width, int height)
public void drawExclusiveGateway(int x, int y, int width, int height)
public void drawInclusiveGateway(int x, int y, int width, int height)
public void drawEventBasedGateway(int x, int y, int width, int height)
public void drawMultiInstanceMarker(boolean sequential, int x, int y, int width, int height)
public void drawHighLight(int x, int y, int width, int height)
public void drawTextAnnotation(String text, int x, int y, int width, int height)
public void drawLabel(String text, int x, int y, int width, int height)
public void drawLabel(String text, int x, int y, int width, int height, boolean centered)
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |