Interface LayoutMergeStrategy

All Known Implementing Classes:
DefaultLayoutMergeStrategy

public interface LayoutMergeStrategy
A pluggable strategy that can be used to copy layout information from one version of a view to another.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    copyLayoutInformation(ModelView sourceView, ModelView destinationView)
    Attempts to copy the visual layout information (e.g.
  • Method Details

    • copyLayoutInformation

      void copyLayoutInformation(@Nonnull ModelView sourceView, @Nonnull ModelView destinationView)
      Attempts to copy the visual layout information (e.g. x,y coordinates) of elements and relationships from the specified source view into the specified destination view.
      Parameters:
      sourceView - the source view (e.g. the version stored by the Structurizr service)
      destinationView - the destination View (e.g. the new version, created locally with code)