Interface IWorkflowBpmnAlignmentSelector
-
- All Known Implementing Classes:
EContainerItemAlignment
,EdgeRatioAlignmentSelector
public interface IWorkflowBpmnAlignmentSelector
Selector for points to use when aligningalignment items
in a BPMN model viaIWorkflowBpmnLayouter.alignAtAxis()
. For each item to be aligned, the selector must select an in-point and an out-point. The layouter then aligns the items so that the out point of one item is at the in-point of the next item.- Since:
- 8.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
selectInPoint(IWorkflowBpmnAlignmentItem<?,?> item, int index, ECardinalDirection2D side)
Selects the in-point of the given item at the specified index and side.double
selectOutPoint(IWorkflowBpmnAlignmentItem<?,?> item, int index, ECardinalDirection2D side)
Selects the out-point of the given item at the specified index and side.
-
-
-
Method Detail
-
selectInPoint
double selectInPoint(IWorkflowBpmnAlignmentItem<?,?> item, int index, ECardinalDirection2D side)
Selects the in-point of the given item at the specified index and side. The returned value is relative to the start of the edge at the given side. For example, when the side isNORTH
and has a length of 50, a return value of 0 indicates the start of the top edge (the top-left corner of the item's bounding box), a return value of 25 indicates the middle of the top edge, and a return value of 50 indicates the end of the top edge (the top-right corner).- Parameters:
item
- The item for which to select the in-point.index
- The index of the item for which to select its in-point.side
- The side on which to select the in-point.- Returns:
- The selected in-point, between 0 and the length of the edge at the given side.
-
selectOutPoint
double selectOutPoint(IWorkflowBpmnAlignmentItem<?,?> item, int index, ECardinalDirection2D side)
Selects the out-point of the given item at the specified index and side. The returned value is relative to the start of the edge at the given side. For example, when the side isNORTH
and has a length of 50, a return value of 0 indicates the start of the top edge (the top-left corner of the item's bounding box), a return value of 25 indicates the middle of the top edge, and a return value of 50 indicates the end of the top edge (the top-right corner).- Parameters:
item
- The item for which to select the out-point.index
- The index of the item for which to select its out-point.side
- The side on which to select the out-point.- Returns:
- The selected out-point, between 0 and the length of the edge at the given side.
-
-