com.yworks.yfiles.bpmn.view
Class BpmnArtifactPainter
java.lang.Object
y.view.AbstractCustomNodePainter
com.yworks.yfiles.bpmn.view.AbstractBpmnPainter
com.yworks.yfiles.bpmn.view.BpmnArtifactPainter
- All Implemented Interfaces:
- GenericNodeRealizer.ContainsTest, GenericNodeRealizer.Painter
- public class BpmnArtifactPainter
- extends AbstractBpmnPainter
Painter implementation for artifact nodes.
-
-
Methods inherited from class y.view.AbstractCustomNodePainter |
backupGraphics, createSelectionColor, 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 |
BpmnArtifactPainter
public BpmnArtifactPainter()
- Initializes a new
BpmnArtifactPainter
instance.
paintNode
protected void paintNode(NodeRealizer context,
Graphics2D graphics,
boolean sloppy)
- Description copied from class:
AbstractBpmnPainter
- Paints the node represented by the specified context realizer.
- 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 artifact type defined in the given context.
Calls
getLineStrokeByType(y.view.NodeRealizer, BpmnTypeEnum)
.
- 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,
BpmnTypeEnum type)
- Returns the stroke to draw the shape of the specified node depending on
the specified artifact type.
- Parameters:
context
- the representation of the node to paint.type
- the artifact type that determines the stroke to use.
- Returns:
- the stroke to draw the shape of the specified node.
- See Also:
BpmnTypeEnum.isArtifactType(BpmnTypeEnum)
getFillColor
protected Color getFillColor(NodeRealizer context,
boolean selected)
getFillColor2
protected Color getFillColor2(NodeRealizer context,
boolean selected)