Interface ElementCreator

All Superinterfaces:
DiagramCanvasExt
All Known Implementing Classes:
DiagramCanvas

public interface ElementCreator extends DiagramCanvasExt
Contains creation actions for tables, fields, comments, and links.
  • Method Details

    • createConceptualLink

      default void createConceptualLink(String fromClassId, String toClassId)
      Creates a conceptual link.
      Parameters:
      fromClassId - id of the element to read or modify
      toClassId - id of the element to read or modify
    • createFieldFromClipboard

      default FieldModel createFieldFromClipboard(CopiedField copiedField, boolean rename)
      Creates a field from clipboard.
      Parameters:
      copiedField - copied field value used by the operation
      rename - 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 operation
      classIdMap - map to read or update
      fieldIdMap - 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 operation
      classIdMap - map to read or update
      linkIdMap - map to read or update
      Returns:
      the created remapped comment binding
    • createTechnicalLink

      default void createTechnicalLink(SelectedElement fromEndpoint, SelectedElement toEndpoint)
      Creates a technical link.
      Parameters:
      fromEndpoint - point in canvas coordinates
      toEndpoint - point in canvas coordinates
    • finishLinkCreation

      default void finishLinkCreation(Point2D.Double worldPoint)
      Finishes the link creation.
      Parameters:
      worldPoint - point in canvas coordinates