-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1071 from skieffer/edge-coords
Provide JSON coordinate options
- Loading branch information
Showing
10 changed files
with
1,677 additions
and
33 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
30 changes: 30 additions & 0 deletions
30
plugins/org.eclipse.elk.core/src/org/eclipse/elk/core/options/EdgeCoords.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,30 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 Kiel University and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
package org.eclipse.elk.core.options; | ||
|
||
/** | ||
* Edge coordinate systems for JSON output. To be accessed using {@link CoreOptions#JSON_EDGE_COORDS}. | ||
* Applies to edges, and to labels of edges. | ||
*/ | ||
public enum EdgeCoords { | ||
|
||
/** | ||
* Inherit the parent node's coordinate system. The root node has no parent node; here, this setting defaults to | ||
* {@link #CONTAINER}. | ||
*/ | ||
INHERIT, | ||
/** relative to the edge's proper container node. */ | ||
CONTAINER, | ||
/** relative to the edge's JSON parent node. */ | ||
PARENT, | ||
/** relative to the root node, a.k.a. global coordinates. */ | ||
ROOT; | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
plugins/org.eclipse.elk.core/src/org/eclipse/elk/core/options/ShapeCoords.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,28 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 Kiel University and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
package org.eclipse.elk.core.options; | ||
|
||
/** | ||
* Shape coordinate systems for JSON output. To be accessed using {@link CoreOptions#JSON_SHAPE_COORDS}. | ||
* Applies to nodes, ports, and labels of nodes and ports. | ||
*/ | ||
public enum ShapeCoords { | ||
|
||
/** | ||
* Inherit the parent shape's coordinate system. The root node has no parent shape; here, this setting defaults to | ||
* {@link #PARENT}. | ||
*/ | ||
INHERIT, | ||
/** relative to the shape's JSON parent shape. */ | ||
PARENT, | ||
/** relative to the root node, a.k.a. global coordinates. */ | ||
ROOT; | ||
|
||
} |
Oops, something went wrong.