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.
Difference between revisions of "GEF/GEF4/FX/Examples"
(8 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
The examples provided by [[#Examples (undeployed)|Examples]] demonstrate how to use the API provided by the [[GEF/GEF4/FX#FX|FX]] module of [[GEF/GEF4/FX|GEF4 FX]]. They are not deployed on our update-sites and have to checked out in source (<code>org.eclipse.gef4.fx.examples</code>) from our [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/ 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 <code>org.eclipse.gef4.target</code> 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/Contributor Guide | 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 <code>org.eclipse.gef4.fx.examples</code> via the context menu ('Run As' -> 'Java Application'). | The examples provided by [[#Examples (undeployed)|Examples]] demonstrate how to use the API provided by the [[GEF/GEF4/FX#FX|FX]] module of [[GEF/GEF4/FX|GEF4 FX]]. They are not deployed on our update-sites and have to checked out in source (<code>org.eclipse.gef4.fx.examples</code>) from our [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/ 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 <code>org.eclipse.gef4.target</code> 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/Contributor Guide | 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 <code>org.eclipse.gef4.fx.examples</code> via the context menu ('Run As' -> 'Java Application'). | ||
− | ==== | + | ==== ConnectionSnippet ==== |
− | *'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.examples/src/org/eclipse/gef4/fx/examples/ | + | *'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.examples/src/org/eclipse/gef4/fx/examples/ConnectionSnippet.java org.eclipse.gef4.fx.examples.ConnectionSnippet]''' |
− | The <code> | + | The <code>ConnectionSnippet</code> demonstrates the usage of [[GEF/GEF4/FX#Connection|Connection]], including different [[GEF/GEF4/FX#IConnectionRouter, StraightRouter, OrthogonalRouter|IConnectionRouter]]s, as well as of [[GEF/GEF4/FX#GeometryNode|GeometryNode]]. |
− | [[File:GEF4-FX-Examples- | + | [[File:GEF4-FX-Examples-ConnectionSnippet.png|400px]] |
− | ==== | + | ==== DynamicAnchorShapeSnippet ==== |
− | *'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.examples/src/org/eclipse/gef4/fx/examples/ | + | *'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.examples/src/org/eclipse/gef4/fx/examples/DynamicAnchorShapeSnippet.java org.eclipse.gef4.fx.examples.DynamicAnchorShapeSnippet]''' |
− | The <code> | + | The <code> DynamicAnchorShapeSnippet </code> visualizes the point computation of [[GEF/GEF4/FX#DynamicAnchor, IComputationStrategy, ProjectionStrategy, OrthogonalProjectionStrategy, ChopBoxStrategy|DynamicAnchor]] for the different [http://docs.oracle.com/javafx/2/api/javafx/scene/shape/Shape.html javafx.scene.shape.Shape] implementations. |
+ | |||
+ | [[File:GEF4-FX-Examples-DynamicAnchorShapeSnippet.png|400px]] | ||
+ | |||
+ | ==== GeometryNodeSnippet ==== | ||
+ | |||
+ | *'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.examples/src/org/eclipse/gef4/fx/examples/GeometryNodeSnippet.java org.eclipse.gef4.fx.examples.GeometryNodeSnippet]''' | ||
+ | |||
+ | The <code>GeometryNodeSnippet</code> demonstrates usage of [[GEF/GEF4/FX#GeometryNode|GeometryNode]]. | ||
[[File:GEF4-FX-Examples-FXGeometryNodeSnippet.png|300px]] | [[File:GEF4-FX-Examples-FXGeometryNodeSnippet.png|300px]] | ||
− | ==== | + | ==== MouseDragSnippet ==== |
− | *'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.examples/src/org/eclipse/gef4/fx/examples/ | + | *'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.examples/src/org/eclipse/gef4/fx/examples/MouseDragSnippet.java org.eclipse.gef4.fx.examples.MouseDragSnippet]''' |
− | The <code> | + | The <code>MouseDragSnippet</code> demonstrates the usage of [[GEF/GEF4/FX#IAnchor|IAnchor]]. |
[[File:GEF4-FX-Examples-FXMouseDragSnippet.png|400px]] | [[File:GEF4-FX-Examples-FXMouseDragSnippet.png|400px]] | ||
Line 32: | Line 40: | ||
---- | ---- | ||
− | == Examples. | + | == Examples.SWT (undeployed) == |
− | *'''bundle: org.eclipse.gef4.fx.examples. | + | *'''bundle: org.eclipse.gef4.fx.examples.swt''' |
− | The examples provided by [[#Examples. | + | The examples provided by [[#Examples.SWT (undeployed)|Examples.SWT]] demonstrate how to use the API provided by the [[GEF/GEF4/FX#FX.SWT|FX.SWT]] module of [[GEF/GEF4/FX|GEF4 FX]]. They are not deployed on our update-sites and have to checked out in source (<code>org.eclipse.gef4.fx.examples.swt</code>) from our [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/ 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 <code>org.eclipse.gef4.target</code> 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/Contributor Guide | 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 <code>org.eclipse.gef4.fx.examples.ui</code> via the context menu ('Run As' -> 'Java Application'). |
==== ButtonFXControlAdapterSnippet ==== | ==== ButtonFXControlAdapterSnippet ==== | ||
− | *'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.examples. | + | *'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.examples.swt/src/org/eclipse/gef4/fx/examples/swt/ButtonFXControlAdapterSnippet.java org.eclipse.gef4.fx.examples.swt.ButtonFXControlAdapterSnippet]''' |
The <code>ButtonFXControlAdapterSnippet</code> demonstrates the usage of [[GEF/GEF4/FX#FXControlAdapter|FXControlAdapter]]. | The <code>ButtonFXControlAdapterSnippet</code> demonstrates the usage of [[GEF/GEF4/FX#FXControlAdapter|FXControlAdapter]]. | ||
Line 46: | Line 54: | ||
==== ChangeCursor ==== | ==== ChangeCursor ==== | ||
− | *'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.examples. | + | *'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.examples.swt/src/org/eclipse/gef4/fx/examples/swt/ChangeCursor.java org.eclipse.gef4.fx.examples.swt.ChangeCursor]''' |
The <code>ChangeCurser</code> demonstrates how JavaFX cursors can be manipulated. | The <code>ChangeCurser</code> demonstrates how JavaFX cursors can be manipulated. | ||
Line 53: | Line 61: | ||
==== StyledTextFXControlAdapterSnippet ==== | ==== StyledTextFXControlAdapterSnippet ==== | ||
− | *'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.examples. | + | *'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.examples.swt/src/org/eclipse/gef4/fx/examples/swt/StyledTextFXControlAdapterSnippet.java org.eclipse.gef4.fx.examples.swt.StyledTextFXControlAdapterSnippet]''' |
The <code>StyledTextFXControlAdapterSnippet</code> demonstrates the usage of [[GEF/GEF4/FX#FXControlAdapter|FXControlAdapter]]. | The <code>StyledTextFXControlAdapterSnippet</code> demonstrates the usage of [[GEF/GEF4/FX#FXControlAdapter|FXControlAdapter]]. | ||
Line 60: | Line 68: | ||
==== SwtToFXGestureConversionDemo ==== | ==== SwtToFXGestureConversionDemo ==== | ||
− | *'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.examples. | + | *'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.examples.swt/src/org/eclipse/gef4/fx/examples/swt/SwtToFXGestureConversionDemo.java org.eclipse.gef4.fx.examples.swt.SwtToFXGestureConversionDemo]''' |
The <code>SwtToFXGestureConversionDemo</code> demonstrates the usage of [[GEF/GEF4/FX#SwtToFXGestureConverter|SwtToFXGestureConverter]]. | The <code>SwtToFXGestureConversionDemo</code> demonstrates the usage of [[GEF/GEF4/FX#SwtToFXGestureConverter|SwtToFXGestureConverter]]. |
Latest revision as of 22:19, 1 June 2016
Examples (undeployed)
- bundle: org.eclipse.gef4.fx.examples
The examples provided by Examples demonstrate how to use the API provided by the FX module of GEF4 FX. They are not deployed on our update-sites and have to checked out in source (org.eclipse.gef4.fx.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.fx.examples
via the context menu ('Run As' -> 'Java Application').
ConnectionSnippet
The ConnectionSnippet
demonstrates the usage of Connection, including different IConnectionRouters, as well as of GeometryNode.
DynamicAnchorShapeSnippet
The DynamicAnchorShapeSnippet
visualizes the point computation of DynamicAnchor for the different javafx.scene.shape.Shape implementations.
GeometryNodeSnippet
The GeometryNodeSnippet
demonstrates usage of GeometryNode.
MouseDragSnippet
The MouseDragSnippet
demonstrates the usage of IAnchor.
Examples.SWT (undeployed)
- bundle: org.eclipse.gef4.fx.examples.swt
The examples provided by Examples.SWT demonstrate how to use the API provided by the FX.SWT module of GEF4 FX. They are not deployed on our update-sites and have to checked out in source (org.eclipse.gef4.fx.examples.swt
) 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.fx.examples.ui
via the context menu ('Run As' -> 'Java Application').
ButtonFXControlAdapterSnippet
The ButtonFXControlAdapterSnippet
demonstrates the usage of FXControlAdapter.
ChangeCursor
The ChangeCurser
demonstrates how JavaFX cursors can be manipulated.
StyledTextFXControlAdapterSnippet
The StyledTextFXControlAdapterSnippet
demonstrates the usage of FXControlAdapter.
SwtToFXGestureConversionDemo
The SwtToFXGestureConversionDemo
demonstrates the usage of SwtToFXGestureConverter.