Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.
I have a custom visualizer class used to display my main graph in a JFrame. For a set of selected vertices, I generate a second type of graph using vertex selection menu and display it using a second visualizer in a new JFrame. My problem is I do not know how to highlight the vertices selected in the second visualizer in the first one. Is it possible? I am using Jung 2.0.
I would appreciate any help. Thanks in advance.
Assuming the vertex objects are the same, then you can use the same state for both graphs to indicate which vertices are selected. E.g., use a shared Set of selected vertices (used by the code which cares about selected vertices), or set a bit in the vertex object itself indicating selected state.
Our MultiViewDemo shows how to do this.
Hi Joshua and Tom,
Thank you both for the suggestions. I tried the first option and it is working.
Appreciate the help..!