[ZEST] Adding CGraphNodes to GraphContainers [message #541827] |
Tue, 22 June 2010 16:15 |
cefdemetser Messages: 8 Registered: June 2010 |
Junior Member |
|
|
Adding a CGraphNode to a GraphContainer in Zest doesn't seem to give any troubles. Only, the figure of the CGraphNode is not shown inside the container.
What could be the cause of this? Do I need to change Zest to enable this, if so, where should I start? I have looked at the code of Zest in detail, so you can be quite specific.
Thanks!
[Updated on: Tue, 22 June 2010 16:16] Report message to a moderator
|
|
|
Re: [ZEST] Adding CGraphNodes to GraphContainers [message #541963 is a reply to message #541827] |
Wed, 23 June 2010 11:57 |
cefdemetser Messages: 8 Registered: June 2010 |
Junior Member |
|
|
Actually, the custom figure shows up, not inside the container but as an independent node on the graph layer.
So the following code:
GraphContainer gC = new GraphContainer(graph, SWT.NONE);
GraphNode n2 = new GraphNode(gC ,SWT.NONE, "test");
CGraphNode cn1 = new CGraphNode(gC, SWT.NONE, t2);
Creates a container holding n2, but cn1 is drawn outside the container, as it is of type CGraphNode. Going through the code, I can't see a difference between creating n2 and cn1 which could cause this discriminating behavior.
[Updated on: Wed, 23 June 2010 11:58] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03370 seconds