What are the alternatives of Zest in visualizing diagram?
-
29-05-2021 - |
Question
I have a need to create a diagram viewer. There is hierarchical tree that I want to visualize in Eclipse plugin. I manage to know GEF, and there is Zest. But in Zest, I don't success in creating custom shape in graphic nodes and there is no tutorial to create the custom node (I have been searching all day). So I want to know if there are alternatives beside Zest. What I like most from Zest is it provides layouting algorithms.
Solution
Do you need to edit that tree? If not, I would use the Zest framework.
This might help you to create the custom shape.
OTHER TIPS
You can use GraphViz which is popular and has an eclipse plugin. Note that I have never used it.
You need to have your LabelProvider implement the IFigureProvider interface, and override the getFigure method to return a custom IFigure implementation which draws your custom shape and has its colors set the way you want them.
However, there seems to be a bug in support for highlighting support for a custom node. The bug report gives a patch, and claims it has been fixed, but I don't see the fix appearing in current (4.3) version of the Eclipse plugins. I don't know why. (Does anybody else?) I made a copy of the plugin and patched it manually. Here is the bug: