com.yworks.yfiles.bpmn.view
Class BpmnGatewayPainter

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

public class BpmnGatewayPainter
extends AbstractBpmnPainter

Painter implementation for gateway nodes.

 

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

Constructor Detail

BpmnGatewayPainter

public BpmnGatewayPainter()
Initializes a new BpmnGatewayPainter instance.

Method Detail

getLineStroke

protected Stroke getLineStroke(NodeRealizer context,
                               boolean selected)
Returns the stroke to draw the shape of the specified node depending on the gateway 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 gateway type.

Parameters:
context - the representation of the node to paint.
type - the gateway type that determines the stroke to use.
Returns:
the stroke to draw the shape of the specified node.
See Also:
BpmnTypeEnum.isGatewayType(BpmnTypeEnum)


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