com.yworks.yfiles.bpmn.view
Class BpmnChoreographyMinimumSizeProvider

java.lang.Object
  extended bycom.yworks.yfiles.bpmn.view.BpmnChoreographyMinimumSizeProvider
All Implemented Interfaces:
GenericNodeRealizer.GenericSizeConstraintProvider

public class BpmnChoreographyMinimumSizeProvider
extends Object
implements GenericNodeRealizer.GenericSizeConstraintProvider

Restricts the minimum size of a choreography node such that the node encompasses all of its choreography labels. I.e. the node's height is at least the sum of the heights of its choreography labels and the node's width is at least the width of its widest choreography label. In this context, a choreography node is a node that is visualized using a BpmnChoreographyPainter and a choreography label is a label that uses ChoreographyLabelModel as its label model.

See Also:
BpmnRealizerFactory.createChoreography(ChoreographyTypeEnum, MarkerTypeEnum[])
 

Constructor Summary
BpmnChoreographyMinimumSizeProvider()
           
 
Method Summary
 YDimension getMaximumSize(NodeRealizer context)
           
 YDimension getMinimumSize(NodeRealizer context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BpmnChoreographyMinimumSizeProvider

public BpmnChoreographyMinimumSizeProvider()
Method Detail

getMaximumSize

public YDimension getMaximumSize(NodeRealizer context)
Specified by:
getMaximumSize in interface GenericNodeRealizer.GenericSizeConstraintProvider

getMinimumSize

public YDimension getMinimumSize(NodeRealizer context)
Specified by:
getMinimumSize in interface GenericNodeRealizer.GenericSizeConstraintProvider


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