Interface IWorkflowBpmnLayoutAlignAroundBuilder
- All Superinterfaces:
IWorkflowBpmnLayoutCardinalDirectionOptionsBuilder<IWorkflowBpmnLayoutAlignAroundBuilder>, IWorkflowBpmnLayoutPortSelectionOptionsBuilder<IWorkflowBpmnLayoutAlignAroundBuilder, IWorkflowBpmnAlignAroundPortSelector>, IWorkflowBpmnLayoutPrimaryIntercardinalDirectionOptionsBuilder<IWorkflowBpmnLayoutAlignAroundBuilder>, IWorkflowBpmnLayoutSpacingOptionsBuilder<IWorkflowBpmnLayoutAlignAroundBuilder>
public interface IWorkflowBpmnLayoutAlignAroundBuilder
extends IWorkflowBpmnLayoutCardinalDirectionOptionsBuilder<IWorkflowBpmnLayoutAlignAroundBuilder>, IWorkflowBpmnLayoutPrimaryIntercardinalDirectionOptionsBuilder<IWorkflowBpmnLayoutAlignAroundBuilder>, IWorkflowBpmnLayoutPortSelectionOptionsBuilder<IWorkflowBpmnLayoutAlignAroundBuilder, IWorkflowBpmnAlignAroundPortSelector>, IWorkflowBpmnLayoutSpacingOptionsBuilder<IWorkflowBpmnLayoutAlignAroundBuilder>
A builder for aligning two items, with the second item positioned relative to the first item.
- Since:
- 8.4.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild(IWorkflowBpmnAlignmentItem<?, ?> firstItem, IWorkflowBpmnAlignmentItem<?, ?> secondItem) Builds the alignment item for the second item aligned around the first item.Sets a hint for the direction where the second item should be placed.firstItemBoundingBoxOf(Object value) By default, the position and size of the given first alignment item is used when the alignment item is built.secondItemBoundingBoxOf(Object value) By default, the position and size of the given second alignment item is used when the alignment item is built.Methods inherited from interface IWorkflowBpmnLayoutCardinalDirectionOptionsBuilder
crossFlowDirection, direction, directionRelativeToFlow, flowDirection, reverseCrossFlowDirection, reverseFlowDirectionMethods inherited from interface IWorkflowBpmnLayoutPortSelectionOptionsBuilder
inPortOfItemAt, outPortOfItemAt, ports, portsOfFirstAndLastItem, portsOfFirstAndLastItemDefaultToOppositePort, portsOfItemAt, portsOfItemAtDefaultToOppositePortMethods inherited from interface IWorkflowBpmnLayoutPrimaryIntercardinalDirectionOptionsBuilder
directionMethods inherited from interface IWorkflowBpmnLayoutSpacingOptionsBuilder
crossFlowDirectionSpacing, crossFlowDirectionSpacing, flowDirectionSpacing, flowDirectionSpacing, spacing
-
Method Details
-
build
IWorkflowBpmnAlignmentItem<?,?> build(IWorkflowBpmnAlignmentItem<?, ?> firstItem, IWorkflowBpmnAlignmentItem<?, ?> secondItem) Builds the alignment item for the second item aligned around the first item.- Parameters:
firstItem- The first item to align.secondItem- The second item to align relative to the first item.- Returns:
- An alignment item representing the laid out second item around the first item.
-
direction
@CanIgnoreReturnValue IWorkflowBpmnLayoutAlignAroundBuilder direction(OneOfN.Either<ECardinalDirection2D, EPrimaryIntercardinalDirection2D> direction) Sets a hint for the direction where the second item should be placed. This is a convenience method, seeIWorkflowBpmnLayoutCardinalDirectionOptionsBuilder.direction(ECardinalDirection2D)andIWorkflowBpmnLayoutPrimaryIntercardinalDirectionOptionsBuilder.direction(EPrimaryIntercardinalDirection2D)for more details.- Parameters:
direction- The direction where to put the second item relative to the first item.- Returns:
- This builder for chaining method calls.
-
firstItemBoundingBoxOf
By default, the position and size of the given first alignment item is used when the alignment item is built. This method lets you use a child of the first alignment item as the bounding box. This can be useful for dense layouts, e.g. when you want to align item A above item X and item B below X. You first align A above X to create AX, then align B below AX and use X's bounding box instead of AX's bounding box.- Parameters:
value- The value of the alignment item whose bounding box should be used for the item. This is theIWorkflowBpmnAlignmentItem.value()of the target alignment item.- Returns:
- This builder for chaining method calls.
-
secondItemBoundingBoxOf
By default, the position and size of the given second alignment item is used when the alignment item is built. This method lets you use a child of the second alignment item as the bounding box. This can be useful for dense layouts, e.g. when you want to align item A above item X and item B below X. You first align A above X to create AX, then align B below AX and use X's bounding box instead of AX's bounding box.- Parameters:
value- The value of the alignment item whose bounding box should be used for the second item. This is theIWorkflowBpmnAlignmentItem.value()of the target alignment item.- Returns:
- This builder for chaining method calls.
-