com.yworks.yfiles.bpmn.view
Class BpmnArtifactPainter

java.lang.Object
  extended byy.view.AbstractCustomNodePainter
      extended bycom.yworks.yfiles.bpmn.view.AbstractBpmnPainter
          extended bycom.yworks.yfiles.bpmn.view.BpmnArtifactPainter
All Implemented Interfaces:
GenericNodeRealizer.ContainsTest, GenericNodeRealizer.Painter

public class BpmnArtifactPainter
extends AbstractBpmnPainter

Painter implementation for artifact nodes.

 

Field Summary
 
Fields inherited from class com.yworks.yfiles.bpmn.view.AbstractBpmnPainter
ICON_FILL_COLOR, ICON_FILL_COLOR2, ICON_LINE_COLOR
 
Constructor Summary
BpmnArtifactPainter()
          Initializes a new BpmnArtifactPainter instance.
 
Method Summary
protected  Color getFillColor(NodeRealizer context, boolean selected)
           
protected  Color getFillColor2(NodeRealizer context, boolean selected)
           
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.
protected  Stroke getLineStrokeByType(NodeRealizer context, BpmnTypeEnum type)
          Returns the stroke to draw the shape of the specified node depending on the specified artifact type.
protected  void paintNode(NodeRealizer context, Graphics2D graphics, boolean sloppy)
           
 
Methods inherited from class com.yworks.yfiles.bpmn.view.AbstractBpmnPainter
contains, getFillPaint, getPaintIconThreshold, setPaintIconThreshold
 
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
 

Constructor Detail

BpmnArtifactPainter

public BpmnArtifactPainter()
Initializes a new BpmnArtifactPainter instance.

Method Detail

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)


© Copyright 2010-2014,
yWorks GmbH.
All rights reserved.