GEF4 - Zest 4 - A few questions [message #1741496] |
Thu, 25 August 2016 14:22 |
Marc M Messages: 5 Registered: June 2014 Location: France |
Junior Member |
|
|
Hi there,
I am experimenting with Zest and have a few questions.
It would be really cool if s.o. could say s.th about this.
1) Is it possible to get diamond head's for directed graphs when using the ZestContentViewer? Maybe via Edge attributes? Is there anything predefined there?
2) Although I am specifing the size of the node according to the label content:
@Override
public Map<String, Object> getNodeAttributes(Object node) {
final Map<String, Object> attributes = new HashMap<>();
String text = node.toString();
Text atext = new Text();
atext.setText(text);
attributes.put(ZestProperties.SIZE__N, new Dimension((int)atext.getBoundsInLocal().getWidth(), (int)atext.getBoundsInLocal().getHeight()));
}
It seems that SugiyamaLayoutAlgorithm does not respect the size: It places the nodes too adjacent.
3) Is it possible to always render nested nodes? It seems they are only rendered when I zoom in, but I want to be able to see (and possibly move) the nested nodes as well.
Thank you very much in advance
[Updated on: Thu, 25 August 2016 19:01] Report message to a moderator
|
|
|
|
|
Re: GEF4 - Zest 4 - A few questions [message #1742607 is a reply to message #1741605] |
Tue, 06 September 2016 07:18 |
|
Sorry for not having responded, we were all on vacation. As you have already answered your first question, let me say something to the remaining two:
2) I think the implementation of SugiyamaLayoutAlgorithm still needs some improvement (also technically). Please file a Bugzilla for the missing size evaluation.
3) The current behavior evaluates the zoom level to enable that nested nodes are visualized. You can overwrite NodePart#doGetContentChildren() to return the nested graph children independent of the zoom level. If doing so, you should probably also replace SemanticZoomPolicy by a simple FXChangeViewportPolicy to prevent unnecessary children synchronization upon zooming.
|
|
|
Powered by
FUDForum. Page generated in 0.03287 seconds