|
|
|
|
Re: GEF/ZEST more complex examples/projects [message #1793652 is a reply to message #1793568] |
Mon, 13 August 2018 06:03   |
Eclipse User |
|
|
|
Hi Joao,
here you are some insights w.r.t. what we learned during development of model viewer:
- favour JavaFX Shapes over GEF FX Connection and GeometryNode
- really try to avoid Connection and related concepts (too computationally intensive: routing, interpolation, dependent calculations, ...)
- still use GeometryNode for complex shapes and the geometry API for calculations
- stick to the handler > policy > operation architecture for interactions with the main visual elements
- provide extended functionality (search box, bread crumb, etc.) without GEF handler interaction (overwrite HandlerResolver to exclude their visuals from processing within GEF)
There are a few code examples available for GEF:
- GEF Logo Example (part of GEF repository at GitHub)
- GEF Zest Example (part of GEF repository at GitHub)
- GEF Mind Map Tutorial (tutorial provided by itemis AG for free): https://info.itemis.com/en/gef/tutorials/
Unfortunately, something as sophisticated as the Model Viewer is not available as an example. However, multiple distinguishable edges between nodes is supported by default. However, the port locations are not provided by GEF. However, you can, for example, integrate ELK and use it for laying out nodes, edges, labels, and ports.
If you have more questions w.r.t. port positioning, we can discuss them here.
Best regards,
Matthias
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.11920 seconds