Interface NodeLayoutCache

All Superinterfaces:
DiagramCanvasExt
All Known Implementing Classes:
DiagramCanvas

public interface NodeLayoutCache extends DiagramCanvasExt
Contains node layout lookup, creation, and bounds cache helpers.
  • Method Details

    • findNodeLayout

      default Optional<NodeLayout> findNodeLayout(LayoutObjectType objectType, String objectId)
      Finds the node layout that matches the supplied input.
      Parameters:
      objectType - type value to use
      objectId - id of the element to read or modify
      Returns:
      the matching node layout, or null when no match exists
    • findOrCreateLinkLayout

      default LinkLayout findOrCreateLinkLayout(String linkId)
      Finds the existing link layout, or creates one when none exists.
      Parameters:
      linkId - id of the link to look up or modify
      Returns:
      the matching or create link layout, or null when no match exists
    • findOrCreateNodeLayout

      default NodeLayout findOrCreateNodeLayout(LayoutObjectType objectType, String objectId)
      Finds the existing node layout, or creates one when none exists.
      Parameters:
      objectType - type value to use
      objectId - id of the element to read or modify
      Returns:
      the matching or create node layout, or null when no match exists
    • getPanelState

      default PanelState getPanelState()
      Returns the panel state on the active canvas.
      Returns:
      the panel state