Interface CaptureManager

All Superinterfaces:
DiagramCanvasExt
All Known Implementing Classes:
DiagramCanvas

public interface CaptureManager extends DiagramCanvasExt
Contains snapshot helpers used to copy classes, comments, fields, links, and layouts.
  • Method Details

    • captureClass

      default CopiedClass captureClass(ClassModel classModel)
      Captures the class into a portable snapshot.
      Parameters:
      classModel - class model affected by the operation
      Returns:
      the capture class result
    • captureComment

      default CopiedComment captureComment(CommentModel commentModel)
      Captures the comment into a portable snapshot.
      Parameters:
      commentModel - comment model affected by the operation
      Returns:
      the capture comment result
    • captureField

      default CopiedField captureField(String ownerClassId, FieldModel fieldModel)
      Captures the field into a portable snapshot.
      Parameters:
      ownerClassId - id of the element to read or modify
      fieldModel - field model affected by the operation
      Returns:
      the capture field result
    • captureLink

      default CopiedLink captureLink(LinkModel linkModel)
      Captures the link into a portable snapshot.
      Parameters:
      linkModel - link model affected by the operation
      Returns:
      the capture link result
    • captureLinkLayout

      default CopiedLinkLayout captureLinkLayout(String linkId)
      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

      default CopiedNodeLayout captureNodeLayout(LayoutObjectType type, String objectId)
      Captures the node layout into a portable snapshot.
      Parameters:
      type - type value that selects the operation mode
      objectId - id of the element to read or modify
      Returns:
      the capture node layout result