Package org.activiti.image.impl
Class DefaultProcessDiagramCanvas
- java.lang.Object
-
- org.activiti.image.impl.DefaultProcessDiagramCanvas
-
public class DefaultProcessDiagramCanvas extends java.lang.ObjectRepresents a canvas on which BPMN 2.0 constructs can be drawn.- See Also:
DefaultProcessDiagramGenerator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultProcessDiagramCanvas.SHAPE_TYPE
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringactivityFontNameprotected static java.awt.FontANNOTATION_FONTprotected static java.awt.StrokeANNOTATION_STROKEprotected static intANNOTATION_TEXT_PADDINGprotected java.lang.StringannotationFontNameprotected static intARROW_WIDTHprotected static java.awt.StrokeASSOCIATION_STROKEprotected static TaskIconTypeBUSINESS_RULE_TASK_IMAGEprotected intcanvasHeightprotected intcanvasWidthprotected booleanclosedprotected static IconTypeCOMPENSATE_CATCH_IMAGEprotected static IconTypeCOMPENSATE_THROW_IMAGEprotected static java.awt.ColorCONDITIONAL_INDICATOR_COLORprotected static intCONDITIONAL_INDICATOR_WIDTHprotected static java.awt.ColorCONNECTION_COLORprotected static intDEFAULT_INDICATOR_WIDTHprotected static java.awt.StrokeEND_EVENT_STROKEprotected static IconTypeERROR_CATCH_IMAGEprotected static IconTypeERROR_THROW_IMAGEprotected static java.awt.ColorEVENT_BORDER_COLORprotected static java.awt.ColorEVENT_COLORprotected static java.awt.StrokeEVENT_SUBPROCESS_STROKEprotected static intFONT_SIZEprotected static intFONT_SPACINGprotected java.awt.FontMetricsfontMetricsprotected ProcessDiagramSVGGraphics2Dgprotected static java.awt.StrokeGATEWAY_TYPE_STROKEprotected static java.awt.ColorHIGHLIGHT_COLORprotected static java.awt.StrokeHIGHLIGHT_FLOW_STROKEprotected static intICON_PADDINGprotected static java.awt.ColorLABEL_COLORprotected static java.awt.FontLABEL_FONTprotected java.lang.StringlabelFontNameprotected static intLINE_HEIGHTprotected static org.slf4j.LoggerLOGGERprotected static TaskIconTypeMANUALTASK_IMAGEprotected static intMARKER_WIDTHprotected static IconTypeMESSAGE_CATCH_IMAGEprotected intminXprotected intminYprotected static java.awt.StrokeMULTI_INSTANCE_STROKEprotected static java.awt.StrokeNON_INTERRUPTING_EVENT_STROKEprotected static TaskIconTypeRECEIVETASK_IMAGEprotected static TaskIconTypeSCRIPTTASK_IMAGEprotected static TaskIconTypeSENDTASK_IMAGEprotected static TaskIconTypeSERVICETASK_IMAGEprotected static IconTypeSIGNAL_CATCH_IMAGEprotected static IconTypeSIGNAL_THROW_IMAGEprotected static java.awt.ColorSUBPROCESS_BORDER_COLORprotected static java.awt.ColorSUBPROCESS_BOX_COLORprotected static java.awt.ColorTASK_BORDER_COLORprotected static java.awt.ColorTASK_BOX_COLORprotected static intTEXT_PADDINGprotected static java.awt.StrokeTHICK_TASK_BORDER_STROKEprotected static IconTypeTIMER_IMAGEprotected static TaskIconTypeUSERTASK_IMAGE
-
Constructor Summary
Constructors Constructor Description DefaultProcessDiagramCanvas(int width, int height, int minX, int minY)Creates an empty canvas with given width and height.DefaultProcessDiagramCanvas(int width, int height, int minX, int minY, java.lang.String activityFontName, java.lang.String labelFontName, java.lang.String annotationFontName)Creates an empty canvas with given width and height.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the canvas which dissallows further drawing and releases graphical resources.java.util.List<org.activiti.bpmn.model.GraphicInfo>connectionPerfectionizer(DefaultProcessDiagramCanvas.SHAPE_TYPE sourceShapeType, DefaultProcessDiagramCanvas.SHAPE_TYPE targetShapeType, org.activiti.bpmn.model.GraphicInfo sourceGraphicInfo, org.activiti.bpmn.model.GraphicInfo targetGraphicInfo, java.util.List<org.activiti.bpmn.model.GraphicInfo> graphicInfoList)This method makes coordinates of connection flow better.voiddrawActivityMarkers(int x, int y, int width, int height, boolean multiInstanceSequential, boolean multiInstanceParallel, boolean collapsed)voiddrawArrowHead(java.awt.geom.Line2D.Double line)voiddrawAssociation(int[] xPoints, int[] yPoints, org.activiti.bpmn.model.AssociationDirection associationDirection, boolean highLighted)voiddrawBusinessRuleTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawCatchingCompensateEvent(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)voiddrawCatchingCompensateEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)voiddrawCatchingErrorEvent(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)voiddrawCatchingErrorEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)voiddrawCatchingEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting, IconType icon, java.lang.String eventType)voiddrawCatchingMessageEvent(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)voiddrawCatchingMessageEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)voiddrawCatchingSignalEvent(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)voiddrawCatchingSignalEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)voiddrawCatchingTimerEvent(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)voiddrawCatchingTimerEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)voiddrawCollapsedCallActivity(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawCollapsedMarker(int x, int y, int width, int height)voiddrawCollapsedSubProcess(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo, java.lang.Boolean isTriggeredByEvent)protected voiddrawCollapsedTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean thickBorder)voiddrawConditionalSequenceFlowIndicator(java.awt.geom.Line2D.Double line)voiddrawConnection(int[] xPoints, int[] yPoints, boolean conditional, boolean isDefault, java.lang.String connectionType, org.activiti.bpmn.model.AssociationDirection associationDirection, boolean highLighted)voiddrawDefaultSequenceFlowIndicator(java.awt.geom.Line2D.Double line)voiddrawErrorEndEvent(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawErrorStartEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawEventBasedGateway(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawExclusiveGateway(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawExpandedSubProcess(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo, java.lang.Class<?> type)voiddrawGateway(org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawHighLight(int x, int y, int width, int height)voiddrawInclusiveGateway(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawLabel(java.lang.String text, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawLabel(java.lang.String text, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean centered)voiddrawManualTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawMessageStartEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawMultiInstanceMarker(boolean sequential, int x, int y, int width, int height)protected voiddrawMultilineAnnotationText(java.lang.String text, int x, int y, int boxWidth, int boxHeight)protected voiddrawMultilineCentredText(java.lang.String text, int x, int y, int boxWidth, int boxHeight)protected voiddrawMultilineText(java.lang.String text, int x, int y, int boxWidth, int boxHeight, boolean centered)voiddrawNoneEndEvent(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawNoneStartEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawParallelGateway(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawPoolOrLane(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawReceiveTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawScriptTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawSendTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawSequenceflow(int[] xPoints, int[] yPoints, boolean conditional, boolean isDefault, boolean highLighted)voiddrawSequenceflow(int srcX, int srcY, int targetX, int targetY, boolean conditional)voiddrawSequenceflow(int srcX, int srcY, int targetX, int targetY, boolean conditional, boolean highLighted)voiddrawSequenceflowWithoutArrow(int srcX, int srcY, int targetX, int targetY, boolean conditional)voiddrawSequenceflowWithoutArrow(int srcX, int srcY, int targetX, int targetY, boolean conditional, boolean highLighted)voiddrawServiceTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawSignalStartEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawStartEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo, IconType icon)voiddrawTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)protected voiddrawTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean thickBorder)voiddrawTask(TaskIconType icon, java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawTextAnnotation(java.lang.String id, java.lang.String text, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawThrowingCompensateEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawThrowingNoneEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawThrowingSignalEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawTimerStartEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)voiddrawUserTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)protected java.lang.StringfitTextToWidth(java.lang.String original, int width)java.io.InputStreamgenerateImage()Generates an image of what currently is drawn on the canvas.voidinitialize()
-
-
-
Field Detail
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
ARROW_WIDTH
protected static final int ARROW_WIDTH
- See Also:
- Constant Field Values
-
CONDITIONAL_INDICATOR_WIDTH
protected static final int CONDITIONAL_INDICATOR_WIDTH
- See Also:
- Constant Field Values
-
DEFAULT_INDICATOR_WIDTH
protected static final int DEFAULT_INDICATOR_WIDTH
- See Also:
- Constant Field Values
-
MARKER_WIDTH
protected static final int MARKER_WIDTH
- See Also:
- Constant Field Values
-
FONT_SIZE
protected static final int FONT_SIZE
- See Also:
- Constant Field Values
-
FONT_SPACING
protected static final int FONT_SPACING
- See Also:
- Constant Field Values
-
TEXT_PADDING
protected static final int TEXT_PADDING
- See Also:
- Constant Field Values
-
ANNOTATION_TEXT_PADDING
protected static final int ANNOTATION_TEXT_PADDING
- See Also:
- Constant Field Values
-
LINE_HEIGHT
protected static final int LINE_HEIGHT
- See Also:
- Constant Field Values
-
TASK_BOX_COLOR
protected static java.awt.Color TASK_BOX_COLOR
-
SUBPROCESS_BOX_COLOR
protected static java.awt.Color SUBPROCESS_BOX_COLOR
-
EVENT_COLOR
protected static java.awt.Color EVENT_COLOR
-
CONNECTION_COLOR
protected static java.awt.Color CONNECTION_COLOR
-
CONDITIONAL_INDICATOR_COLOR
protected static java.awt.Color CONDITIONAL_INDICATOR_COLOR
-
HIGHLIGHT_COLOR
protected static java.awt.Color HIGHLIGHT_COLOR
-
LABEL_COLOR
protected static java.awt.Color LABEL_COLOR
-
TASK_BORDER_COLOR
protected static java.awt.Color TASK_BORDER_COLOR
-
EVENT_BORDER_COLOR
protected static java.awt.Color EVENT_BORDER_COLOR
-
SUBPROCESS_BORDER_COLOR
protected static java.awt.Color SUBPROCESS_BORDER_COLOR
-
LABEL_FONT
protected static java.awt.Font LABEL_FONT
-
ANNOTATION_FONT
protected static java.awt.Font ANNOTATION_FONT
-
THICK_TASK_BORDER_STROKE
protected static java.awt.Stroke THICK_TASK_BORDER_STROKE
-
GATEWAY_TYPE_STROKE
protected static java.awt.Stroke GATEWAY_TYPE_STROKE
-
END_EVENT_STROKE
protected static java.awt.Stroke END_EVENT_STROKE
-
MULTI_INSTANCE_STROKE
protected static java.awt.Stroke MULTI_INSTANCE_STROKE
-
EVENT_SUBPROCESS_STROKE
protected static java.awt.Stroke EVENT_SUBPROCESS_STROKE
-
NON_INTERRUPTING_EVENT_STROKE
protected static java.awt.Stroke NON_INTERRUPTING_EVENT_STROKE
-
HIGHLIGHT_FLOW_STROKE
protected static java.awt.Stroke HIGHLIGHT_FLOW_STROKE
-
ANNOTATION_STROKE
protected static java.awt.Stroke ANNOTATION_STROKE
-
ASSOCIATION_STROKE
protected static java.awt.Stroke ASSOCIATION_STROKE
-
ICON_PADDING
protected static int ICON_PADDING
-
USERTASK_IMAGE
protected static TaskIconType USERTASK_IMAGE
-
SCRIPTTASK_IMAGE
protected static TaskIconType SCRIPTTASK_IMAGE
-
SERVICETASK_IMAGE
protected static TaskIconType SERVICETASK_IMAGE
-
RECEIVETASK_IMAGE
protected static TaskIconType RECEIVETASK_IMAGE
-
SENDTASK_IMAGE
protected static TaskIconType SENDTASK_IMAGE
-
MANUALTASK_IMAGE
protected static TaskIconType MANUALTASK_IMAGE
-
BUSINESS_RULE_TASK_IMAGE
protected static TaskIconType BUSINESS_RULE_TASK_IMAGE
-
TIMER_IMAGE
protected static IconType TIMER_IMAGE
-
COMPENSATE_THROW_IMAGE
protected static IconType COMPENSATE_THROW_IMAGE
-
COMPENSATE_CATCH_IMAGE
protected static IconType COMPENSATE_CATCH_IMAGE
-
ERROR_THROW_IMAGE
protected static IconType ERROR_THROW_IMAGE
-
ERROR_CATCH_IMAGE
protected static IconType ERROR_CATCH_IMAGE
-
MESSAGE_CATCH_IMAGE
protected static IconType MESSAGE_CATCH_IMAGE
-
SIGNAL_CATCH_IMAGE
protected static IconType SIGNAL_CATCH_IMAGE
-
SIGNAL_THROW_IMAGE
protected static IconType SIGNAL_THROW_IMAGE
-
canvasWidth
protected int canvasWidth
-
canvasHeight
protected int canvasHeight
-
minX
protected int minX
-
minY
protected int minY
-
g
protected ProcessDiagramSVGGraphics2D g
-
fontMetrics
protected java.awt.FontMetrics fontMetrics
-
closed
protected boolean closed
-
activityFontName
protected java.lang.String activityFontName
-
labelFontName
protected java.lang.String labelFontName
-
annotationFontName
protected java.lang.String annotationFontName
-
-
Constructor Detail
-
DefaultProcessDiagramCanvas
public DefaultProcessDiagramCanvas(int width, int height, int minX, int minY, java.lang.String activityFontName, java.lang.String labelFontName, java.lang.String annotationFontName)Creates an empty canvas with given width and height.Allows to specify minimal boundaries on the left and upper side of the canvas. This is useful for diagrams that have white space there. Everything beneath these minimum values will be cropped. It's also possible to pass a specific font name and a class loader for the icon images.
-
DefaultProcessDiagramCanvas
public DefaultProcessDiagramCanvas(int width, int height, int minX, int minY)Creates an empty canvas with given width and height.Allows to specify minimal boundaries on the left and upper side of the canvas. This is useful for diagrams that have white space there (eg Signavio). Everything beneath these minimum values will be cropped.
- Parameters:
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.
-
-
Method Detail
-
initialize
public void initialize()
-
generateImage
public java.io.InputStream generateImage()
Generates an image of what currently is drawn on the canvas.Throws an
ActivitiImageExceptionwhenclose()is already called.
-
close
public void close()
Closes the canvas which dissallows further drawing and releases graphical resources.
-
drawNoneStartEvent
public void drawNoneStartEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawTimerStartEvent
public void drawTimerStartEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawSignalStartEvent
public void drawSignalStartEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawMessageStartEvent
public void drawMessageStartEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawStartEvent
public void drawStartEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo, IconType icon)
-
drawNoneEndEvent
public void drawNoneEndEvent(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawErrorEndEvent
public void drawErrorEndEvent(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawErrorStartEvent
public void drawErrorStartEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawCatchingEvent
public void drawCatchingEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting, IconType icon, java.lang.String eventType)
-
drawCatchingCompensateEvent
public void drawCatchingCompensateEvent(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)
-
drawCatchingCompensateEvent
public void drawCatchingCompensateEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)
-
drawCatchingTimerEvent
public void drawCatchingTimerEvent(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)
-
drawCatchingTimerEvent
public void drawCatchingTimerEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)
-
drawCatchingErrorEvent
public void drawCatchingErrorEvent(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)
-
drawCatchingErrorEvent
public void drawCatchingErrorEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)
-
drawCatchingSignalEvent
public void drawCatchingSignalEvent(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)
-
drawCatchingSignalEvent
public void drawCatchingSignalEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)
-
drawCatchingMessageEvent
public void drawCatchingMessageEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)
-
drawCatchingMessageEvent
public void drawCatchingMessageEvent(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean isInterrupting)
-
drawThrowingCompensateEvent
public void drawThrowingCompensateEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawThrowingSignalEvent
public void drawThrowingSignalEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawThrowingNoneEvent
public void drawThrowingNoneEvent(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawSequenceflow
public void drawSequenceflow(int srcX, int srcY, int targetX, int targetY, boolean conditional)
-
drawSequenceflow
public void drawSequenceflow(int srcX, int srcY, int targetX, int targetY, boolean conditional, boolean highLighted)
-
drawAssociation
public void drawAssociation(int[] xPoints, int[] yPoints, org.activiti.bpmn.model.AssociationDirection associationDirection, boolean highLighted)
-
drawSequenceflow
public void drawSequenceflow(int[] xPoints, int[] yPoints, boolean conditional, boolean isDefault, boolean highLighted)
-
drawConnection
public void drawConnection(int[] xPoints, int[] yPoints, boolean conditional, boolean isDefault, java.lang.String connectionType, org.activiti.bpmn.model.AssociationDirection associationDirection, boolean highLighted)
-
drawSequenceflowWithoutArrow
public void drawSequenceflowWithoutArrow(int srcX, int srcY, int targetX, int targetY, boolean conditional)
-
drawSequenceflowWithoutArrow
public void drawSequenceflowWithoutArrow(int srcX, int srcY, int targetX, int targetY, boolean conditional, boolean highLighted)
-
drawArrowHead
public void drawArrowHead(java.awt.geom.Line2D.Double line)
-
drawDefaultSequenceFlowIndicator
public void drawDefaultSequenceFlowIndicator(java.awt.geom.Line2D.Double line)
-
drawConditionalSequenceFlowIndicator
public void drawConditionalSequenceFlowIndicator(java.awt.geom.Line2D.Double line)
-
drawTask
public void drawTask(TaskIconType icon, java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawTask
public void drawTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawPoolOrLane
public void drawPoolOrLane(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawTask
protected void drawTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean thickBorder)
-
drawMultilineCentredText
protected void drawMultilineCentredText(java.lang.String text, int x, int y, int boxWidth, int boxHeight)
-
drawMultilineAnnotationText
protected void drawMultilineAnnotationText(java.lang.String text, int x, int y, int boxWidth, int boxHeight)
-
drawMultilineText
protected void drawMultilineText(java.lang.String text, int x, int y, int boxWidth, int boxHeight, boolean centered)
-
fitTextToWidth
protected java.lang.String fitTextToWidth(java.lang.String original, int width)
-
drawUserTask
public void drawUserTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawScriptTask
public void drawScriptTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawServiceTask
public void drawServiceTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawReceiveTask
public void drawReceiveTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawSendTask
public void drawSendTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawManualTask
public void drawManualTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawBusinessRuleTask
public void drawBusinessRuleTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawExpandedSubProcess
public void drawExpandedSubProcess(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo, java.lang.Class<?> type)
-
drawCollapsedSubProcess
public void drawCollapsedSubProcess(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo, java.lang.Boolean isTriggeredByEvent)
-
drawCollapsedCallActivity
public void drawCollapsedCallActivity(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawCollapsedTask
protected void drawCollapsedTask(java.lang.String id, java.lang.String name, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean thickBorder)
-
drawCollapsedMarker
public void drawCollapsedMarker(int x, int y, int width, int height)
-
drawActivityMarkers
public void drawActivityMarkers(int x, int y, int width, int height, boolean multiInstanceSequential, boolean multiInstanceParallel, boolean collapsed)
-
drawGateway
public void drawGateway(org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawParallelGateway
public void drawParallelGateway(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawExclusiveGateway
public void drawExclusiveGateway(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawInclusiveGateway
public void drawInclusiveGateway(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawEventBasedGateway
public void drawEventBasedGateway(java.lang.String id, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawMultiInstanceMarker
public void drawMultiInstanceMarker(boolean sequential, int x, int y, int width, int height)
-
drawHighLight
public void drawHighLight(int x, int y, int width, int height)
-
drawTextAnnotation
public void drawTextAnnotation(java.lang.String id, java.lang.String text, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawLabel
public void drawLabel(java.lang.String text, org.activiti.bpmn.model.GraphicInfo graphicInfo)
-
drawLabel
public void drawLabel(java.lang.String text, org.activiti.bpmn.model.GraphicInfo graphicInfo, boolean centered)
-
connectionPerfectionizer
public java.util.List<org.activiti.bpmn.model.GraphicInfo> connectionPerfectionizer(DefaultProcessDiagramCanvas.SHAPE_TYPE sourceShapeType, DefaultProcessDiagramCanvas.SHAPE_TYPE targetShapeType, org.activiti.bpmn.model.GraphicInfo sourceGraphicInfo, org.activiti.bpmn.model.GraphicInfo targetGraphicInfo, java.util.List<org.activiti.bpmn.model.GraphicInfo> graphicInfoList)
This method makes coordinates of connection flow better.- Parameters:
sourceShapeType-targetShapeType-sourceGraphicInfo-targetGraphicInfo-graphicInfoList-
-
-