# HG changeset patch # User Thomas Wuerthinger # Date 1327706763 -3600 # Node ID 591bed21c1a8d4336ea9869dddae6e2cfa6326a0 # Parent 374cb5e984f604fb512fb1ac1372d8a2b062e86d Remove block background. Default "show blocks" to false. diff -r 374cb5e984f6 -r 591bed21c1a8 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/FilterTopComponent.form --- a/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/FilterTopComponent.form Sat Jan 28 00:19:08 2012 +0100 +++ b/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/FilterTopComponent.form Sat Jan 28 00:26:03 2012 +0100 @@ -4,6 +4,7 @@ + diff -r 374cb5e984f6 -r 591bed21c1a8 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/FilterTopComponent.java --- a/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/FilterTopComponent.java Sat Jan 28 00:19:08 2012 +0100 +++ b/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/FilterTopComponent.java Sat Jan 28 00:26:03 2012 +0100 @@ -408,15 +408,14 @@ lock.releaseLock(); FileObject newFileObject = fileObject.getParent().getFileObject(filter.getName()); fileObject = newFileObject; - } FileLock lock = fileObject.lock(); OutputStream os = fileObject.getOutputStream(lock); - Writer w = new OutputStreamWriter(os); - String s = filter.getCode(); - w.write(s); - w.close(); + try (Writer w = new OutputStreamWriter(os)) { + String s = filter.getCode(); + w.write(s); + } lock.releaseLock(); } catch (IOException ex) { diff -r 374cb5e984f6 -r 591bed21c1a8 src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/DiagramViewModel.java --- a/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/DiagramViewModel.java Sat Jan 28 00:19:08 2012 +0100 +++ b/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/DiagramViewModel.java Sat Jan 28 00:26:03 2012 +0100 @@ -142,7 +142,7 @@ super(calculateStringList(g)); this.showNodeHull = true; - this.showBlocks = true; + this.showBlocks = false; this.group = g; assert filterChain != null; this.filterChain = filterChain; diff -r 374cb5e984f6 -r 591bed21c1a8 src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/widgets/BlockWidget.java --- a/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/widgets/BlockWidget.java Sat Jan 28 00:19:08 2012 +0100 +++ b/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/widgets/BlockWidget.java Sat Jan 28 00:26:03 2012 +0100 @@ -42,7 +42,6 @@ public class BlockWidget extends Widget { public static final int BORDER = 20; - public static final Color BACKGROUND_COLOR = new Color(235, 235, 255); private static final Font titleFont = new Font("Serif", Font.PLAIN, 14).deriveFont(Font.BOLD); private InputBlock blockNode; private Diagram diagram; @@ -51,8 +50,6 @@ super(scene); this.blockNode = blockNode; this.diagram = d; - this.setBackground(BACKGROUND_COLOR); - this.setOpaque(true); this.setCheckClipping(true); }