Package lu.kbra.modelizer_next.ui.canvas
Interface NodeLayoutCache
- All Superinterfaces:
DiagramCanvasExt
- All Known Implementing Classes:
DiagramCanvas
Contains node layout lookup, creation, and bounds cache helpers.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<NodeLayout> findNodeLayout(LayoutObjectType objectType, String objectId) Finds the node layout that matches the supplied input.default LinkLayoutfindOrCreateLinkLayout(String linkId) Finds the existing link layout, or creates one when none exists.default NodeLayoutfindOrCreateNodeLayout(LayoutObjectType objectType, String objectId) Finds the existing node layout, or creates one when none exists.default PanelStateReturns the panel state on the active canvas.Methods inherited from interface lu.kbra.modelizer_next.ui.canvas.DiagramCanvasExt
getCanvas, getDocument, getFrame, getPanelType
-
Method Details
-
findNodeLayout
Finds the node layout that matches the supplied input.- Parameters:
objectType- type value to useobjectId- id of the element to read or modify- Returns:
- the matching node layout, or
nullwhen no match exists
-
findOrCreateLinkLayout
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
nullwhen no match exists
-
findOrCreateNodeLayout
Finds the existing node layout, or creates one when none exists.- Parameters:
objectType- type value to useobjectId- id of the element to read or modify- Returns:
- the matching or create node layout, or
nullwhen no match exists
-
getPanelState
Returns the panel state on the active canvas.- Returns:
- the panel state
-