Home » Eclipse Projects » GEF » Generate a tree node with icon and multiline text using GEF(Generate a tree node with icon and multiline text using GEF)
|
Re: Generate a tree node with icon and multiline text using GEF [message #1814197 is a reply to message #1814195] |
Thu, 05 September 2019 10:09   |
Eclipse User |
|
|
|
Hi,
you do not need GeometryNode for this kind of visualisation. GeometryNode is only useful for displaying GEF geometries. It comes with some gimmicks, e.g. resizing and (invisible) clickable-area around the rendered geometry.
I would suggest that you have a look at the following JavaFX nodes: VBox, HBox, ImageView, Text, Separator.
It should be easy to compose something similar.
The node hierarchy could potentially look something like this:
VBox
- HBox (css-class: "title")
-- ImageView
-- Text
-- Text (aligned right)
- Separator
- VBox (css-class: "details")
-- Text
-- Text
The individual colors, stroke widths, icons, etc. could be specified via CSS.
Best regards,
Matthias
|
|
| | | |
Re: Generate a tree node with icon and multiline text using GEF [message #1814452 is a reply to message #1814222] |
Wed, 11 September 2019 11:18   |
Eclipse User |
|
|
|
Hi,
the graph model is usually derived from your content model. The visualisation is then controlled by the content parts. You could, for instance, extend Zest NodePart and adjust it to your needs, or implement your own.
1) SpaceTreeLayoutAlgorithm uses o.e.gef.Graph as input and output. However, you could use any content model and just transform it to compute a layout.
2) Exactly.
Feel free to ask any questions. I will tell you when an answer exceeds the scope of the forum / requires extensive elaboration. However, I already advised you to do the mind map tutorial, because I am certain it would resolve some confusion.
Edit: I just realised that I advised you to do "a tutorial" without providing a link to the mind map tutorial, so, here you are: https://www.itemis.com/en/gef/tutorials/part-1-the-foundations/
Best regards,
Matthias
[Updated on: Wed, 11 September 2019 11:29] by Moderator
|
|
| | | | | |
Goto Forum:
Current Time: Tue Apr 29 18:12:13 EDT 2025
Powered by FUDForum. Page generated in 0.09909 seconds
|