Class DefaultLayoutMergeStrategy

java.lang.Object
com.structurizr.view.DefaultLayoutMergeStrategy
All Implemented Interfaces:
LayoutMergeStrategy

public class DefaultLayoutMergeStrategy
extends java.lang.Object
implements LayoutMergeStrategy
A default implementation of a LayoutMergeStrategy that: - Sets the paper size (if not set). - Copies element x,y positions. - Copies relationship vertices. Elements are matched by the full canonical name. The downside of this approach is that if an element is renamed between versions of a workspace, it won't be possible to find/copy the layout information associated with an element.