| [GEF4] Dynamic graph attributes [message #1710022] |
Fri, 02 October 2015 13:36  |
Eclipse User |
|
|
|
I'm using the JFace Zest API. I would like to be able to change node and edge attributes (e.g. color) dynamically, say in response to a user selecting a node. I'm using the IGraphNodeLabelProvider to set the attributes, but the only way I can see to change the graph dynamically is to call the refresh() method on the ZestContentViewer. Unfortunately this has the effect of recreating the entire graph, which seems pretty undesirable for a mouse click. Also it means I lose any state information that was cached regarding the model.
Is there a better way to achieve this?
Thanks,
Greg
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.24059 seconds