Package lu.kbra.modelizer_next.ui.canvas
Interface CaptureManager
- All Superinterfaces:
DiagramCanvasExt
- All Known Implementing Classes:
DiagramCanvas
Contains snapshot helpers used to copy classes, comments, fields, links, and layouts.
-
Method Summary
Modifier and TypeMethodDescriptiondefault CopiedClasscaptureClass(ClassModel classModel) Captures the class into a portable snapshot.default CopiedCommentcaptureComment(CommentModel commentModel) Captures the comment into a portable snapshot.default CopiedFieldcaptureField(String ownerClassId, FieldModel fieldModel) Captures the field into a portable snapshot.default CopiedLinkcaptureLink(LinkModel linkModel) Captures the link into a portable snapshot.default CopiedLinkLayoutcaptureLinkLayout(String linkId) Captures the link layout into a portable snapshot.default CopiedNodeLayoutcaptureNodeLayout(LayoutObjectType type, String objectId) Captures the node layout into a portable snapshot.Methods inherited from interface lu.kbra.modelizer_next.ui.canvas.DiagramCanvasExt
getCanvas, getDocument, getFrame, getPanelType
-
Method Details
-
captureClass
Captures the class into a portable snapshot.- Parameters:
classModel- class model affected by the operation- Returns:
- the capture class result
-
captureComment
Captures the comment into a portable snapshot.- Parameters:
commentModel- comment model affected by the operation- Returns:
- the capture comment result
-
captureField
Captures the field into a portable snapshot.- Parameters:
ownerClassId- id of the element to read or modifyfieldModel- field model affected by the operation- Returns:
- the capture field result
-
captureLink
Captures the link into a portable snapshot.- Parameters:
linkModel- link model affected by the operation- Returns:
- the capture link result
-
captureLinkLayout
Captures the link layout into a portable snapshot.- Parameters:
linkId- id of the link to look up or modify- Returns:
- the capture link layout result
-
captureNodeLayout
Captures the node layout into a portable snapshot.- Parameters:
type- type value that selects the operation modeobjectId- id of the element to read or modify- Returns:
- the capture node layout result
-