protected LayoutOperation(TLayout layout, IRenderScene scene, Document document) { Guard.NotNull(scene, nameof(scene)); Guard.NotNull(layout, nameof(layout)); Guard.NotNull(document, nameof(document)); this.scene = scene; this.layout = layout; this.document = document; mindmapCenter = CalculateCenter(document); }
public VisibilityUpdater(TLayout layout, IRenderScene scene, Document document) : base(layout, scene, document) { }
public HorizontalStraightLayoutProcess(HorizontalStraightLayout layout, IRenderScene scene, Document document) : base(layout, scene, document) { }
public VisibilityUpdaterTest() { scene = Mocks.StrictMock <IRenderScene>(); layout = Mocks.StrictMock <ILayout>(); }
public AttachTarget CalculateAttachTarget(Document document, IRenderScene scene, Node movingNode, Rect2 movementBounds) { return(new HorizontalStraightAttachTargetProcess(this, scene, document, movingNode, movementBounds).CalculateAttachTarget()); }
public void UpdateVisibility(Document document, IRenderScene scene) { new VisibilityUpdater <HorizontalStraightLayout>(this, scene, document).UpdateVisibility(); }
public void UpdateLayout(Document document, IRenderScene scene) { new HorizontalStraightLayoutProcess(this, scene, document).UpdateLayout(); }
public HorizontalStraightAttachTargetProcess(HorizontalStraightLayout layout, IRenderScene scene, Document document, Node movingNode, Rect2 movementBounds) : base(layout, scene, document) { Guard.NotNull(movingNode, nameof(movingNode)); this.movingNode = movingNode; this.movementBounds = movementBounds; this.movementCenter = movementBounds.Center; }