Difference between revisions of "GEF/GEF4/Layout/Examples"
m (→CustomLayoutExample) |
m (→FilterLayoutExample) |
||
Line 25: | Line 25: | ||
* '''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.layout.examples/src/org/eclipse/gef4/layout/examples/FilterLayoutExample.java org.eclipse.gef4.layout.examples.FilterLayoutExample]''' | * '''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.layout.examples/src/org/eclipse/gef4/layout/examples/FilterLayoutExample.java org.eclipse.gef4.layout.examples.FilterLayoutExample]''' | ||
+ | |||
+ | The <code>FilterLayoutExample</code> demonstrates usage of an [[GEF/GEF4/Layout#ILayoutFilter|ILayoutFilter]]. | ||
[[File:GEF4-Layout-Examples-FilterLayoutExample.png|400px]] | [[File:GEF4-Layout-Examples-FilterLayoutExample.png|400px]] | ||
Line 35: | Line 37: | ||
[[File:GEF4-Layout-Examples-FisheyeLayoutExample.png|400px]] | [[File:GEF4-Layout-Examples-FisheyeLayoutExample.png|400px]] | ||
--> | --> | ||
+ | |||
==== FullyMeshedLayoutExample ==== | ==== FullyMeshedLayoutExample ==== | ||
Revision as of 04:41, 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.
FilterLayoutExample
The FilterLayoutExample
demonstrates usage of an ILayoutFilter.