How to restore hiden nodes?

29 views
Skip to first unread message

Juanjo

unread,
Oct 14, 2012, 1:02:21 PM10/14/12
to cytoscap...@googlegroups.com
Hi guys,

I'm trying to restore some nodes that are hidden.

I've tried:
                for (Node n : node){
                      network.unhide(node);
                }
but that doesn't restore the edges and doesn't restore the appearance.

I've also tried:
                CyNetworkView view = Cytoscape.getCurrentNetworkView();
                GinyUtils.unHideAll(view);
                view.redraw();
but doesn't do anything.

I've been looking all the old related messages but I could find any solution. Some help please!!!
                view.updateView();

Juanjo

unread,
Oct 15, 2012, 2:06:59 PM10/15/12
to cytoscap...@googlegroups.com
Finally solve by my self. I just used a class to store the hiden nodes and edges and the position of the nodes on lists.

After restore everythingfrom those list I apply the visual style to make it look as before.

Should be an easier way but I have no clue...
Reply all
Reply to author
Forward
0 new messages