Interface NodeLayoutManager

All Superinterfaces:
DiagramCanvasExt
All Known Implementing Classes:
DiagramCanvas

public interface NodeLayoutManager extends DiagramCanvasExt
Contains node movement and layout update helpers.
  • Method Details

    • applyNodeLayout

      default void applyNodeLayout(LayoutObjectType type, String objectId, CopiedNodeLayout copiedLayout, double deltaX, double deltaY)
      Applies the node layout.
      Parameters:
      type - type value that selects the operation mode
      objectId - id of the element to read or modify
      copiedLayout - layout object to read or modify
      deltaX - numeric delta x value
      deltaY - numeric delta y value
    • computeClassBounds

      default Rectangle2D computeClassBounds(ClassModel classModel, NodeLayout layout)
      Computes the class bounds.
      Parameters:
      classModel - class model affected by the operation
      layout - layout object to read or update
      Returns:
      the compute class bounds result
    • computeClipboardBounds

      default Rectangle2D.Double computeClipboardBounds(ClipboardSnapshot clipboard)
      Computes the clipboard bounds on the active canvas.
      Parameters:
      clipboard - clipboard value used by the operation
      Returns:
      the compute clipboard bounds result
    • computeCommentBounds

      default Rectangle2D computeCommentBounds(String text, NodeLayout layout)
      Computes the comment bounds.
      Parameters:
      text - text to display or edit
      layout - layout object to read or update
      Returns:
      the compute comment bounds result
    • expandBounds

      default Rectangle2D.Double expandBounds(Rectangle2D.Double bounds, double x, double y, double width, double height)
      Expands the bounds on the active canvas.
      Parameters:
      bounds - bounds used for layout or hit testing
      x - x coordinate
      y - y coordinate
      width - width value
      height - height value
      Returns:
      the expand bounds result
    • resolveRenderLayout

      default NodeLayout resolveRenderLayout(NodeLayout layout)
      Resolves the render layout from the current model and layout state.
      Parameters:
      layout - layout object to read or update
      Returns:
      the resolved render layout