Author: jm
Date: 2012-08-07 10:04:19 -0700 (Tue, 07 Aug 2012)
New Revision: 30109

Modified:
   
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DGraphView.java
Log:
Fixes #1325: New node views now take current selection state into account.

Modified: 
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DGraphView.java
===================================================================
--- 
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DGraphView.java
     2012-08-07 01:15:22 UTC (rev 30108)
+++ 
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DGraphView.java
     2012-08-07 17:04:19 UTC (rev 30109)
@@ -836,6 +836,10 @@
                m_drawPersp.addNode(node);
 
                final DNodeView dNodeView = new DNodeView(dingLexicon, this, 
nodeInx, node, vmm, netViewMgr);
+               Boolean selected = 
getModel().getRow(node).get(CyNetwork.SELECTED, Boolean.class);
+               if (selected != null && selected) {
+                       dNodeView.select();
+               }
 
                m_nodeViewMap.put(node, dNodeView);
                m_spacial.insert(nodeInx, m_defaultNodeXMin, m_defaultNodeYMin, 
m_defaultNodeXMax, m_defaultNodeYMax);

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to