public class ProcessDiagramCanvas extends Object
ProcessDiagramGenerator
Modifier and Type | Field and Description |
---|---|
protected static int |
ARROW_WIDTH |
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 Stroke |
END_EVENT_STROKE |
protected static Image |
ERROR_CATCH_IMAGE |
protected static Image |
ERROR_THROW_IMAGE |
protected static Stroke |
EVENT_SUBPROCESS_STROKE |
protected FontMetrics |
fontMetrics |
protected Graphics2D |
g |
protected static Stroke |
GATEWAY_TYPE_STROKE |
protected static Color |
HIGHLIGHT_COLOR |
protected static int |
ICON_SIZE |
protected static 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 |
TASK_COLOR |
protected static Stroke |
THICK_TASK_BORDER_STROKE |
protected static Image |
TIMER_IMAGE |
protected static Image |
USERTASK_IMAGE |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 |
drawBusinessRuleTask(String name,
int x,
int y,
int width,
int height) |
void |
drawCatchingErroEvent(int x,
int y,
int width,
int height) |
void |
drawCatchingEvent(int x,
int y,
int width,
int height,
Image image) |
void |
drawCatchingSignalEvent(int x,
int y,
int width,
int height) |
void |
drawCatchingTimerEvent(int x,
int y,
int width,
int height) |
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 |
drawErrorEndEvent(int x,
int y,
int width,
int height) |
void |
drawErrorStartEvent(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 |
drawManualTask(String name,
int x,
int y,
int width,
int height) |
void |
drawMultiInstanceMarker(boolean sequential,
int x,
int y,
int width,
int height) |
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 srcX,
int srcY,
int targetX,
int targetY,
boolean conditional) |
void |
drawSequenceflowWithoutArrow(int srcX,
int srcY,
int targetX,
int targetY,
boolean conditional) |
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 |
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.
|
protected static final Logger LOGGER
protected static final int ARROW_WIDTH
protected static final int CONDITIONAL_INDICATOR_WIDTH
protected static final int MARKER_WIDTH
protected static Color TASK_COLOR
protected static Color BOUNDARY_EVENT_COLOR
protected static Color CONDITIONAL_INDICATOR_COLOR
protected static Color HIGHLIGHT_COLOR
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 int ICON_SIZE
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
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)
ProcessEngineException
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(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, Image image)
public void drawCatchingTimerEvent(int x, int y, int width, int height)
public void drawCatchingErroEvent(int x, int y, int width, int height)
public void drawCatchingSignalEvent(int x, int y, int width, int height)
public void drawThrowingSignalEvent(int x, int y, int width, int height)
public void drawSequenceflow(int srcX, int srcY, int targetX, int targetY, boolean conditional)
public void drawSequenceflowWithoutArrow(int srcX, int srcY, int targetX, int targetY, boolean conditional)
public void drawArrowHead(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)
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 drawMultiInstanceMarker(boolean sequential, int x, int y, int width, int height)
public void drawHighLight(int x, int y, int width, int height)
Copyright © 2015. All rights reserved.