Skip to content

Layout Examples

mwienand edited this page Aug 4, 2016 · 5 revisions

Examples (undeployed)

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

The examples provided by Examples demonstrate how to use the API provided by Layout. They are not deployed on our update-sites and have to checked out in source (org.eclipse.gef.layout.examples) from our GEF Git repository. In order to have the example plug-in compile properly, all other required GEF 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.gef.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.gef.layout.examples via the context menu ('Run As' -> 'Java Application').

CustomLayoutExample

The CustomLayoutExample demonstrates how a custom ILayoutAlgorithm can be realized.

Image

FilterLayoutExample

The FilterLayoutExample demonstrates usage of an ILayoutFilter.

Image

FullyMeshedLayoutExample

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

Image

RadialLayoutExample

The RadialLayoutExample demonstrates the RadialLayoutAlgorithm.

Image

SpringLayoutExample

The SpringLayoutProgressExample demonstrates the SpringLayoutAlgorithm.

Image

SpringLayoutProgressExample

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

Image

SugiyamaLayoutExample

The SugiyamaLayoutExample demonstrates the SugiyamaLayoutAlgorithm.

Image

Clone this wiki locally