com.yworks.yfiles.bpmn.view
Class BpmnChoreographyPainter
java.lang.Object
y.view.AbstractCustomNodePainter
com.yworks.yfiles.bpmn.view.AbstractBpmnPainter
com.yworks.yfiles.bpmn.view.BpmnChoreographyPainter
- All Implemented Interfaces:
- GenericNodeRealizer.ContainsTest, GenericNodeRealizer.Painter
- public class BpmnChoreographyPainter
- extends AbstractBpmnPainter
Painter implementation for choreography nodes.
- See Also:
BpmnRealizerFactory.createChoreography(ChoreographyTypeEnum, MarkerTypeEnum[])
,
BpmnTypeEnum.CHOREOGRAPHY_TYPE
,
ChoreographyTypeEnum
-
-
Methods inherited from class y.view.AbstractCustomNodePainter |
backupGraphics, createSelectionColor, getFillColor, getFillColor2, getLineColor, getLinePaint, initializeFill, initializeLine, paint, paintHotSpots, paintPorts, paintSloppy, paintText, restoreGraphics |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BpmnChoreographyPainter
public BpmnChoreographyPainter()
- Initializes a new
BpmnChoreographyPainter
instance.
paintNode
protected void paintNode(NodeRealizer context,
Graphics2D graphics,
boolean sloppy)
- Paint node with participants: Fill node shape, fill and draw all participant boxes, draw node shape.
- Overrides:
paintNode
in class AbstractBpmnPainter
getLineStroke
protected Stroke getLineStroke(NodeRealizer context,
boolean selected)
- Returns the stroke to draw the shape of the specified node depending on
the choreography type defined in the given context.
Calls
getLineStrokeByType(y.view.NodeRealizer, ChoreographyTypeEnum)
.
- Parameters:
context
- the representation of the node to paint.selected
- whether the node is currently selected.
- Returns:
- the stroke to draw the shape of the specified node.
- See Also:
BpmnRealizerFactory.isTypeDependentLineStrokeEnabled(y.view.NodeRealizer)
getLineStrokeByType
protected Stroke getLineStrokeByType(NodeRealizer context,
ChoreographyTypeEnum type)
- Returns the stroke to draw the shape of the specified node depending on
the specified choreography type.
- Parameters:
context
- the representation of the node to paint.type
- the choreography type that determines the stroke to use.
- Returns:
- the stroke to draw the shape of the specified node.