summaryrefslogtreecommitdiff
path: root/java/src/IceGridGUI/Coordinator.java
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2012-09-24 22:35:19 +0200
committerJose <jose@zeroc.com>2012-09-24 22:35:19 +0200
commitfbac4a5f9ab52573913a02a4da1efbd51dfd01ac (patch)
tree0482d4bed4520c3a38c17ea1cece224edc149492 /java/src/IceGridGUI/Coordinator.java
parentGraph & Metrics UI updates (diff)
downloadice-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.java21
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
//