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"
m |
|||
Line 14: | Line 14: | ||
* FXStaticAnchor | * FXStaticAnchor | ||
* FXChopBoxAnchor | * FXChopBoxAnchor | ||
+ | |||
+ | In general, an anchor is associated with one anchorage visual and can provide positions for several anchored visuals. | ||
+ | |||
+ | === FXChopBoxAnchor === | ||
+ | |||
+ | The FXChopBoxAnchor uses reference points to compute the anchor position for the anchored visuals. One reference point is referred to as the anchorage reference point. This point is the same for every anchored. It is computed based on the geometry of the anchorage. In addition, every anchored specifies one reference point. One anchor position is computed for each pair of (anchorage-reference-point, anchored-reference-point). The following paragraphs describe the anchor computation in detail. | ||
+ | |||
+ | [[Image:GEF4FX-FXChopBoxAnchor-000.png|FXChopBoxAnchor]] | ||
+ | |||
+ | [[Image:GEF4FX-FXChopBoxAnchor-001.png|FXChopBoxAnchor]] | ||
+ | |||
+ | [[Image:GEF4FX-FXChopBoxAnchor-002.png|FXChopBoxAnchor]] | ||
+ | |||
+ | [[Image:GEF4FX-FXChopBoxAnchor-003.png|FXChopBoxAnchor]] | ||
+ | |||
+ | [[Image:GEF4FX-FXChopBoxAnchor-004.png|FXChopBoxAnchor]] | ||
+ | |||
+ | [[Image:GEF4FX-FXChopBoxAnchor-005.png|FXChopBoxAnchor]] | ||
+ | |||
+ | [[Image:GEF4FX-FXChopBoxAnchor-006.png|FXChopBoxAnchor]] | ||
== Gestures == | == Gestures == |
Revision as of 11:32, 26 September 2014
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 FX component provides useful additions for JavaFX, like visual anchors, gesture listeners, a connection implementation, or an IGeometry-based shape implementation.
Anchors
To manage dynamic positioning of visuals in dependence of one another, the GEF4 FX component provides an anchor mechanism.
* IFXAnchor * FXStaticAnchor * FXChopBoxAnchor
In general, an anchor is associated with one anchorage visual and can provide positions for several anchored visuals.
FXChopBoxAnchor
The FXChopBoxAnchor uses reference points to compute the anchor position for the anchored visuals. One reference point is referred to as the anchorage reference point. This point is the same for every anchored. It is computed based on the geometry of the anchorage. In addition, every anchored specifies one reference point. One anchor position is computed for each pair of (anchorage-reference-point, anchored-reference-point). The following paragraphs describe the anchor computation in detail.
Gestures
Several atomic JavaFX events can form a gesture. The FX component provides a FXMouseDragGesture and a FXPinchSpreadGesture.
Listeners
The GEF4 FX component provides a VisualChangeListener which can be used to listen to visual changes of a JavaFX Node.
Nodes
* Adaptation of GEF4 Geometry to JavaFX Node: FXGeometryNode * Connection abstraction using anchor mechanism: FXConnection