Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "GEF/GEF4/Graph"
(→{Root}) |
|||
Line 29: | Line 29: | ||
A <code>Graph</code> serves as a container for <code>Node</code>s and <code>Edge</code>s. Additionally, a <code>Graph</code> can be ''nested'' inside a ''nesting'' <code>Node</code>, so that sub-graphs can be properly represented. | A <code>Graph</code> serves as a container for <code>Node</code>s and <code>Edge</code>s. Additionally, a <code>Graph</code> can be ''nested'' inside a ''nesting'' <code>Node</code>, so that sub-graphs can be properly represented. | ||
− | Moreover, arbitrary attributes can be set on <code>Graph</code>s, <code>Node</code>s, and <code>Edge</code>s | + | Moreover, arbitrary attributes can be set on <code>Graph</code>s, <code>Node</code>s, and <code>Edge</code>s. The concrete attributes that are used are outside the scope of the [[GEF/GEF4/Graph|GEF4 Graph]] component. The DOT importer of the [[GEF/GEF4/DOT|GEF4 DOT]] component, e.g. adds DOT-specific attributes to the Graph it creates, the [[GEF/GEF4/Zest|GEF4 Zest]] component uses visualization-specific attributes, which determine the concrete visualization. |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
==== GraphCopier ==== | ==== GraphCopier ==== | ||
− | A <code>GraphCopier</code> is a utility class to copy/merge graphs | + | A <code>GraphCopier</code> is a utility class to copy/merge graphs. |
[[Category:GEF]] | [[Category:GEF]] |
Revision as of 12:51, 20 May 2016
Note to non-wiki readers: This documentation is generated from the Eclipse wiki - if you have corrections or additions it would be awesome if you added them in the original wiki page.
Introduction
The GEF4 Graph component provides a simple, UI-independent graph model. It consists of the single Graph module.
Graph
- feature: org.eclipse.gef4.graph
- bundle: org.eclipse.gef4.graph
The Graph module of GEF4 Graph provides the single {Root} package, which delivers a generic graph model representation and related utility classes.
{Root}
- package: org.eclipse.gef4.graph
The {Root} package provides a simple graph model and a support class to copy/merge such models.
Graph, Node, Edge
A Graph
serves as a container for Node
s and Edge
s. Additionally, a Graph
can be nested inside a nesting Node
, so that sub-graphs can be properly represented.
Moreover, arbitrary attributes can be set on Graph
s, Node
s, and Edge
s. The concrete attributes that are used are outside the scope of the GEF4 Graph component. The DOT importer of the GEF4 DOT component, e.g. adds DOT-specific attributes to the Graph it creates, the GEF4 Zest component uses visualization-specific attributes, which determine the concrete visualization.
GraphCopier
A GraphCopier
is a utility class to copy/merge graphs.