perfsonar-dev - perfsonar: r2856 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels
Subject: perfsonar development work
List archive
perfsonar: r2856 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels
Chronological Thread
- From:
- To:
- Subject: perfsonar: r2856 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels
- Date: Thu, 20 Sep 2007 05:07:03 -0400
Author: nina
Date: 2007-09-20 05:07:03 -0400 (Thu, 20 Sep 2007)
New Revision: 2856
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels/MetricsOptionPanel.java
Log:
initial support for additional event types
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels/MetricsOptionPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels/MetricsOptionPanel.java
2007-09-19 15:39:51 UTC (rev 2855)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels/MetricsOptionPanel.java
2007-09-20 09:07:03 UTC (rev 2856)
@@ -1,12 +1,12 @@
/* MetricsOptionPanel.java
* Author: Nina Jeliazkova
- * Date: Aug 22, 2007
- * Revision: 0.1
- *
+ * Date: Aug 22, 2007
+ * Revision: 0.1
+ *
* Copyright (C) 2005-2006 Nina Jeliazkova
- *
+ *
* Contact:
- *
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1
@@ -15,16 +15,16 @@
* - but is not limited to - adding the above copyright notice to the
beginning
* of your source code files, and to any copyright notice that you may
distribute
* with programs based on this work.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
- *
+ *
*/
package org.perfsonar.perfsonarui.ma.ui.panels;
@@ -42,29 +42,31 @@
public class MetricsOptionPanel extends JPanel implements ActionListener {
protected MAPerfsonarModel model;
/**
- *
+ *
*/
private static final long serialVersionUID = -3044215507776120200L;
- //protected String currentEventType;
+ //protected String currentEventType;
protected String[][] metrics = {
{"Utilization","http://ggf.org/ns/nmwg/characteristic/utilization/2.0"},
{"Input
errors","http://ggf.org/ns/nmwg/characteristic/errors/2.0"},
- {"Output
drops","http://ggf.org/ns/nmwg/characteristic/discards/2.0"},
+ {"Output
drops","http://ggf.org/ns/nmwg/characteristic/discards/2.0"}
+ /*
{"Non-unicast
packets","http://ggf.org/ns/nmwg/characteristic/packets/nonunicast/2.0/"},
{"Unicast
packets","http://ggf.org/ns/nmwg/characteristic/packets/unicast/2.0/"}
+ */
};
-
+
public MetricsOptionPanel(MAPerfsonarModel model) {
super();
this.model = model;
addWidgets();
}
-
+
protected void addWidgets() {
setLayout(new BoxLayout(this,BoxLayout.PAGE_AXIS));
ButtonGroup g = new ButtonGroup();
-
+
for (int i=0; i < metrics.length;i++) {
JRadioButton b = new JRadioButton(metrics[i][0]);
b.setActionCommand(metrics[i][1]);
@@ -73,15 +75,15 @@
g.add(b);
add(b);
}
-
+
}
public String toString() {
return "Metrics";
}
public void actionPerformed(ActionEvent arg0) {
-
+
model.setCurrentEventType(arg0.getActionCommand());
-
+
}
}
- perfsonar: r2856 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels, svnlog, 09/20/2007
Archive powered by MHonArc 2.6.16.