Author: kono
Date: 2011-07-19 14:52:19 -0700 (Tue, 19 Jul 2011)
New Revision: 26218
Modified:
core3/ding-presentation-impl/trunk/src/main/java/org/cytoscape/ding/impl/DGraphView.java
Log:
fixes #326 View model will be updated when ding modifies the value.
Modified:
core3/ding-presentation-impl/trunk/src/main/java/org/cytoscape/ding/impl/DGraphView.java
===================================================================
---
core3/ding-presentation-impl/trunk/src/main/java/org/cytoscape/ding/impl/DGraphView.java
2011-07-19 21:11:28 UTC (rev 26217)
+++
core3/ding-presentation-impl/trunk/src/main/java/org/cytoscape/ding/impl/DGraphView.java
2011-07-19 21:52:19 UTC (rev 26218)
@@ -1129,10 +1129,13 @@
m_networkCanvas.m_scaleFactor = 1.0;
}
m_viewportChanged = true;
+
+ // Update view model. Zoom Level should be modified.
+
this.cyNetworkView.setVisualProperty(MinimalVisualLexicon.NETWORK_SCALE_FACTOR,
zoom);
}
- if (updateView) {
+
+ if (updateView)
this.updateView();
- }
}
/**
@@ -2018,6 +2021,9 @@
m_networkCanvas.m_scaleFactor = checkZoom(zoom,
m_networkCanvas.m_scaleFactor);
m_viewportChanged = true;
+
+ // Update view model. Zoom Level should be modified.
+
this.cyNetworkView.setVisualProperty(MinimalVisualLexicon.NETWORK_SCALE_FACTOR,
zoom);
}
updateView();
}
--
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.