Skip to main content
Jump to: navigation, search

Difference between revisions of "GEF/GEF4/Layout/Examples"

< GEF‎ | GEF4‎ | Layout
m (FilterLayoutExample)
m
Line 41: Line 41:
  
 
* '''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.layout.examples/src/org/eclipse/gef4/layout/examples/FullyMeshedLayoutExample.java org.eclipse.gef4.layout.examples.FullyMeshedLayoutExample]'''
 
* '''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.layout.examples/src/org/eclipse/gef4/layout/examples/FullyMeshedLayoutExample.java org.eclipse.gef4.layout.examples.FullyMeshedLayoutExample]'''
 +
 +
The <code>FullyMeshedLayoutExample</code> demonstrates how the [[GEF/GEF4/Layout#RadialLayoutAlgorithm|RadialLayoutAlgorithm]] re-layouts when adding nodes.
  
 
[[File:GEF4-Layout-Examples-FullyMeshedLayoutExample.png|400px]]
 
[[File:GEF4-Layout-Examples-FullyMeshedLayoutExample.png|400px]]
Line 47: Line 49:
  
 
* '''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.layout.examples/src/org/eclipse/gef4/layout/examples/RadialLayoutExample.java org.eclipse.gef4.layout.examples.RadialLayoutExample]'''
 
* '''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.layout.examples/src/org/eclipse/gef4/layout/examples/RadialLayoutExample.java org.eclipse.gef4.layout.examples.RadialLayoutExample]'''
 +
 +
The <code>RadialLayoutExample</code> demonstrates the [[GEF/GEF4/Layout#RadialLayoutAlgorithm|RadialLayoutAlgorithm]].
  
 
[[File:GEF4-Layout-Examples-RadialLayoutExample.png|400px]]
 
[[File:GEF4-Layout-Examples-RadialLayoutExample.png|400px]]
  
 +
<!-- Remove: https://bugs.eclipse.org/bugs/show_bug.cgi?id=469676
 
==== SimpleLayoutExample ====
 
==== SimpleLayoutExample ====
  
Line 55: Line 60:
  
 
[[File:GEF4-Layout-Examples-SimpleLayoutExample.png|400px]]
 
[[File:GEF4-Layout-Examples-SimpleLayoutExample.png|400px]]
 
+
-->
 
==== SpringLayoutExample ====
 
==== SpringLayoutExample ====
  
 
* '''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.layout.examples/src/org/eclipse/gef4/layout/examples/SpringLayoutExample.java org.eclipse.gef4.layout.examples.SpringLayoutExample]'''
 
* '''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.layout.examples/src/org/eclipse/gef4/layout/examples/SpringLayoutExample.java org.eclipse.gef4.layout.examples.SpringLayoutExample]'''
 +
 +
The <code>SpringLayoutProgressExample</code> demonstrates the [[GEF/GEF4/Layout#SpringLayoutAlgorithm|SpringLayoutAlgorithm]].
  
 
[[File:GEF4-Layout-Examples-SpringLayoutExample.png|400px]]
 
[[File:GEF4-Layout-Examples-SpringLayoutExample.png|400px]]
Line 65: Line 72:
  
 
* '''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.layout.examples/src/org/eclipse/gef4/layout/examples/SpringLayoutProgressExample.java org.eclipse.gef4.layout.examples.SpringLayoutProgressExample]'''
 
* '''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.layout.examples/src/org/eclipse/gef4/layout/examples/SpringLayoutProgressExample.java org.eclipse.gef4.layout.examples.SpringLayoutProgressExample]'''
 +
 +
The <code>SpringLayoutProgressExample</code> demonstrates how the [[GEF/GEF4/Layout#SpringLayoutAlgorithm|SpringLayoutAlgorithm]] internally computes its layout in succeeding steps.
  
 
[[File:GEF4-Layout-Examples-SpringLayoutProgressExample.png|400px]]
 
[[File:GEF4-Layout-Examples-SpringLayoutProgressExample.png|400px]]
Line 71: Line 80:
  
 
* '''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.layout.examples/src/org/eclipse/gef4/layout/examples/SugiyamaLayoutExample.java org.eclipse.gef4.layout.examples.SugiyamaLayoutExample]'''
 
* '''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.layout.examples/src/org/eclipse/gef4/layout/examples/SugiyamaLayoutExample.java org.eclipse.gef4.layout.examples.SugiyamaLayoutExample]'''
 +
 +
The <code>SugiyamaLayoutExample</code> demonstrates the [[GEF/GEF4/Layout#SugiyamaLayoutAlgorithm|SugiyamaLayoutAlgorithm]].
  
 
[[File:GEF4-Layout-Examples-SugiyamaLayoutExample.png|400px]]
 
[[File:GEF4-Layout-Examples-SugiyamaLayoutExample.png|400px]]
  
 
[[Category:GEF]]
 
[[Category:GEF]]

Revision as of 03:47, 9 June 2015

Examples (undeployed)

  • bundle: org.eclipse.gef4.layout.examples

The examples provided by Examples demonstrate how to use the API provided by GEF4 Layout. They are not deployed on our update-sites and have to checked out in source (org.eclipse.gef4.layout.examples) from our GEF4 Git repository. In order to have the example plug-in compile properly, all other required GEF4 bundles will either have to be installed (in a matching version) into your running eclipse platform (if this is used as target), added to a target definition (the target definitions contained in org.eclipse.gef4.target may be augmented for this purpose), or checked out in source as well. You will also have to install e(fx)clipse in your running eclipse instance and target platform (see GEF Project Contributor Guide for details on how to obtain the sources and setup your workspace). Having prepared everything as outlined before, the standalone example might easily be started by launching one of the following example classes from org.eclipse.gef4.layout.examples via the context menu ('Run As' -> 'Java Application').

CustomLayoutExample

The CustomLayoutExample demonstrates how a custom ILayoutAlgorithm can be realized.

GEF4-Layout-Examples-CustomLayoutExample.png


FilterLayoutExample

The FilterLayoutExample demonstrates usage of an ILayoutFilter.

GEF4-Layout-Examples-FilterLayoutExample.png


FullyMeshedLayoutExample

The FullyMeshedLayoutExample demonstrates how the RadialLayoutAlgorithm re-layouts when adding nodes.

GEF4-Layout-Examples-FullyMeshedLayoutExample.png

RadialLayoutExample

The RadialLayoutExample demonstrates the RadialLayoutAlgorithm.

GEF4-Layout-Examples-RadialLayoutExample.png

SpringLayoutExample

The SpringLayoutProgressExample demonstrates the SpringLayoutAlgorithm.

GEF4-Layout-Examples-SpringLayoutExample.png

SpringLayoutProgressExample

The SpringLayoutProgressExample demonstrates how the SpringLayoutAlgorithm internally computes its layout in succeeding steps.

GEF4-Layout-Examples-SpringLayoutProgressExample.png

SugiyamaLayoutExample

The SugiyamaLayoutExample demonstrates the SugiyamaLayoutAlgorithm.

GEF4-Layout-Examples-SugiyamaLayoutExample.png

Back to the top