Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "GEF/GEF4/Graph"

< GEF‎ | GEF4
({Root})
Line 18: Line 18:
 
*'''package: org.eclipse.gef4.graph'''
 
*'''package: org.eclipse.gef4.graph'''
  
The graph model provided by [[#Graph|Graph]] consists of 3 classes: Graph, Node, and Edge. A Graph serves as a container for Nodes and Edges. Additionally, a Graph can be ''nested'' inside a ''nesting'' Node, so that sub-graphs can be properly represented.  
+
This package provides a simple graph model and a support class to copy/merge such models.
  
Moreover, arbitrary attributes can be set on Graphs, Nodes, and Edges. The concrete attributes that are used are outside the scope of the [[GEF/GEF4/Graph | GEF Graph]] component. The DOT importer of the [[GEF/GEF4/DOT | GEF DOT]] component, e.g. adds DOT-specific attributes to the Graph it creates, the [[GEF/GEF4/Zest | GEF Zest]] component uses visualization-specific attributes, which determine the concrete visualization.
+
[[Image:GEF4Graph-model.png|907px]]
  
[[Image:GEF4Graph-model.png|565px]]
+
==== Graph, Node, Edge ====
 +
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.  
  
The graph package also contains a utility class (GraphCopier) to copy/merge graphs.
+
Moreover, arbitrary attributes can be set on Graphs, Nodes, and Edges. The concrete attributes that are used are outside the scope of the [[GEF/GEF4/Graph | GEF Graph]] component. The DOT importer of the [[GEF/GEF4/DOT | GEF DOT]] component, e.g. adds DOT-specific attributes to the Graph it creates, the [[GEF/GEF4/Zest | GEF Zest]] component uses visualization-specific attributes, which determine the concrete visualization.
  
[[Image:GEF4-Graph-graph-graphcopier.png|402px]]
+
==== GraphCopier ====
 +
The graph package also contains a utility class (<code>GraphCopier</code>) to copy/merge graphs.
  
 
[[Category:GEF]]
 
[[Category:GEF]]

Revision as of 08:17, 28 May 2015

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.

GEF4-Components-Graph.png

Graph

  • feature: org.eclipse.gef4.graph
  • bundle: org.eclipse.gef4.graph

{Root}

  • package: org.eclipse.gef4.graph

This package provides a simple graph model and a support class to copy/merge such models.

GEF4Graph-model.png

Graph, Node, Edge

A Graph serves as a container for Nodes and Edges. 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 Graphs, Nodes, and Edges. The concrete attributes that are used are outside the scope of the GEF Graph component. The DOT importer of the GEF DOT component, e.g. adds DOT-specific attributes to the Graph it creates, the GEF Zest component uses visualization-specific attributes, which determine the concrete visualization.

GraphCopier

The graph package also contains a utility class (GraphCopier) to copy/merge graphs.

Back to the top