com.yworks.yfiles.bpmn.view
Class BpmnConversationPainter
java.lang.Object
y.view.AbstractCustomNodePainter
com.yworks.yfiles.bpmn.view.AbstractBpmnPainter
com.yworks.yfiles.bpmn.view.BpmnConversationPainter
- All Implemented Interfaces:
- GenericNodeRealizer.ContainsTest, GenericNodeRealizer.Painter
- public class BpmnConversationPainter
- extends AbstractBpmnPainter
Painter implementation for conversation nodes.
- See Also:
BpmnRealizerFactory.createConversation(ConversationTypeEnum, boolean)
,
BpmnTypeEnum.CONVERSATION_TYPE
,
ConversationTypeEnum
-
-
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 |
BpmnConversationPainter
public BpmnConversationPainter()
- Initializes a new
BpmnConversationPainter
instance.
getLineStroke
protected Stroke getLineStroke(NodeRealizer context,
boolean selected)
- Returns the stroke to draw the shape of the specified node depending on
the conversation type defined in the given context.
Calls
getLineStrokeByType(y.view.NodeRealizer, ConversationTypeEnum)
.
- 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,
ConversationTypeEnum type)
- Returns the stroke to draw the shape of the specified node depending on
the specified conversation type.
- Parameters:
context
- the representation of the node to paint.type
- the conversation type that determines the stroke to use.
- Returns:
- the stroke to draw the shape of the specified node.