Mercurial > hg > truffle
changeset 4510:0f194adee462
Fixed layout and zoom implementation in cfg view.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 07 Feb 2012 22:28:18 +0100 |
parents | 886bd4e4c080 |
children | 6cb549627941 |
files | src/share/tools/IdealGraphVisualizer/ControlFlowEditor/src/at/ssw/visualizer/cfg/graph/CfgScene.java |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/tools/IdealGraphVisualizer/ControlFlowEditor/src/at/ssw/visualizer/cfg/graph/CfgScene.java Tue Feb 07 22:24:29 2012 +0100 +++ b/src/share/tools/IdealGraphVisualizer/ControlFlowEditor/src/at/ssw/visualizer/cfg/graph/CfgScene.java Tue Feb 07 22:28:18 2012 +0100 @@ -306,10 +306,6 @@ public void setSceneLayout(int newLayout) { - if (currentLayout == newLayout) { - return; - } - GraphLayout<CfgNode, CfgEdge> graphLayout = null; switch (newLayout) { @@ -768,13 +764,13 @@ @Override public void zoomIn() { - this.setZoomFactor(1.1); + this.setZoomFactor(this.getZoomFactor() * 1.1); this.validate(); } @Override public void zoomOut() { - this.setZoomFactor(0.9); + this.setZoomFactor(this.getZoomFactor() * 0.9); this.validate(); }