forked from eclipse-sirius/sirius-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[287] Refactor rendering for incremental layout
Bug: eclipse-sirius#287 Signed-off-by: William Piers <william.piers@obeo.fr> Signed-off-by: Florian Barbin <florian.barbin@obeo.fr>
- Loading branch information
1 parent
18032a5
commit c053ad8
Showing
63 changed files
with
2,275 additions
and
1,150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
...org/eclipse/sirius/web/diagrams/layout/incremental/IncrementalLayoutConvertedDiagram.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 THALES GLOBAL SERVICES. | ||
* This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Obeo - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.sirius.web.diagrams.layout.incremental; | ||
|
||
import java.util.Map; | ||
import java.util.Objects; | ||
import java.util.UUID; | ||
|
||
import org.eclipse.sirius.web.diagrams.layout.incremental.data.DiagramLayoutData; | ||
import org.eclipse.sirius.web.diagrams.layout.incremental.data.ILayoutData; | ||
|
||
/** | ||
* The result of the diagram transformation with the raw layout data and a cache of the values computed during the | ||
* transformation. | ||
* | ||
* @author wpiers | ||
*/ | ||
public class IncrementalLayoutConvertedDiagram { | ||
|
||
private final DiagramLayoutData diagramLayoutData; | ||
|
||
private final Map<UUID, ILayoutData> id2LayoutData; | ||
|
||
public IncrementalLayoutConvertedDiagram(DiagramLayoutData diagramLayoutData, Map<UUID, ILayoutData> id2LayoutData) { | ||
this.diagramLayoutData = Objects.requireNonNull(diagramLayoutData); | ||
this.id2LayoutData = Objects.requireNonNull(id2LayoutData); | ||
} | ||
|
||
public DiagramLayoutData getDiagramLayoutData() { | ||
return this.diagramLayoutData; | ||
} | ||
|
||
public Map<UUID, ILayoutData> getId2LayoutData() { | ||
return this.id2LayoutData; | ||
} | ||
} |
Oops, something went wrong.