Interface IWorkflowBpmnAlignmentSelector

    • 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 is NORTH 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 is NORTH 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.