Package lu.kbra.modelizer_next.ui.canvas
Interface ElementCreator
- All Superinterfaces:
DiagramCanvasExt
- All Known Implementing Classes:
DiagramCanvas
Contains creation actions for tables, fields, comments, and links.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcreateConceptualLink(String fromClassId, String toClassId) Creates a conceptual link.default FieldModelcreateFieldFromClipboard(CopiedField copiedField, boolean rename) Creates a field from clipboard.default LinkModelcreateLinkFromClipboard(CopiedLink copiedLink, Map<String, String> classIdMap, Map<String, String> fieldIdMap) Creates a link from clipboard.default CommentBindingcreateRemappedCommentBinding(CopiedComment copiedComment, Map<String, String> classIdMap, Map<String, String> linkIdMap) Creates a remapped comment binding.default voidcreateTechnicalLink(SelectedElement fromEndpoint, SelectedElement toEndpoint) Creates a technical link.default voidfinishLinkCreation(Point2D.Double worldPoint) Finishes the link creation.Methods inherited from interface lu.kbra.modelizer_next.ui.canvas.DiagramCanvasExt
getCanvas, getDocument, getFrame, getPanelType
-
Method Details
-
createConceptualLink
Creates a conceptual link.- Parameters:
fromClassId- id of the element to read or modifytoClassId- id of the element to read or modify
-
createFieldFromClipboard
Creates a field from clipboard.- Parameters:
copiedField- copied field value used by the operationrename- name value to use- Returns:
- the created field from clipboard
-
createLinkFromClipboard
default LinkModel createLinkFromClipboard(CopiedLink copiedLink, Map<String, String> classIdMap, Map<String, String> fieldIdMap) Creates a link from clipboard.- Parameters:
copiedLink- copied link value used by the operationclassIdMap- map to read or updatefieldIdMap- map to read or update- Returns:
- the created link from clipboard
-
createRemappedCommentBinding
default CommentBinding createRemappedCommentBinding(CopiedComment copiedComment, Map<String, String> classIdMap, Map<String, String> linkIdMap) Creates a remapped comment binding.- Parameters:
copiedComment- copied comment value used by the operationclassIdMap- map to read or updatelinkIdMap- map to read or update- Returns:
- the created remapped comment binding
-
createTechnicalLink
Creates a technical link.- Parameters:
fromEndpoint- point in canvas coordinatestoEndpoint- point in canvas coordinates
-
finishLinkCreation
Finishes the link creation.- Parameters:
worldPoint- point in canvas coordinates
-