Author: clopes
Date: 2011-12-05 12:43:35 -0800 (Mon, 05 Dec 2011)
New Revision: 27694

Modified:
   
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DGraphView.java
Log:
Fixed getting NETWORK_WIDTH/HEIGHT values from the network view. 

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
     2011-12-05 20:42:17 UTC (rev 27693)
+++ 
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DGraphView.java
     2011-12-05 20:43:35 UTC (rev 27694)
@@ -2947,8 +2947,10 @@
                } else if (vp == MinimalVisualLexicon.NETWORK_SCALE_FACTOR) {
                        value = getZoom();
                } else if (vp == MinimalVisualLexicon.NETWORK_WIDTH || vp == 
MinimalVisualLexicon.NETWORK_HEIGHT) {
-                       //FIXME
-                       value = MinimalVisualLexicon.NETWORK_WIDTH.getDefault();
+                       value = visualProperties.get(vp);
+                       
+                       if (value == null)
+                               value = vp.getDefault();
                } else
                        value = vp.getDefault();
                

-- 
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