Interface LinkLayoutManager

All Superinterfaces:
DiagramCanvasExt
All Known Implementing Classes:
DiagramCanvas

public interface LinkLayoutManager extends DiagramCanvasExt
Contains link layout helpers for bends, labels, and association class placement.
  • Method Details

    • applyLinkLayout

      default void applyLinkLayout(String linkId, CopiedLinkLayout copiedLayout, double offset)
      Applies the link layout.
      Parameters:
      linkId - id of the link to look up or modify
      copiedLayout - layout object to read or modify
      offset - numeric offset value
    • applyLinkLayout

      default void applyLinkLayout(String linkId, CopiedLinkLayout copiedLayout, double deltaX, double deltaY)
      Applies the link layout.
      Parameters:
      linkId - id of the link to look up or modify
      copiedLayout - layout object to read or modify
      deltaX - numeric delta x value
      deltaY - numeric delta y value
    • chooseBestConceptualSidePair

      default AnchorSidePair chooseBestConceptualSidePair(String fromClassId, Rectangle2D fromBounds, String toClassId, Rectangle2D toBounds, boolean big)
      Chooses the best conceptual side pair on the active canvas.
      Parameters:
      fromClassId - id of the element to read or modify
      fromBounds - bounds used for layout or hit testing
      toClassId - id of the element to read or modify
      toBounds - bounds used for layout or hit testing
      big - whether big is enabled
      Returns:
      the choose best conceptual side pair result
    • chooseSelfLinkFromSide

      default AnchorSide chooseSelfLinkFromSide(String classId)
      Chooses the self link from side.
      Parameters:
      classId - id of the class to look up or modify
      Returns:
      the choose self link from side result
    • chooseTechnicalSelfLinkSide

      default AnchorSide chooseTechnicalSelfLinkSide(LinkModel linkModel)
      Chooses the technical self link side.
      Parameters:
      linkModel - link model affected by the operation
      Returns:
      the choose technical self link side result
    • computeConceptualSortValue

      default double computeConceptualSortValue(String linkId, String classId, AnchorSide side, Map<String,Rectangle2D> boundsByClassId, Map<String,AnchorSidePair> sidePairs)
      Computes the conceptual sort value on the active canvas.
      Parameters:
      linkId - id of the link to look up or modify
      classId - id of the class to look up or modify
      side - node side to inspect
      boundsByClassId - id of the element to read or modify
      sidePairs - side pairs value used by the operation
      Returns:
      the compute conceptual sort value result
    • resolveConceptualAnchorPair

      default AnchorPair resolveConceptualAnchorPair(LinkModel targetLink)
      Resolves the conceptual anchor pair from the current model and layout state.
      Parameters:
      targetLink - target link value used by the operation
      Returns:
      the resolved conceptual anchor pair