diff options
author | Jose <jose@zeroc.com> | 2012-09-24 22:35:19 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2012-09-24 22:35:19 +0200 |
commit | fbac4a5f9ab52573913a02a4da1efbd51dfd01ac (patch) | |
tree | 0482d4bed4520c3a38c17ea1cece224edc149492 /java/src/IceGridGUI/Coordinator.java | |
parent | Graph & Metrics UI updates (diff) | |
download | ice-fbac4a5f9ab52573913a02a4da1efbd51dfd01ac.tar.bz2 ice-fbac4a5f9ab52573913a02a4da1efbd51dfd01ac.tar.xz ice-fbac4a5f9ab52573913a02a4da1efbd51dfd01ac.zip |
Grap & Metrics UI updates
Diffstat (limited to 'java/src/IceGridGUI/Coordinator.java')
-rw-r--r-- | java/src/IceGridGUI/Coordinator.java | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/java/src/IceGridGUI/Coordinator.java b/java/src/IceGridGUI/Coordinator.java index 03f5dee759d..46051c3de0b 100644 --- a/java/src/IceGridGUI/Coordinator.java +++ b/java/src/IceGridGUI/Coordinator.java @@ -2037,7 +2037,7 @@ public class Coordinator { public void actionPerformed(ActionEvent e) { - _graphViews.add(new GraphView(Coordinator.this)); + createGraphView(); } }; _newGraph.setEnabled(false); @@ -2439,6 +2439,20 @@ public class Coordinator _mainFrame.getContentPane().add(_mainPane, BorderLayout.CENTER); } + public GraphView createGraphView() + { + StringBuilder title = new StringBuilder(); + title.append("Graph"); + if(_graphViews.size() > 0) + { + title.append(" - "); + title.append(Integer.toString(_graphViews.size())); + } + GraphView view = new GraphView(Coordinator.this, title.toString()); + _graphViews.add(view); + return view; + } + public LiveDeploymentPane getLiveDeploymentPane() { return _liveDeploymentPane; @@ -2811,6 +2825,11 @@ public class Coordinator return _connected; } + public GraphView[] getGraphViews() + { + return _graphViews.toArray(new GraphView[_graphViews.size()]); + } + // // May run in any thread // |