Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r2551 - in branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa: . panels

Subject: perfsonar development work

List archive

perfsonar: r2551 - in branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa: . panels


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r2551 - in branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa: . panels
  • Date: Thu, 19 Jul 2007 08:11:01 -0400

Author: gijs
Date: 2007-07-19 08:11:00 -0400 (Thu, 19 Jul 2007)
New Revision: 2551

Modified:

branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAPerfsonarResponse.java

branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSARequest.java

branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSARequestAction.java

branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/PerfsonarFlowSAModel.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/UserData.java

branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/MainOptionsPanel.java

branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/MomentOptionsPanel.java

branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RawOptionsPanel.java

branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RawPanel.java

branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RouterOptionsPanel.java

branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/StatPanel.java

branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/TopOptionsPanel.java

branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/TopPanel.java
Log:

- added copyright and id fields to all files
- reading settings from options now

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAPerfsonarResponse.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAPerfsonarResponse.java
2007-07-18 13:45:36 UTC (rev 2550)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAPerfsonarResponse.java
2007-07-19 12:11:00 UTC (rev 2551)
@@ -1,4 +1,10 @@
+/*

+ $Id$
+ $Copyright$
+
+*/
+
package org.perfsonar.perfsonarui.flowsa;




Property changes on:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAPerfsonarResponse.java
___________________________________________________________________
Name: copyright
+ copyright: no copyright yet
Name: svn:keywords
+ Id

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSARequest.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSARequest.java
2007-07-18 13:45:36 UTC (rev 2550)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSARequest.java
2007-07-19 12:11:00 UTC (rev 2551)
@@ -1,4 +1,11 @@

+/*
+
+ $Id$
+ $Copyright$
+
+*/
+
package org.perfsonar.perfsonarui.flowsa;

import javax.xml.parsers.DocumentBuilderFactory;


Property changes on:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSARequest.java
___________________________________________________________________
Name: copyright
+ copyright: no copyright yet
Name: svn:keywords
+ Id

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSARequestAction.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSARequestAction.java
2007-07-18 13:45:36 UTC (rev 2550)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSARequestAction.java
2007-07-19 12:11:00 UTC (rev 2551)
@@ -1,3 +1,10 @@
+/*
+
+ $Id$
+ $Copyright$
+
+*/
+
package org.perfsonar.perfsonarui.flowsa;

import java.awt.event.ActionEvent;


Property changes on:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSARequestAction.java
___________________________________________________________________
Name: copyright
+ copyright: no copyright yet
Name: svn:keywords
+ Id

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/PerfsonarFlowSAModel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/PerfsonarFlowSAModel.java
2007-07-18 13:45:36 UTC (rev 2550)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/PerfsonarFlowSAModel.java
2007-07-19 12:11:00 UTC (rev 2551)
@@ -1,3 +1,10 @@
+/*
+
+ $Id$
+ $Copyright$
+
+*/
+
package org.perfsonar.perfsonarui.flowsa;

import java.awt.Component;
@@ -13,7 +20,9 @@
import org.perfsonar.perfsonarui.plugins.MAEndpoint;
import org.perfsonar.perfsonarui.ui.PerfsonarModel;
import org.perfsonar.perfsonarui.ui.PluginMainPanel;
+import org.perfsonar.perfsonarui.ui.actions.PSUIAction;
import org.perfsonar.perfsonarui.ui.actions.PerfsonarRequestAction;
+import org.perfsonar.perfsonarui.ui.actions.SetOptionsAction;
import org.perfsonar.perfsonarui.ui.panels.ResponseDetailsPane;

import org.perfsonar.perfsonarui.flowsa.panels.MainOptionsPanel;
@@ -23,50 +32,62 @@
import org.perfsonar.perfsonarui.flowsa.panels.RouterOptionsPanel;
import org.perfsonar.perfsonarui.flowsa.panels.TopOptionsPanel;

+public class PerfsonarFlowSAModel extends PerfsonarModel {

+ private MainOptionsPanel mainOptionsPanel;
+ private MomentOptionsPanel momentOptionsPanel;
+ private RouterOptionsPanel routerOptionsPanel;
+ private RawOptionsPanel rawOptionsPanel;
+ private TopOptionsPanel topOptionsPanel;

-
-public class PerfsonarFlowSAModel extends PerfsonarModel {
-
-
public PerfsonarFlowSAModel() {
super();
getEndpointList().setMultipleEndpoints(false);
+ mainOptionsPanel = new MainOptionsPanel();
+ momentOptionsPanel = new MomentOptionsPanel();
+ routerOptionsPanel = new RouterOptionsPanel();
+ rawOptionsPanel = new RawOptionsPanel();
+ topOptionsPanel = new TopOptionsPanel();
}
-
-
+
@Override
public JComponent[] createOptionsComponent(Component parentComponent)
{
- return new JComponent[] {
- new MainOptionsPanel(),
- new MomentOptionsPanel(),
- new RouterOptionsPanel(),
- new RawOptionsPanel(),
- new TopOptionsPanel()
+ return new JComponent[] { mainOptionsPanel,
momentOptionsPanel,
+ routerOptionsPanel, rawOptionsPanel,
topOptionsPanel };
+ }
+
+ public PSUIAction createOptionsAction() {
+ return new SetOptionsAction(this) {
+ @Override
+ protected void confirm(JComponent[] optionPanels) {
+
mainOptionsPanel.QueryTypeBox.getSelectedItem();
+ momentOptionsPanel.getStartMoment();
+ momentOptionsPanel.getEndMoment();
+ rawOptionsPanel.getFilter();
+ rawOptionsPanel.getAggregation();
+ rawOptionsPanel.getFields();
+ topOptionsPanel.getElement();
+ topOptionsPanel.getOrderBy();
+ topOptionsPanel.getNumber();
+ topOptionsPanel.getTransGroup();
+ }
};
}

-
@Override
public JComponent[] createDetailsComponent(Component parentComponent)
{
- String[][] s = new String[][] {
- {UserData.C_QUERYTYPE,"Query Type"},
+ String[][] s = new String[][] { { UserData.QUERYTYPE, "Query
Type" },

- };
- ResponseDetailsPane scrollPaneResponse = new
ResponseDetailsPane(" Query Details",
- getUserData(),
- getDataList(),
- s,
- false,
- false);
- return new JComponent[] {scrollPaneResponse};
+ };
+ ResponseDetailsPane scrollPaneResponse = new
ResponseDetailsPane(
+ " Query Details", getUserData(),
getDataList(), s, false, false);
+ return new JComponent[] { scrollPaneResponse };
}
-

-
@Override
protected SmartMARequest createSmartRequest() {
- if (request != null) return request;
+ if (request != null)
+ return request;
return new SmartMARequest() {
@Override
public IPerfsonarRequest createMARequest(MAEndpoint
endpoint) {
@@ -75,40 +96,32 @@
};
}

-
-
@Override
protected PerfsonarRequestAction createMetadataRequestAction() {
return null;
}

-
public PluginMainPanel createMainComponent(Component parentComponent)
{
- //return new MainPanel(parentComponent,this);
- return new RawPanel(parentComponent,this);
- //return new StatPanel(parentComponent,this);
- //return new TopPanel(parentComponent,this);
+ // return new MainPanel(parentComponent,this);
+ return new RawPanel(parentComponent, this);
+ // return new StatPanel(parentComponent,this);
+ // return new TopPanel(parentComponent,this);
}

-
@Override
public String toString() {
return "FlowSA";
}

-
public int getOrder() {
- return 1000000;
+ return 100;
}
-
-
+
@Override
public List<IPerfsonarSchema> getSupportedRequests() {
- ArrayList<IPerfsonarSchema> supported = new
ArrayList<IPerfsonarSchema>();
+ ArrayList<IPerfsonarSchema> supported = new
ArrayList<IPerfsonarSchema>();
supported.add(new PerfsonarSchema("flowsa"));
return supported;
}

}
-
-


Property changes on:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/PerfsonarFlowSAModel.java
___________________________________________________________________
Name: copyright
+ copyright: no copyright yet
Name: svn:keywords
+ Id

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/UserData.java
===================================================================
--- branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/UserData.java
2007-07-18 13:45:36 UTC (rev 2550)
+++ branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/UserData.java
2007-07-19 12:11:00 UTC (rev 2551)
@@ -1,36 +1,41 @@
+/*

+ $Id$
+ $Copyright$

+*/
+
package org.perfsonar.perfsonarui.flowsa;

import org.perfsonar.perfsonarui.AbstractUserData;

+public class UserData extends AbstractUserData {

-public class UserData extends AbstractUserData {
-
private static final long serialVersionUID = 1L;

-
- public final static String C_QUERYTYPE="Query";
+ public final static String QUERYTYPE = "Query";
+ public final static String STARTMOMENT = "Start Moment";
+ public final static String ENDMOMENT = "End Moment";
+ public final static String RAWFILTER = "Raw Filter rule";
+ public final static String RAWAGGREGATION = "Raw Aggregation rule";
+ public final static String RAWFIELDS = "Raw fields";
+ public final static String TOPELEMENTS = "Top fields";
+ public final static String TOPORDERBY = "Top Order by";
+ public final static String TOPNUMBER = "Top Numbers";
+ public final static String TOPTRANSGROUP = "Top Group Transport
ports";

public static final int INDEX_QUERYTYPE = 0;

- public static String[] titles = {
- "Query Type"
+ public static String[] titles = { "Query Type" };

- };
- public static String[] names = {
- C_QUERYTYPE
- };
-
+ public static String[] names = { QUERYTYPE };

-
public UserData() {
super();
setChanged();
notifyObservers();
-
+
}
-

@Override
public void clear() {
@@ -39,13 +44,8 @@
notifyObservers();
}

-
-
-
public String getHostname(int index) {
- return get(index,names[INDEX_QUERYTYPE]).toString();
+ return get(index, names[INDEX_QUERYTYPE]).toString();
}

-
}
-


Property changes on:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/UserData.java
___________________________________________________________________
Name: copyright
+ copyright: no copyright yet
Name: svn:keywords
+ Id

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/MainOptionsPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/MainOptionsPanel.java
2007-07-18 13:45:36 UTC (rev 2550)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/MainOptionsPanel.java
2007-07-19 12:11:00 UTC (rev 2551)
@@ -1,70 +1,81 @@
+/*
+
+ $Id$
+ $Copyright$
+
+*/
+
package org.perfsonar.perfsonarui.flowsa.panels;

public class MainOptionsPanel extends javax.swing.JPanel {
-
+
private static final long serialVersionUID = 1L;

-
- public MainOptionsPanel() {
- addWidgets();
- }
-
- @Override
- public String toString() {
- return "Main";
- }
-
-
- private void addWidgets() {
- jPanel1 = new javax.swing.JPanel();
- QueryTypeBox = new javax.swing.JComboBox();
- QueryTypeLabel = new javax.swing.JLabel();
+ public MainOptionsPanel() {
+ addWidgets();
+ }

- QueryTypeBox.setModel(new javax.swing.DefaultComboBoxModel(new
String[] { "Raw", "Top", "Statistical" }));
+ @Override
+ public String toString() {
+ return "Main";
+ }

- QueryTypeLabel.setText("query type:");
+ private void addWidgets() {
+ jPanel1 = new javax.swing.JPanel();
+ QueryTypeBox = new javax.swing.JComboBox();
+ QueryTypeLabel = new javax.swing.JLabel();

- org.jdesktop.layout.GroupLayout jPanel1Layout = new
org.jdesktop.layout.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
-
jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(org.jdesktop.layout.GroupLayout.TRAILING,
jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .add(QueryTypeLabel)
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .add(QueryTypeBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(79, 79, 79))
- );
- jPanel1Layout.setVerticalGroup(
-
jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
-
.add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(QueryTypeBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(QueryTypeLabel))
- .addContainerGap(59, Short.MAX_VALUE))
- );
+ QueryTypeBox.setModel(new javax.swing.DefaultComboBoxModel(
+ new String[] { "Raw", "Top", "Statistical"
}));

- org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
-
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(layout.createSequentialGroup()
- .addContainerGap()
- .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addContainerGap())
- );
- layout.setVerticalGroup(
-
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(layout.createSequentialGroup()
- .addContainerGap()
- .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addContainerGap())
- );
- }
- private javax.swing.JComboBox QueryTypeBox;
- private javax.swing.JLabel QueryTypeLabel;
- private javax.swing.JPanel jPanel1;
-
-
+ QueryTypeLabel.setText("query type:");
+
+ org.jdesktop.layout.GroupLayout jPanel1Layout = new
org.jdesktop.layout.GroupLayout(
+ jPanel1);
+ jPanel1.setLayout(jPanel1Layout);
+
jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+ org.jdesktop.layout.GroupLayout.TRAILING,
+
jPanel1Layout.createSequentialGroup().addContainerGap().add(
+
QueryTypeLabel).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE).add(QueryTypeBox,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(79,
+ 79, 79)));
+
jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
jPanel1Layout.createSequentialGroup().addContainerGap().add(
+
jPanel1Layout.createParallelGroup(
+
org.jdesktop.layout.GroupLayout.BASELINE).add(
+ QueryTypeBox,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(QueryTypeLabel)).addContainerGap(59,
+ Short.MAX_VALUE)));
+
+ org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(
+ this);
+ this.setLayout(layout);
+ layout.setHorizontalGroup(layout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(jPanel1,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE).addContainerGap()));
+ layout.setVerticalGroup(layout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(jPanel1,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE).addContainerGap()));
+ }
+
+ public javax.swing.JComboBox QueryTypeBox;
+ private javax.swing.JLabel QueryTypeLabel;
+ private javax.swing.JPanel jPanel1;
+
}
\ No newline at end of file


Property changes on:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/MainOptionsPanel.java
___________________________________________________________________
Name: copyright
+ copyright: no copyright yet
Name: svn:keywords
+ Id

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/MomentOptionsPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/MomentOptionsPanel.java
2007-07-18 13:45:36 UTC (rev 2550)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/MomentOptionsPanel.java
2007-07-19 12:11:00 UTC (rev 2551)
@@ -1,286 +1,637 @@
+/*

+ $Id$
+ $Copyright$

+*/
+
package org.perfsonar.perfsonarui.flowsa.panels;

+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.util.Calendar;

-public class MomentOptionsPanel extends javax.swing.JPanel {
-
+public class MomentOptionsPanel extends javax.swing.JPanel implements
+ ActionListener {
+
private static final long serialVersionUID = 1L;

- private javax.swing.JPanel StartMomentPanel;
- private javax.swing.JPanel endMomentPanel;
- private javax.swing.JComboBox momentEndDayComboBox;
- private javax.swing.JLabel momentEndDayLabel;
- private javax.swing.JComboBox momentEndHourComboBox;
- private javax.swing.JLabel momentEndHourLabel;
- private javax.swing.JComboBox momentEndMonthComboBox;
- private javax.swing.JLabel momentEndMonthLabel;
- private javax.swing.JComboBox momentEndSecondComboBox;
- private javax.swing.JLabel momentEndSecondLabel;
- private javax.swing.JFormattedTextField momentEndUnixField;
- private javax.swing.JLabel momentEndUnixLabel;
- private javax.swing.JComboBox momentEndYearComboBox;
- private javax.swing.JLabel momentEndYearLabel;
- private javax.swing.JComboBox momentStartDayComboBox;
- private javax.swing.JLabel momentStartDayLabel;
- private javax.swing.JComboBox momentStartHourComboBox;
- private javax.swing.JLabel momentStartHourLabel;
- private javax.swing.JComboBox momentStartMonthComboBox;
- private javax.swing.JLabel momentStartMonthLabel;
- private javax.swing.JComboBox momentStartSecondComboBox;
- private javax.swing.JLabel momentStartSecondLabel;
- private javax.swing.JFormattedTextField momentStartUnixField;
- private javax.swing.JLabel momentStartUnixLabel;
- private javax.swing.JComboBox momentStartYearComboBox;
- private javax.swing.JLabel momentStartYearLabel;
- private javax.swing.JButton presetLoadButton;
- private javax.swing.JPanel presetPanel;
- private javax.swing.JComboBox presetSelectComboBox;
-
-
- public MomentOptionsPanel() {
- addWidgets();
- }
-
- @Override
- public String toString() {
- return "Period";
- }
-
- private void addWidgets() {
- StartMomentPanel = new javax.swing.JPanel();
- momentStartYearComboBox = new javax.swing.JComboBox();
- momentStartMonthComboBox = new javax.swing.JComboBox();
- momentStartDayComboBox = new javax.swing.JComboBox();
- momentStartHourComboBox = new javax.swing.JComboBox();
- momentStartSecondComboBox = new javax.swing.JComboBox();
- momentStartYearLabel = new javax.swing.JLabel();
- momentStartMonthLabel = new javax.swing.JLabel();
- momentStartDayLabel = new javax.swing.JLabel();
- momentStartHourLabel = new javax.swing.JLabel();
- momentStartSecondLabel = new javax.swing.JLabel();
- momentStartUnixLabel = new javax.swing.JLabel();
- momentStartUnixField = new javax.swing.JFormattedTextField();
- endMomentPanel = new javax.swing.JPanel();
- momentEndYearComboBox = new javax.swing.JComboBox();
- momentEndMonthComboBox = new javax.swing.JComboBox();
- momentEndDayComboBox = new javax.swing.JComboBox();
- momentEndHourComboBox = new javax.swing.JComboBox();
- momentEndSecondComboBox = new javax.swing.JComboBox();
- momentEndYearLabel = new javax.swing.JLabel();
- momentEndMonthLabel = new javax.swing.JLabel();
- momentEndDayLabel = new javax.swing.JLabel();
- momentEndHourLabel = new javax.swing.JLabel();
- momentEndSecondLabel = new javax.swing.JLabel();
- momentEndUnixLabel = new javax.swing.JLabel();
- momentEndUnixField = new javax.swing.JFormattedTextField();
- presetPanel = new javax.swing.JPanel();
- presetLoadButton = new javax.swing.JButton();
- presetSelectComboBox = new javax.swing.JComboBox();
+ private javax.swing.JPanel StartMomentPanel;
+ private javax.swing.JPanel endMomentPanel;
+ private javax.swing.JComboBox momentEndDayComboBox;
+ private javax.swing.JLabel momentEndDayLabel;
+ private javax.swing.JComboBox momentEndHourComboBox;
+ private javax.swing.JLabel momentEndHourLabel;
+ private javax.swing.JComboBox momentEndMonthComboBox;
+ private javax.swing.JLabel momentEndMonthLabel;
+ private javax.swing.JComboBox momentEndSecondComboBox;
+ private javax.swing.JLabel momentEndSecondLabel;
+ private javax.swing.JFormattedTextField momentEndUnixField;
+ private javax.swing.JLabel momentEndUnixLabel;
+ private javax.swing.JComboBox momentEndYearComboBox;
+ private javax.swing.JLabel momentEndYearLabel;
+ private javax.swing.JComboBox momentStartDayComboBox;
+ private javax.swing.JLabel momentStartDayLabel;
+ private javax.swing.JComboBox momentStartHourComboBox;
+ private javax.swing.JLabel momentStartHourLabel;
+ private javax.swing.JComboBox momentStartMonthComboBox;
+ private javax.swing.JLabel momentStartMonthLabel;
+ private javax.swing.JComboBox momentStartSecondComboBox;
+ private javax.swing.JLabel momentStartSecondLabel;
+ private javax.swing.JFormattedTextField momentStartUnixField;
+ private javax.swing.JLabel momentStartUnixLabel;
+ private javax.swing.JComboBox momentStartYearComboBox;
+ private javax.swing.JLabel momentStartYearLabel;
+ private javax.swing.JButton presetLoadButton;
+ private javax.swing.JPanel presetPanel;
+ private javax.swing.JComboBox presetSelectComboBox;

-
StartMomentPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Start
moment"));
- momentStartYearComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "2007", "2006", "2005",
"2004" }));
+ private static int[] histories = { 1, 2, 5, 10, 30, 60, 120 };

- momentStartMonthComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "January", "February",
"March", "April", "May", "June", "July", "August", "September", "Oktober",
"November", "December" }));
+ private long startMoment = this.getNow() - 60;
+ private long endMoment = this.getNow();

- momentStartDayComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6",
"7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19",
"20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
+ public MomentOptionsPanel() {
+ addWidgets();
+ updateMoments();
+ }

- momentStartHourComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "00", "01", "02", "03", "04",
"05", "06", "07", "08", "09", "10", "11", "14", "15", "16", "17", "20", "22",
"23" }));
+ @Override
+ public String toString() {
+ return "Period";
+ }

- momentStartSecondComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "00", "1", "2", "3", "4",
"5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17",
"18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30",
"31", "32", "33", "34", "36", "37", "38", "39", "40", "42", "43", "46", "47",
"48", "51", "52", "53", "54", "55", "56", "57", "58", "59" }));
+ public long getStartMoment() {
+ return this.startMoment;
+ }

- momentStartYearLabel.setText("year");
+ private void updateMoments() {
+ this.momentStartUnixField.setText("" + startMoment);
+ this.momentEndUnixField.setText("" + endMoment);
+ }

- momentStartMonthLabel.setText("month");
+ public long getEndMoment() {
+ return this.endMoment;
+ }

- momentStartDayLabel.setText("day");
+ private long getNow() {
+ return Calendar.getInstance().getTimeInMillis() / 1000;
+ }

- momentStartHourLabel.setText("hour");
+ private void addWidgets() {
+ StartMomentPanel = new javax.swing.JPanel();
+ momentStartYearComboBox = new javax.swing.JComboBox();
+ momentStartMonthComboBox = new javax.swing.JComboBox();
+ momentStartDayComboBox = new javax.swing.JComboBox();
+ momentStartHourComboBox = new javax.swing.JComboBox();
+ momentStartSecondComboBox = new javax.swing.JComboBox();
+ momentStartYearLabel = new javax.swing.JLabel();
+ momentStartMonthLabel = new javax.swing.JLabel();
+ momentStartDayLabel = new javax.swing.JLabel();
+ momentStartHourLabel = new javax.swing.JLabel();
+ momentStartSecondLabel = new javax.swing.JLabel();
+ momentStartUnixLabel = new javax.swing.JLabel();
+ momentStartUnixField = new javax.swing.JFormattedTextField();
+ endMomentPanel = new javax.swing.JPanel();
+ momentEndYearComboBox = new javax.swing.JComboBox();
+ momentEndMonthComboBox = new javax.swing.JComboBox();
+ momentEndDayComboBox = new javax.swing.JComboBox();
+ momentEndHourComboBox = new javax.swing.JComboBox();
+ momentEndSecondComboBox = new javax.swing.JComboBox();
+ momentEndYearLabel = new javax.swing.JLabel();
+ momentEndMonthLabel = new javax.swing.JLabel();
+ momentEndDayLabel = new javax.swing.JLabel();
+ momentEndHourLabel = new javax.swing.JLabel();
+ momentEndSecondLabel = new javax.swing.JLabel();
+ momentEndUnixLabel = new javax.swing.JLabel();
+ momentEndUnixField = new javax.swing.JFormattedTextField();
+ presetPanel = new javax.swing.JPanel();
+ presetLoadButton = new javax.swing.JButton();
+ presetSelectComboBox = new javax.swing.JComboBox();

- momentStartSecondLabel.setText("second");
+ StartMomentPanel.setBorder(javax.swing.BorderFactory
+ .createTitledBorder("Start moment"));
+ momentStartYearComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
+ new String[] { "2007", "2006", "2005", "2004"
}));

- momentStartUnixLabel.setText("unix time");
+ momentStartMonthComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
+ new String[] { "January", "February",
"March", "April", "May",
+ "June", "July", "August",
"September", "Oktober",
+ "November", "December" }));

- momentStartUnixField.setText("1178193663");
+ momentStartDayComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
+ new String[] { "1", "2", "3", "4", "5", "6",
"7", "8", "9",
+ "10", "11", "12", "13", "14",
"15", "16", "17", "18",
+ "19", "20", "21", "22", "23",
"24", "25", "26", "27",
+ "28", "29", "30", "31" }));

- org.jdesktop.layout.GroupLayout StartMomentPanelLayout = new
org.jdesktop.layout.GroupLayout(StartMomentPanel);
- StartMomentPanel.setLayout(StartMomentPanelLayout);
- StartMomentPanelLayout.setHorizontalGroup(
-
StartMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(StartMomentPanelLayout.createSequentialGroup()
- .addContainerGap()
-
.add(StartMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
- .add(momentStartDayLabel)
- .add(momentStartMonthLabel)
- .add(momentStartYearLabel)
- .add(momentStartHourLabel)
- .add(momentStartSecondLabel)
- .add(momentStartUnixLabel))
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(StartMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(momentStartYearComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(momentStartHourComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(momentStartDayComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(momentStartMonthComboBox, 0, 88, Short.MAX_VALUE)
- .add(momentStartSecondComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(org.jdesktop.layout.GroupLayout.TRAILING,
momentStartUnixField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 88,
Short.MAX_VALUE))
- .addContainerGap())
- );
- StartMomentPanelLayout.setVerticalGroup(
-
StartMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(StartMomentPanelLayout.createSequentialGroup()
-
.add(StartMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(momentStartYearComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(momentStartYearLabel))
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(StartMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(momentStartMonthComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(momentStartMonthLabel))
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(StartMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(momentStartDayComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(momentStartDayLabel))
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(StartMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(momentStartHourComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(momentStartHourLabel))
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(StartMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(momentStartSecondComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(momentStartSecondLabel))
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(StartMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(momentStartUnixField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(momentStartUnixLabel))
-
.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
- );
+ momentStartHourComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
+ new String[] { "00", "01", "02", "03", "04",
"05", "06", "07",
+ "08", "09", "10", "11", "14",
"15", "16", "17", "20",
+ "22", "23" }));

-
endMomentPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("End
moment"));
- momentEndYearComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "2007", "2006", "2005",
"2004" }));
+ momentStartSecondComboBox
+ .setModel(new
javax.swing.DefaultComboBoxModel(new String[] {
+ "00", "1", "2", "3", "4",
"5", "6", "7", "8", "9",
+ "10", "11", "12", "13", "14",
"15", "16", "17", "18",
+ "19", "20", "21", "22", "23",
"24", "25", "26", "27",
+ "28", "29", "30", "31", "32",
"33", "34", "36", "37",
+ "38", "39", "40", "42", "43",
"46", "47", "48", "51",
+ "52", "53", "54", "55", "56",
"57", "58", "59" }));

- momentEndMonthComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "January", "February",
"March", "April", "May", "June", "July", "August", "September", "Oktober",
"November", "December" }));
+ momentStartYearLabel.setText("year");

- momentEndDayComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6",
"7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19",
"20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
+ momentStartMonthLabel.setText("month");

- momentEndHourComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "00", "01", "02", "03", "04",
"05", "06", "07", "08", "09", "10", "11", "14", "15", "16", "17", "20", "22",
"23" }));
+ momentStartDayLabel.setText("day");

- momentEndSecondComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "00", "1", "2", "3", "4",
"5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17",
"18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30",
"31", "32", "33", "34", "36", "37", "38", "39", "40", "42", "43", "46", "47",
"48", "51", "52", "53", "54", "55", "56", "57", "58", "59" }));
+ momentStartHourLabel.setText("hour");

- momentEndYearLabel.setText("year");
+ momentStartSecondLabel.setText("second");

- momentEndMonthLabel.setText("month");
+ momentStartUnixLabel.setText("unix time");

- momentEndDayLabel.setText("day");
+ momentStartUnixField.setText("1178193663");

- momentEndHourLabel.setText("hour");
+ org.jdesktop.layout.GroupLayout StartMomentPanelLayout = new
org.jdesktop.layout.GroupLayout(
+ StartMomentPanel);
+ StartMomentPanel.setLayout(StartMomentPanelLayout);
+ StartMomentPanelLayout
+ .setHorizontalGroup(StartMomentPanelLayout
+ .createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING)
+ .add(
+
StartMomentPanelLayout
+
.createSequentialGroup()
+
.addContainerGap()
+
.add(
+
StartMomentPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.TRAILING)
+
.add(
+
momentStartDayLabel)
+
.add(
+
momentStartMonthLabel)
+
.add(
+
momentStartYearLabel)
+
.add(
+
momentStartHourLabel)
+
.add(
+
momentStartSecondLabel)
+
.add(
+
momentStartUnixLabel))
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
StartMomentPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.LEADING)
+
.add(
+
momentStartYearComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+
momentStartHourComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+
momentStartDayComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+
momentStartMonthComboBox,
+
0, 88,
+
Short.MAX_VALUE)
+
.add(
+
momentStartSecondComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+

org.jdesktop.layout.GroupLayout.TRAILING,
+
momentStartUnixField,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
88,
+
Short.MAX_VALUE))
+
.addContainerGap()));
+ StartMomentPanelLayout
+ .setVerticalGroup(StartMomentPanelLayout
+ .createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING)
+ .add(
+
StartMomentPanelLayout
+
.createSequentialGroup()
+
.add(
+
StartMomentPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+
.add(
+
momentStartYearComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+
momentStartYearLabel))
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
StartMomentPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+
.add(
+
momentStartMonthComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+
momentStartMonthLabel))
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
StartMomentPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+
.add(
+
momentStartDayComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+
momentStartDayLabel))
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
StartMomentPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+
.add(
+
momentStartHourComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+
momentStartHourLabel))
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
StartMomentPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+
.add(
+
momentStartSecondComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+
momentStartSecondLabel))
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
StartMomentPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+
.add(
+
momentStartUnixField,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+
momentStartUnixLabel))
+
.addContainerGap(
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE)));

- momentEndSecondLabel.setText("second");
+ endMomentPanel.setBorder(javax.swing.BorderFactory
+ .createTitledBorder("End moment"));
+ momentEndYearComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
+ new String[] { "2007", "2006", "2005", "2004"
}));

- momentEndUnixLabel.setText("unix time");
+ momentEndMonthComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
+ new String[] { "January", "February",
"March", "April", "May",
+ "June", "July", "August",
"September", "Oktober",
+ "November", "December" }));

- momentEndUnixField.setText("1178193664");
+ momentEndDayComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
+ new String[] { "1", "2", "3", "4", "5", "6",
"7", "8", "9",
+ "10", "11", "12", "13", "14",
"15", "16", "17", "18",
+ "19", "20", "21", "22", "23",
"24", "25", "26", "27",
+ "28", "29", "30", "31" }));

- org.jdesktop.layout.GroupLayout endMomentPanelLayout = new
org.jdesktop.layout.GroupLayout(endMomentPanel);
- endMomentPanel.setLayout(endMomentPanelLayout);
- endMomentPanelLayout.setHorizontalGroup(
-
endMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(endMomentPanelLayout.createSequentialGroup()
- .addContainerGap()
-
.add(endMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
- .add(momentEndYearLabel)
- .add(momentEndUnixLabel)
- .add(momentEndMonthLabel)
- .add(momentEndDayLabel)
- .add(momentEndHourLabel)
- .add(momentEndSecondLabel))
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(endMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(momentEndYearComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(momentEndHourComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(momentEndDayComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(momentEndMonthComboBox, 0, 88, Short.MAX_VALUE)
- .add(momentEndSecondComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(org.jdesktop.layout.GroupLayout.TRAILING,
momentEndUnixField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 88,
Short.MAX_VALUE))
- .addContainerGap())
- );
- endMomentPanelLayout.setVerticalGroup(
-
endMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(endMomentPanelLayout.createSequentialGroup()
-
.add(endMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(momentEndYearComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(momentEndYearLabel))
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(endMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(momentEndMonthComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(momentEndMonthLabel))
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(endMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(momentEndDayComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(momentEndDayLabel))
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(endMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(momentEndHourComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(momentEndHourLabel))
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(endMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(momentEndSecondComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(momentEndSecondLabel))
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(endMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(momentEndUnixField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(momentEndUnixLabel))
-
.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
- );
+ momentEndHourComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
+ new String[] { "00", "01", "02", "03", "04",
"05", "06", "07",
+ "08", "09", "10", "11", "14",
"15", "16", "17", "20",
+ "22", "23" }));

-
presetPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder("Presets"))));
- presetLoadButton.setText("load");
+ momentEndSecondComboBox
+ .setModel(new
javax.swing.DefaultComboBoxModel(new String[] {
+ "00", "1", "2", "3", "4",
"5", "6", "7", "8", "9",
+ "10", "11", "12", "13", "14",
"15", "16", "17", "18",
+ "19", "20", "21", "22", "23",
"24", "25", "26", "27",
+ "28", "29", "30", "31", "32",
"33", "34", "36", "37",
+ "38", "39", "40", "42", "43",
"46", "47", "48", "51",
+ "52", "53", "54", "55", "56",
"57", "58", "59" }));

- presetSelectComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "last 1 minute", "last 2
minutes", "last 5 minutes", "last 10 minutes", "last 30 minutes", "last 60
minutes", "last 120 minutes" }));
+ momentEndYearLabel.setText("year");

- org.jdesktop.layout.GroupLayout presetPanelLayout = new
org.jdesktop.layout.GroupLayout(presetPanel);
- presetPanel.setLayout(presetPanelLayout);
- presetPanelLayout.setHorizontalGroup(
-
presetPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(presetPanelLayout.createSequentialGroup()
-
.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
-
.add(presetPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(org.jdesktop.layout.GroupLayout.TRAILING,
presetSelectComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 119,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(org.jdesktop.layout.GroupLayout.TRAILING,
presetPanelLayout.createSequentialGroup()
- .add(presetLoadButton,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 98,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .addContainerGap())))
- );
- presetPanelLayout.setVerticalGroup(
-
presetPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(presetPanelLayout.createSequentialGroup()
- .add(presetSelectComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .add(presetLoadButton))
- );
+ momentEndMonthLabel.setText("month");

- org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(this);
- this.setLayout(layout);
- //this.setBorder(javax.swing.BorderFactory.createTitledBorder("Start
moment"));
- layout.setHorizontalGroup(
-
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(layout.createSequentialGroup()
- .add(StartMomentPanel,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
- .add(endMomentPanel,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
- .add(presetPanel,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
- );
- layout.setVerticalGroup(
-
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(layout.createSequentialGroup()
-
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(endMomentPanel,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(StartMomentPanel,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(presetPanel,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
- .addContainerGap())
- );
- }
-
+ momentEndDayLabel.setText("day");

-
+ momentEndHourLabel.setText("hour");
+
+ momentEndSecondLabel.setText("second");
+
+ momentEndUnixLabel.setText("unix time");
+
+ momentEndUnixField.setText("1178193664");
+
+ org.jdesktop.layout.GroupLayout endMomentPanelLayout = new
org.jdesktop.layout.GroupLayout(
+ endMomentPanel);
+ endMomentPanel.setLayout(endMomentPanelLayout);
+ endMomentPanelLayout
+ .setHorizontalGroup(endMomentPanelLayout
+ .createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING)
+ .add(
+
endMomentPanelLayout
+
.createSequentialGroup()
+
.addContainerGap()
+
.add(
+
endMomentPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.TRAILING)
+
.add(momentEndYearLabel)
+
.add(momentEndUnixLabel)
+
.add(
+
momentEndMonthLabel)
+
.add(momentEndDayLabel)
+
.add(momentEndHourLabel)
+
.add(
+
momentEndSecondLabel))
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
endMomentPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.LEADING)
+
.add(
+
momentEndYearComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+
momentEndHourComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+
momentEndDayComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+
momentEndMonthComboBox,
+
0, 88,
+
Short.MAX_VALUE)
+
.add(
+
momentEndSecondComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+

org.jdesktop.layout.GroupLayout.TRAILING,
+
momentEndUnixField,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
88,
+
Short.MAX_VALUE))
+
.addContainerGap()));
+ endMomentPanelLayout
+ .setVerticalGroup(endMomentPanelLayout
+ .createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING)
+ .add(
+
endMomentPanelLayout
+
.createSequentialGroup()
+
.add(
+
endMomentPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+
.add(
+
momentEndYearComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(momentEndYearLabel))
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
endMomentPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+
.add(
+
momentEndMonthComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+
momentEndMonthLabel))
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
endMomentPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+
.add(
+
momentEndDayComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(momentEndDayLabel))
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
endMomentPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+
.add(
+
momentEndHourComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(momentEndHourLabel))
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
endMomentPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+
.add(
+
momentEndSecondComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+
momentEndSecondLabel))
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
endMomentPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+
.add(
+
momentEndUnixField,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(momentEndUnixLabel))
+
.addContainerGap(
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE)));
+
+ presetPanel.setBorder(javax.swing.BorderFactory
+ .createTitledBorder(javax.swing.BorderFactory
+
.createTitledBorder(javax.swing.BorderFactory
+
.createTitledBorder("Presets"))));
+ presetLoadButton.setText("load");
+
+ presetSelectComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
+ new String[] { "last 1 minute", "last 2
minutes",
+ "last 5 minutes", "last 10
minutes", "last 30 minutes",
+ "last 60 minutes", "last 120
minutes" }));
+
+ org.jdesktop.layout.GroupLayout presetPanelLayout = new
org.jdesktop.layout.GroupLayout(
+ presetPanel);
+ presetPanel.setLayout(presetPanelLayout);
+ presetPanelLayout
+ .setHorizontalGroup(presetPanelLayout
+ .createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING)
+ .add(
+
presetPanelLayout
+
.createSequentialGroup()
+
.addContainerGap(
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE)
+
.add(
+
presetPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.LEADING)
+
.add(
+

org.jdesktop.layout.GroupLayout.TRAILING,
+
presetSelectComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
119,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+

org.jdesktop.layout.GroupLayout.TRAILING,
+
presetPanelLayout
+

.createSequentialGroup()
+
.add(
+

presetLoadButton,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

98,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+

.addContainerGap()))));
+ presetPanelLayout
+ .setVerticalGroup(presetPanelLayout
+ .createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING)
+ .add(
+
presetPanelLayout
+
.createSequentialGroup()
+
.add(
+
presetSelectComboBox,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE).add(
+
presetLoadButton)));
+
+ org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(
+ this);
+ this.setLayout(layout);
+ //
this.setBorder(javax.swing.BorderFactory.createTitledBorder("Start
+ // moment"));
+ layout.setHorizontalGroup(layout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().add(StartMomentPanel,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+
endMomentPanel,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+ presetPanel,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap(
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE)));
+ layout
+ .setVerticalGroup(layout
+ .createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING)
+ .add(
+ layout
+
.createSequentialGroup()
+
.add(
+
layout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.LEADING)
+
.add(
+
endMomentPanel,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+
StartMomentPanel,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(
+
presetPanel,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+
.addContainerGap()));
+
+ // Listen to the action
+ /*
+ * momentStartYearComboBox.addActionListener(this)
+ * momentStartMonthComboBox.addActionListener(this);
+ * momentStartDayComboBox.addActionListener(this);
+ * momentStartHourComboBox.addActionListener(this);
+ * momentStartSecondComboBox.addActionListener(this);
+ * momentEndYearComboBox.addActionListener(this);
+ * momentEndMonthComboBox.addActionListener(this);
+ * momentEndDayComboBox.addActionListener(this);
+ * momentEndHourComboBox.addActionListener(this);
+ * momentEndSecondComboBox.addActionListener(this);
+ * presetSelectComboBox.addActionListener(this);
+ */
+ presetLoadButton.addActionListener(this);
+
+ }
+
+ public void actionPerformed(ActionEvent e) {
+ int history = presetSelectComboBox.getSelectedIndex();
+ long diff = histories[history] * 60;
+ this.startMoment = this.getNow() - diff;
+ this.endMoment = this.getNow();
+ this.updateMoments();
+
+ }
+
}


Property changes on:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/MomentOptionsPanel.java
___________________________________________________________________
Name: copyright
+ copyright: no copyright yet
Name: svn:keywords
+ Id

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RawOptionsPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RawOptionsPanel.java
2007-07-18 13:45:36 UTC (rev 2550)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RawOptionsPanel.java
2007-07-19 12:11:00 UTC (rev 2551)
@@ -1,119 +1,220 @@
+/*
+
+ $Id$
+ $Copyright$
+
+*/
+
package org.perfsonar.perfsonarui.flowsa.panels;

-public class RawOptionsPanel extends javax.swing.JPanel{
-
+public class RawOptionsPanel extends javax.swing.JPanel {
+
private static final long serialVersionUID = 1L;

- public RawOptionsPanel() {
- addWidgets();
- }
-
- @Override
- public String toString() {
- return "Raw query";
- }
+ public RawOptionsPanel() {
+ addWidgets();
+ }

-private void addWidgets() {
- rawFieldPanel = new javax.swing.JPanel();
- rawFieldScrollPane = new javax.swing.JScrollPane();
- rawFieldsList1 = new javax.swing.JList();
- FilterAggregationPanel = new javax.swing.JPanel();
- rawFilterlabel = new javax.swing.JLabel();
- rawFilterField = new javax.swing.JTextField();
- rawAggregationLabel = new javax.swing.JLabel();
- rawAggregationField = new javax.swing.JTextField();
+ @Override
+ public String toString() {
+ return "Raw query";
+ }

-
rawFieldPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Fields"));
- rawFieldsList1.setModel(new javax.swing.AbstractListModel() {
- private static final long serialVersionUID = 1L;
- String[] strings = { "Address family", "Timer first seen",
"Msec first seen", "Time last seen", "Msec last seen", "Protocol", "Source
address", "Source port", "Destination address", "Destination port", "Source
AS", "Destination AS", "Input interface", "Output interface", "TCP flags",
"Tos", "Packets", "Bytes" };
- public int getSize() { return strings.length; }
- public Object getElementAt(int i) { return strings[i]; }
- });
- rawFieldScrollPane.setViewportView(rawFieldsList1);
+ private void addWidgets() {
+ rawFieldPanel = new javax.swing.JPanel();
+ rawFieldScrollPane = new javax.swing.JScrollPane();
+ rawFieldsList = new javax.swing.JList();
+ FilterAggregationPanel = new javax.swing.JPanel();
+ rawFilterlabel = new javax.swing.JLabel();
+ rawFilterField = new javax.swing.JTextField();
+ rawAggregationLabel = new javax.swing.JLabel();
+ rawAggregationField = new javax.swing.JTextField();

- org.jdesktop.layout.GroupLayout rawFieldPanelLayout = new
org.jdesktop.layout.GroupLayout(rawFieldPanel);
- rawFieldPanel.setLayout(rawFieldPanelLayout);
- rawFieldPanelLayout.setHorizontalGroup(
-
rawFieldPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(rawFieldPanelLayout.createSequentialGroup()
- .addContainerGap()
- .add(rawFieldScrollPane,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
- );
- rawFieldPanelLayout.setVerticalGroup(
-
rawFieldPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(rawFieldPanelLayout.createSequentialGroup()
- .addContainerGap()
- .add(rawFieldScrollPane,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 232, Short.MAX_VALUE)
- .addContainerGap())
- );
+ rawFieldPanel.setBorder(javax.swing.BorderFactory
+ .createTitledBorder("Fields"));
+ rawFieldsList.setModel(new javax.swing.AbstractListModel() {
+ private static final long serialVersionUID = 1L;
+ String[] strings = { "Address family", "Timer first
seen",
+ "Msec first seen", "Time last seen",
"Msec last seen",
+ "Protocol", "Source address", "Source
port",
+ "Destination address", "Destination
port", "Source AS",
+ "Destination AS", "Input interface",
"Output interface",
+ "TCP flags", "Tos", "Packets",
"Bytes" };

-
FilterAggregationPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Filter
and Aggregation"));
- rawFilterlabel.setText("Filter rule");
+ public int getSize() {
+ return strings.length;
+ }

- rawAggregationLabel.setText("Aggregation rule");
+ public Object getElementAt(int i) {
+ return strings[i];
+ }
+ });
+ rawFieldScrollPane.setViewportView(rawFieldsList);

- org.jdesktop.layout.GroupLayout FilterAggregationPanelLayout = new
org.jdesktop.layout.GroupLayout(FilterAggregationPanel);
- FilterAggregationPanel.setLayout(FilterAggregationPanelLayout);
- FilterAggregationPanelLayout.setHorizontalGroup(
-
FilterAggregationPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(FilterAggregationPanelLayout.createSequentialGroup()
- .addContainerGap()
-
.add(FilterAggregationPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING,
false)
- .add(rawFilterlabel)
- .add(rawAggregationLabel)
- .add(rawFilterField,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 313, Short.MAX_VALUE)
- .add(rawAggregationField))
- .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
- );
- FilterAggregationPanelLayout.setVerticalGroup(
-
FilterAggregationPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(FilterAggregationPanelLayout.createSequentialGroup()
- .add(rawFilterlabel)
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
- .add(rawFilterField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
- .add(rawAggregationLabel)
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
- .add(rawAggregationField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(170, Short.MAX_VALUE))
- );
+ org.jdesktop.layout.GroupLayout rawFieldPanelLayout = new
org.jdesktop.layout.GroupLayout(
+ rawFieldPanel);
+ rawFieldPanel.setLayout(rawFieldPanelLayout);
+ rawFieldPanelLayout
+ .setHorizontalGroup(rawFieldPanelLayout
+ .createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING)
+ .add(
+
rawFieldPanelLayout
+
.createSequentialGroup()
+
.addContainerGap()
+
.add(
+
rawFieldScrollPane,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.addContainerGap(
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE)));
+ rawFieldPanelLayout
+ .setVerticalGroup(rawFieldPanelLayout
+ .createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING)
+ .add(
+
rawFieldPanelLayout
+
.createSequentialGroup()
+
.addContainerGap()
+
.add(
+
rawFieldScrollPane,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
232, Short.MAX_VALUE)
+
.addContainerGap()));

- org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(this);
-
+ FilterAggregationPanel.setBorder(javax.swing.BorderFactory
+ .createTitledBorder("Filter and
Aggregation"));
+ rawFilterlabel.setText("Filter rule");

- this.setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(layout.createSequentialGroup()
- .addContainerGap()
- .add(rawFieldPanel,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
- .add(FilterAggregationPanel,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(layout.createSequentialGroup()
- .addContainerGap()
-
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING,
false)
- .add(org.jdesktop.layout.GroupLayout.LEADING,
FilterAggregationPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .add(org.jdesktop.layout.GroupLayout.LEADING, rawFieldPanel,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
- );
-}
+ rawAggregationLabel.setText("Aggregation rule");

+ org.jdesktop.layout.GroupLayout FilterAggregationPanelLayout
= new org.jdesktop.layout.GroupLayout(
+ FilterAggregationPanel);
+
FilterAggregationPanel.setLayout(FilterAggregationPanelLayout);
+ FilterAggregationPanelLayout
+
.setHorizontalGroup(FilterAggregationPanelLayout
+ .createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING)
+ .add(
+
FilterAggregationPanelLayout
+
.createSequentialGroup()
+
.addContainerGap()
+
.add(
+
FilterAggregationPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.LEADING,
+
false)
+
.add(rawFilterlabel)
+
.add(
+
rawAggregationLabel)
+
.add(
+
rawFilterField,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
313,
+
Short.MAX_VALUE)
+
.add(
+
rawAggregationField))
+
.addContainerGap(
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE)));
+ FilterAggregationPanelLayout
+ .setVerticalGroup(FilterAggregationPanelLayout
+ .createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING)
+ .add(
+
FilterAggregationPanelLayout
+
.createSequentialGroup()
+
.add(rawFilterlabel)
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
rawFilterField,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(rawAggregationLabel)
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
rawAggregationField,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.addContainerGap(170, Short.MAX_VALUE)));

-
-private javax.swing.JPanel FilterAggregationPanel;
-private javax.swing.JTextField rawAggregationField;
-private javax.swing.JLabel rawAggregationLabel;
-private javax.swing.JPanel rawFieldPanel;
-private javax.swing.JScrollPane rawFieldScrollPane;
-private javax.swing.JList rawFieldsList1;
-private javax.swing.JTextField rawFilterField;
-private javax.swing.JLabel rawFilterlabel;
+ org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(
+ this);

+ this.setLayout(layout);
+ layout.setHorizontalGroup(layout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(
+ rawFieldPanel,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+
FilterAggregationPanel,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap(
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE)));
+ layout
+ .setVerticalGroup(layout
+ .createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING)
+ .add(
+ layout
+
.createSequentialGroup()
+
.addContainerGap()
+
.add(
+
layout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.TRAILING,
+
false)
+
.add(
+

org.jdesktop.layout.GroupLayout.LEADING,
+
FilterAggregationPanel,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE)
+
.add(
+

org.jdesktop.layout.GroupLayout.LEADING,
+
rawFieldPanel,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE))
+
.addContainerGap(
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE)));
+ }

+ public Object[] getFields() {
+ return this.rawFieldsList.getSelectedValues();
+ }
+
+ public String getAggregation() {
+ return this.rawAggregationField.getText();
+ }
+
+ public String getFilter() {
+ return this.rawFilterField.getText();
+ }
+
+ private javax.swing.JPanel FilterAggregationPanel;
+ private javax.swing.JTextField rawAggregationField;
+ private javax.swing.JLabel rawAggregationLabel;
+ private javax.swing.JPanel rawFieldPanel;
+ private javax.swing.JScrollPane rawFieldScrollPane;
+ private javax.swing.JList rawFieldsList;
+ private javax.swing.JTextField rawFilterField;
+ private javax.swing.JLabel rawFilterlabel;
+
}
\ No newline at end of file


Property changes on:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RawOptionsPanel.java
___________________________________________________________________
Name: copyright
+ copyright: no copyright yet
Name: svn:keywords
+ Id

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RawPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RawPanel.java
2007-07-18 13:45:36 UTC (rev 2550)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RawPanel.java
2007-07-19 12:11:00 UTC (rev 2551)
@@ -1,3 +1,10 @@
+/*
+
+ $Id$
+ $Copyright$
+
+*/
+
package org.perfsonar.perfsonarui.flowsa.panels;

import java.awt.Component;
@@ -12,107 +19,108 @@
import org.perfsonar.perfsonarui.plugins.IPerfsonarTab;
import org.perfsonar.perfsonarui.ui.PluginMainPanel;

-public class RawPanel extends PluginMainPanel implements Observer,
DocumentListener, FocusListener {
+public class RawPanel extends PluginMainPanel implements Observer,
+ DocumentListener, FocusListener {

private static final long serialVersionUID = 1L;

- private javax.swing.JPanel RawPane;
- private javax.swing.JScrollPane rawDataScrollPane;
- private javax.swing.JTable rawDataTable;
-
+ private javax.swing.JPanel RawPane;
+ private javax.swing.JScrollPane rawDataScrollPane;
+ private javax.swing.JTable rawDataTable;

public RawPanel(Component parentFrame, IPerfsonarTab model) {
super(parentFrame, model);
this.addWidgets();
}

- public void addWidgets() {
- RawPane = new javax.swing.JPanel();
- rawDataScrollPane = new javax.swing.JScrollPane();
- rawDataTable = new javax.swing.JTable();
+ public void addWidgets() {
+ RawPane = new javax.swing.JPanel();
+ rawDataScrollPane = new javax.swing.JScrollPane();
+ rawDataTable = new javax.swing.JTable();

- RawPane.setBorder(javax.swing.BorderFactory.createTitledBorder("Raw
Query Results"));
-
rawDataScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
- rawDataScrollPane.setAutoscrolls(true);
- rawDataTable.setModel(new javax.swing.table.DefaultTableModel(
- new Object [][] {},
- new String [] {
- "Address Family", "Time first seen", "Msec first seen",
"Protocol", "Src address", "Src port", "Dst address", "Dst port", "Src AS",
"Dst AS", "Input IF", "Output IF", "TCP Flags", "Tos", "Packets", "Bytes"
- }
- ) {
+ RawPane.setBorder(javax.swing.BorderFactory
+ .createTitledBorder("Raw Query Results"));
+ rawDataScrollPane
+
.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
+ rawDataScrollPane.setAutoscrolls(true);
+ rawDataTable.setModel(new javax.swing.table.DefaultTableModel(
+ new Object[][] {}, new String[] { "Address
Family",
+ "Time first seen", "Msec
first seen", "Protocol",
+ "Src address", "Src port",
"Dst address", "Dst port",
+ "Src AS", "Dst AS", "Input
IF", "Output IF",
+ "TCP Flags", "Tos",
"Packets", "Bytes" }) {

private static final long serialVersionUID = 1L;
-
- boolean[] canEdit = new boolean [] {
- false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false
- };

- public boolean isCellEditable(int rowIndex, int columnIndex) {
- return canEdit [columnIndex];
- }
- });
- rawDataTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
- rawDataTable.setMinimumSize(new java.awt.Dimension(500, 400));
- rawDataScrollPane.setViewportView(rawDataTable);
+ boolean[] canEdit = new boolean[] { false, false,
false, false,
+ false, false, false, false, false,
false, false, false,
+ false, false, false, false };

- org.jdesktop.layout.GroupLayout RawPaneLayout = new
org.jdesktop.layout.GroupLayout(RawPane);
- RawPane.setLayout(RawPaneLayout);
- RawPaneLayout.setHorizontalGroup(
-
RawPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(rawDataScrollPane,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 642, Short.MAX_VALUE)
- );
- RawPaneLayout.setVerticalGroup(
-
RawPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(rawDataScrollPane,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 356, Short.MAX_VALUE)
- );
+ public boolean isCellEditable(int rowIndex, int
columnIndex) {
+ return canEdit[columnIndex];
+ }
+ });
+
rawDataTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
+ rawDataTable.setMinimumSize(new java.awt.Dimension(500, 400));
+ rawDataScrollPane.setViewportView(rawDataTable);

- org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
-
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(layout.createSequentialGroup()
- .addContainerGap()
- .add(RawPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addContainerGap())
- );
- layout.setVerticalGroup(
-
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(layout.createSequentialGroup()
- .addContainerGap()
- .add(RawPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addContainerGap())
- );
- }
-
-
+ org.jdesktop.layout.GroupLayout RawPaneLayout = new
org.jdesktop.layout.GroupLayout(
+ RawPane);
+ RawPane.setLayout(RawPaneLayout);
+
RawPaneLayout.setHorizontalGroup(RawPaneLayout.createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING).add(rawDataScrollPane,
+ org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
642,
+ Short.MAX_VALUE));
+
RawPaneLayout.setVerticalGroup(RawPaneLayout.createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING).add(rawDataScrollPane,
+ org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
356,
+ Short.MAX_VALUE));
+
+ org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(
+ this);
+ this.setLayout(layout);
+ layout.setHorizontalGroup(layout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(RawPane,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE).addContainerGap()));
+ layout.setVerticalGroup(layout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(RawPane,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE).addContainerGap()));
+ }
+
public void update(Observable o, Object arg) {
// TODO Auto-generated method stub
-
+
}

public void changedUpdate(DocumentEvent e) {
// TODO Auto-generated method stub
-
+
}

public void insertUpdate(DocumentEvent e) {
// TODO Auto-generated method stub
-
+
}

public void removeUpdate(DocumentEvent e) {
// TODO Auto-generated method stub
-
+
}

public void focusGained(FocusEvent e) {
// TODO Auto-generated method stub
-
+
}

public void focusLost(FocusEvent e) {
// TODO Auto-generated method stub
-
+
}

}
\ No newline at end of file


Property changes on:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RawPanel.java
___________________________________________________________________
Name: copyright
+ copyright: no copyright yet
Name: svn:keywords
+ Id

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RouterOptionsPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RouterOptionsPanel.java
2007-07-18 13:45:36 UTC (rev 2550)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RouterOptionsPanel.java
2007-07-19 12:11:00 UTC (rev 2551)
@@ -1,46 +1,62 @@
+/*
+
+ $Id$
+ $Copyright$
+
+*/
+
package org.perfsonar.perfsonarui.flowsa.panels;

-public class RouterOptionsPanel extends javax.swing.JPanel{
+public class RouterOptionsPanel extends javax.swing.JPanel {

private static final long serialVersionUID = 1L;
+ private javax.swing.JList routerList;

public RouterOptionsPanel() {
- addWidgets();
- }
-
- @Override
- public String toString() {
- return "Routers";
- }
+ addWidgets();
+ }

- private void addWidgets() {
- routerList = new javax.swing.JList();
-
this.setBorder(javax.swing.BorderFactory.createTitledBorder("Routers"));
+ @Override
+ public String toString() {
+ return "Routers";
+ }

- routerList.setModel(new javax.swing.AbstractListModel() {
+ private void addWidgets() {
+ routerList = new javax.swing.JList();
+
this.setBorder(javax.swing.BorderFactory.createTitledBorder("Routers"));
+
+ routerList.setModel(new javax.swing.AbstractListModel() {
private static final long serialVersionUID = 1L;
String[] strings = { "Arthur", "Zaphod", "Ford",
"Trillian" };
- public int getSize() { return strings.length; }
- public Object getElementAt(int i) { return strings[i]; }
- });

- org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
-
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(layout.createSequentialGroup()
- .addContainerGap()
- .add(routerList,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE)
- .addContainerGap())
- );
- layout.setVerticalGroup(
-
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(layout.createSequentialGroup()
- .addContainerGap()
- .add(routerList,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 276, Short.MAX_VALUE)
- .addContainerGap())
- );
- }
- private javax.swing.JList routerList;
+ public int getSize() {
+ return strings.length;
+ }

+ public Object getElementAt(int i) {
+ return strings[i];
+ }
+ });
+
+ org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(
+ this);
+ this.setLayout(layout);
+ layout.setHorizontalGroup(layout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(
+ routerList,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 376,
+
Short.MAX_VALUE).addContainerGap()));
+ layout.setVerticalGroup(layout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(
+ routerList,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 276,
+
Short.MAX_VALUE).addContainerGap()));
+ }
+
+ public Object[] getRouters() {
+ return this.routerList.getSelectedValues();
+ }
+
}


Property changes on:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RouterOptionsPanel.java
___________________________________________________________________
Name: copyright
+ copyright: no copyright yet
Name: svn:keywords
+ Id

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/StatPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/StatPanel.java
2007-07-18 13:45:36 UTC (rev 2550)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/StatPanel.java
2007-07-19 12:11:00 UTC (rev 2551)
@@ -1,3 +1,10 @@
+/*
+
+ $Id$
+ $Copyright$
+
+*/
+
package org.perfsonar.perfsonarui.flowsa.panels;

import java.awt.Component;
@@ -12,433 +19,723 @@
import org.perfsonar.perfsonarui.plugins.IPerfsonarTab;
import org.perfsonar.perfsonarui.ui.PluginMainPanel;

-public class StatPanel extends PluginMainPanel implements Observer,
DocumentListener, FocusListener {
+public class StatPanel extends PluginMainPanel implements Observer,
+ DocumentListener, FocusListener {

private static final long serialVersionUID = 1L;

-
public StatPanel(Component parentFrame, IPerfsonarTab model) {
super(parentFrame, model);
this.addWidgets();
}
-
-
- public void addWidgets() {
- statQueryPanel = new javax.swing.JPanel();
- statsFlowsLabel = new javax.swing.JLabel();
- statsFlowsTcpLabel = new javax.swing.JLabel();
- statsFlowsUdpLabel = new javax.swing.JLabel();
- statsFlowsIcmpLabel = new javax.swing.JLabel();
- statsFlowsOthersLabel = new javax.swing.JLabel();
- statsFlowsPacketsLabel = new javax.swing.JLabel();
- statsPacketsTcpLabel = new javax.swing.JLabel();
- statsPacketsUdpLabel = new javax.swing.JLabel();
- statsPacketsIcmpLabel = new javax.swing.JLabel();
- statsPacketsOtherLabel = new javax.swing.JLabel();
- statsBytesLabel = new javax.swing.JLabel();
- statsBytesTcpLabel = new javax.swing.JLabel();
- statsBytesUdpLabel = new javax.swing.JLabel();
- statsBytesIcmpLabel = new javax.swing.JLabel();
- statsBytesOtherLabel = new javax.swing.JLabel();
- statsFirstLabel = new javax.swing.JLabel();
- statsLastLabel = new javax.swing.JLabel();
- statsMsecFirstLabel = new javax.swing.JLabel();
- statsMsecLastLabel = new javax.swing.JLabel();
- statsSeqFailLabel = new javax.swing.JLabel();
- statsFlowsField = new javax.swing.JTextField();
- statsFlowsTcpField = new javax.swing.JTextField();
- statsFlowsudpField = new javax.swing.JTextField();
- statsFlowsIcmpField = new javax.swing.JTextField();
- statsFlowsOtherField = new javax.swing.JTextField();
- statsPacketsField = new javax.swing.JTextField();
- statsPacketsTcpField = new javax.swing.JTextField();
- statsPacketsUdpField = new javax.swing.JTextField();
- statsPacketsIcmpField = new javax.swing.JTextField();
- statsPacketsotherField = new javax.swing.JTextField();
- statsBytesField = new javax.swing.JTextField();
- statsBytesTcpField = new javax.swing.JTextField();
- statsBytesUdpField = new javax.swing.JTextField();
- statsBytesIcmpField = new javax.swing.JTextField();
- statsBytesOtherField = new javax.swing.JTextField();
- statsFirstField = new javax.swing.JTextField();
- statsLastField = new javax.swing.JTextField();
- statsMsecFirstField = new javax.swing.JTextField();
- statsMsecLastField = new javax.swing.JTextField();
- statsSeqFailField = new javax.swing.JTextField();

- statsFlowsLabel.setText("Flows");
+ public void addWidgets() {
+ statQueryPanel = new javax.swing.JPanel();
+ statsFlowsLabel = new javax.swing.JLabel();
+ statsFlowsTcpLabel = new javax.swing.JLabel();
+ statsFlowsUdpLabel = new javax.swing.JLabel();
+ statsFlowsIcmpLabel = new javax.swing.JLabel();
+ statsFlowsOthersLabel = new javax.swing.JLabel();
+ statsFlowsPacketsLabel = new javax.swing.JLabel();
+ statsPacketsTcpLabel = new javax.swing.JLabel();
+ statsPacketsUdpLabel = new javax.swing.JLabel();
+ statsPacketsIcmpLabel = new javax.swing.JLabel();
+ statsPacketsOtherLabel = new javax.swing.JLabel();
+ statsBytesLabel = new javax.swing.JLabel();
+ statsBytesTcpLabel = new javax.swing.JLabel();
+ statsBytesUdpLabel = new javax.swing.JLabel();
+ statsBytesIcmpLabel = new javax.swing.JLabel();
+ statsBytesOtherLabel = new javax.swing.JLabel();
+ statsFirstLabel = new javax.swing.JLabel();
+ statsLastLabel = new javax.swing.JLabel();
+ statsMsecFirstLabel = new javax.swing.JLabel();
+ statsMsecLastLabel = new javax.swing.JLabel();
+ statsSeqFailLabel = new javax.swing.JLabel();
+ statsFlowsField = new javax.swing.JTextField();
+ statsFlowsTcpField = new javax.swing.JTextField();
+ statsFlowsudpField = new javax.swing.JTextField();
+ statsFlowsIcmpField = new javax.swing.JTextField();
+ statsFlowsOtherField = new javax.swing.JTextField();
+ statsPacketsField = new javax.swing.JTextField();
+ statsPacketsTcpField = new javax.swing.JTextField();
+ statsPacketsUdpField = new javax.swing.JTextField();
+ statsPacketsIcmpField = new javax.swing.JTextField();
+ statsPacketsotherField = new javax.swing.JTextField();
+ statsBytesField = new javax.swing.JTextField();
+ statsBytesTcpField = new javax.swing.JTextField();
+ statsBytesUdpField = new javax.swing.JTextField();
+ statsBytesIcmpField = new javax.swing.JTextField();
+ statsBytesOtherField = new javax.swing.JTextField();
+ statsFirstField = new javax.swing.JTextField();
+ statsLastField = new javax.swing.JTextField();
+ statsMsecFirstField = new javax.swing.JTextField();
+ statsMsecLastField = new javax.swing.JTextField();
+ statsSeqFailField = new javax.swing.JTextField();

- statsFlowsTcpLabel.setText("Flows TCP");
+ statsFlowsLabel.setText("Flows");

- statsFlowsUdpLabel.setText("Flows UDP");
+ statsFlowsTcpLabel.setText("Flows TCP");

- statsFlowsIcmpLabel.setText("Flows ICMP");
+ statsFlowsUdpLabel.setText("Flows UDP");

- statsFlowsOthersLabel.setText("Flows other");
+ statsFlowsIcmpLabel.setText("Flows ICMP");

- statsFlowsPacketsLabel.setText("Packets");
+ statsFlowsOthersLabel.setText("Flows other");

- statsPacketsTcpLabel.setText("Packets TCP");
+ statsFlowsPacketsLabel.setText("Packets");

- statsPacketsUdpLabel.setText("Packets UDP");
+ statsPacketsTcpLabel.setText("Packets TCP");

- statsPacketsIcmpLabel.setText("Packets ICMP");
+ statsPacketsUdpLabel.setText("Packets UDP");

- statsPacketsOtherLabel.setText("Packets other");
+ statsPacketsIcmpLabel.setText("Packets ICMP");

- statsBytesLabel.setText("Bytes");
+ statsPacketsOtherLabel.setText("Packets other");

- statsBytesTcpLabel.setText("Bytes TCP");
+ statsBytesLabel.setText("Bytes");

- statsBytesUdpLabel.setText("Bytes UDP");
+ statsBytesTcpLabel.setText("Bytes TCP");

- statsBytesIcmpLabel.setText("Bytes ICMP");
+ statsBytesUdpLabel.setText("Bytes UDP");

- statsBytesOtherLabel.setText("Bytes other");
+ statsBytesIcmpLabel.setText("Bytes ICMP");

- statsFirstLabel.setText("First");
+ statsBytesOtherLabel.setText("Bytes other");

- statsLastLabel.setText("Last");
+ statsFirstLabel.setText("First");

- statsMsecFirstLabel.setText("msec first");
+ statsLastLabel.setText("Last");

- statsMsecLastLabel.setText("msec last");
+ statsMsecFirstLabel.setText("msec first");

- statsSeqFailLabel.setText("Sequence failures");
+ statsMsecLastLabel.setText("msec last");

- statsFlowsField.setEditable(false);
- statsFlowsField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsFlowsField.setText("32743934");
+ statsSeqFailLabel.setText("Sequence failures");

- statsFlowsTcpField.setEditable(false);
-
statsFlowsTcpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsFlowsTcpField.setText("28855797");
+ statsFlowsField.setEditable(false);
+
statsFlowsField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsFlowsField.setText("32743934");

- statsFlowsudpField.setEditable(false);
-
statsFlowsudpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsFlowsudpField.setText("3640646");
+ statsFlowsTcpField.setEditable(false);
+
statsFlowsTcpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsFlowsTcpField.setText("28855797");

- statsFlowsIcmpField.setEditable(false);
-
statsFlowsIcmpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsFlowsIcmpField.setText("166385");
+ statsFlowsudpField.setEditable(false);
+
statsFlowsudpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsFlowsudpField.setText("3640646");

- statsFlowsOtherField.setEditable(false);
-
statsFlowsOtherField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsFlowsOtherField.setText("81106");
+ statsFlowsIcmpField.setEditable(false);
+ statsFlowsIcmpField
+
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsFlowsIcmpField.setText("166385");

- statsPacketsField.setEditable(false);
-
statsPacketsField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsPacketsField.setText("145371187");
+ statsFlowsOtherField.setEditable(false);
+ statsFlowsOtherField
+
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsFlowsOtherField.setText("81106");

- statsPacketsTcpField.setEditable(false);
-
statsPacketsTcpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsPacketsTcpField.setText("131640619");
+ statsPacketsField.setEditable(false);
+
statsPacketsField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsPacketsField.setText("145371187");

- statsPacketsUdpField.setEditable(false);
-
statsPacketsUdpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsPacketsUdpField.setText("8769174");
+ statsPacketsTcpField.setEditable(false);
+ statsPacketsTcpField
+
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsPacketsTcpField.setText("131640619");

- statsPacketsIcmpField.setEditable(false);
-
statsPacketsIcmpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsPacketsIcmpField.setText("215350");
+ statsPacketsUdpField.setEditable(false);
+ statsPacketsUdpField
+
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsPacketsUdpField.setText("8769174");

- statsPacketsotherField.setEditable(false);
-
statsPacketsotherField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsPacketsotherField.setText("4746044");
+ statsPacketsIcmpField.setEditable(false);
+ statsPacketsIcmpField
+
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsPacketsIcmpField.setText("215350");

- statsBytesField.setEditable(false);
- statsBytesField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsBytesField.setText("107316849515");
+ statsPacketsotherField.setEditable(false);
+ statsPacketsotherField
+
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsPacketsotherField.setText("4746044");

- statsBytesTcpField.setEditable(false);
-
statsBytesTcpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsBytesTcpField.setText("101866880996");
+ statsBytesField.setEditable(false);
+
statsBytesField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsBytesField.setText("107316849515");

- statsBytesUdpField.setEditable(false);
-
statsBytesUdpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsBytesUdpField.setText("2048101988");
+ statsBytesTcpField.setEditable(false);
+
statsBytesTcpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsBytesTcpField.setText("101866880996");

- statsBytesIcmpField.setEditable(false);
-
statsBytesIcmpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsBytesIcmpField.setText("2048101988");
+ statsBytesUdpField.setEditable(false);
+
statsBytesUdpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsBytesUdpField.setText("2048101988");

- statsBytesOtherField.setEditable(false);
-
statsBytesOtherField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsBytesOtherField.setText("15996576");
+ statsBytesIcmpField.setEditable(false);
+ statsBytesIcmpField
+
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsBytesIcmpField.setText("2048101988");

- statsFirstField.setEditable(false);
- statsFirstField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsFirstField.setText("3385869955");
+ statsBytesOtherField.setEditable(false);
+ statsBytesOtherField
+
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsBytesOtherField.setText("15996576");

- statsLastField.setEditable(false);
- statsLastField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsLastField.setText("1170162779");
+ statsFirstField.setEditable(false);
+
statsFirstField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsFirstField.setText("3385869955");

- statsMsecFirstField.setEditable(false);
-
statsMsecFirstField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsMsecFirstField.setText("166");
+ statsLastField.setEditable(false);
+
statsLastField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsLastField.setText("1170162779");

- statsMsecLastField.setEditable(false);
-
statsMsecLastField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsMsecLastField.setText("0");
+ statsMsecFirstField.setEditable(false);
+ statsMsecFirstField
+
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsMsecFirstField.setText("166");

- statsSeqFailField.setEditable(false);
-
statsSeqFailField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsSeqFailField.setText("139");
+ statsMsecLastField.setEditable(false);
+
statsMsecLastField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsMsecLastField.setText("0");

- org.jdesktop.layout.GroupLayout statQueryPanelLayout = new
org.jdesktop.layout.GroupLayout(statQueryPanel);
- statQueryPanel.setLayout(statQueryPanelLayout);
- statQueryPanelLayout.setHorizontalGroup(
-
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(statQueryPanelLayout.createSequentialGroup()
- .addContainerGap()
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
- .add(statsFlowsLabel)
- .add(statsFlowsTcpLabel)
- .add(statsFlowsUdpLabel)
- .add(statsFlowsIcmpLabel)
- .add(statsFlowsOthersLabel)
- .add(statsFlowsPacketsLabel)
- .add(statsPacketsTcpLabel)
- .add(statsPacketsUdpLabel)
- .add(statsPacketsIcmpLabel)
- .add(statsPacketsOtherLabel))
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING,
false)
- .add(statsPacketsIcmpField)
- .add(statsPacketsUdpField)
- .add(statsPacketsTcpField)
- .add(statsPacketsotherField)
- .add(statsPacketsField)
- .add(statsFlowsOtherField)
- .add(statsFlowsIcmpField)
- .add(statsFlowsudpField)
- .add(statsFlowsTcpField)
- .add(statsFlowsField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 108,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(org.jdesktop.layout.GroupLayout.TRAILING,
statQueryPanelLayout.createSequentialGroup()
- .add(statsBytesIcmpLabel)
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))
- .add(org.jdesktop.layout.GroupLayout.TRAILING,
statQueryPanelLayout.createSequentialGroup()
- .add(statsBytesOtherLabel)
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))
- .add(org.jdesktop.layout.GroupLayout.TRAILING,
statQueryPanelLayout.createSequentialGroup()
- .add(statsFirstLabel)
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))
- .add(org.jdesktop.layout.GroupLayout.TRAILING,
statQueryPanelLayout.createSequentialGroup()
- .add(statsLastLabel)
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))
- .add(statQueryPanelLayout.createSequentialGroup()
- .add(47, 47, 47)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
- .add(statsMsecFirstLabel)
- .add(statsMsecLastLabel))
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))
- .add(org.jdesktop.layout.GroupLayout.TRAILING,
statQueryPanelLayout.createSequentialGroup()
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
- .add(statsBytesTcpLabel)
- .add(statsBytesUdpLabel)
- .add(statsBytesLabel))
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)))
- .add(statsSeqFailLabel))
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING,
false)
- .add(org.jdesktop.layout.GroupLayout.TRAILING,
statsBytesField)
- .add(statsSeqFailField)
- .add(statsMsecLastField)
- .add(statsMsecFirstField)
- .add(statsBytesUdpField)
- .add(statsBytesIcmpField)
- .add(statsBytesOtherField)
- .add(statsFirstField)
- .add(statsLastField)
- .add(statsBytesTcpField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 130,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
- .addContainerGap(38, Short.MAX_VALUE))
- );
- statQueryPanelLayout.setVerticalGroup(
-
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(statQueryPanelLayout.createSequentialGroup()
- .addContainerGap()
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(statQueryPanelLayout.createSequentialGroup()
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsFlowsLabel)
- .add(statsFlowsField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
- .add(10, 10, 10)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsFlowsTcpField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(statsFlowsTcpLabel))
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsFlowsudpField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(statsFlowsUdpLabel))
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsFlowsIcmpField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(statsFlowsIcmpLabel))
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsFlowsOtherField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(statsFlowsOthersLabel))
- .add(6, 6, 6)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsPacketsField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(statsFlowsPacketsLabel))
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsPacketsotherField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(statsPacketsTcpLabel))
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsPacketsTcpField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(statsPacketsUdpLabel))
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsPacketsUdpField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(statsPacketsIcmpLabel))
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsPacketsIcmpField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(statsPacketsOtherLabel)))
- .add(statQueryPanelLayout.createSequentialGroup()
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsBytesField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(statsBytesLabel))
- .add(10, 10, 10)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsBytesTcpLabel)
- .add(statsBytesTcpField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsBytesUdpLabel)
- .add(statsBytesUdpField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsBytesIcmpLabel)
- .add(statsBytesIcmpField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsBytesOtherLabel)
- .add(statsBytesOtherField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsFirstLabel)
- .add(statsFirstField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsLastLabel)
- .add(statsLastField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsMsecFirstField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(statsMsecFirstLabel))
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsMsecLastField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(statsMsecLastLabel))
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(statsSeqFailField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .add(statsSeqFailLabel))))
- .addContainerGap(39, Short.MAX_VALUE))
- );
+ statsSeqFailField.setEditable(false);
+
statsSeqFailField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsSeqFailField.setText("139");

- org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
-
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(layout.createSequentialGroup()
- .addContainerGap()
- .add(statQueryPanel,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
- );
- layout.setVerticalGroup(
-
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(layout.createSequentialGroup()
- .addContainerGap()
- .add(statQueryPanel,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addContainerGap())
- );
- }
-
- private javax.swing.JPanel statQueryPanel;
- private javax.swing.JTextField statsBytesField;
- private javax.swing.JTextField statsBytesIcmpField;
- private javax.swing.JLabel statsBytesIcmpLabel;
- private javax.swing.JLabel statsBytesLabel;
- private javax.swing.JTextField statsBytesOtherField;
- private javax.swing.JLabel statsBytesOtherLabel;
- private javax.swing.JTextField statsBytesTcpField;
- private javax.swing.JLabel statsBytesTcpLabel;
- private javax.swing.JTextField statsBytesUdpField;
- private javax.swing.JLabel statsBytesUdpLabel;
- private javax.swing.JTextField statsFirstField;
- private javax.swing.JLabel statsFirstLabel;
- private javax.swing.JTextField statsFlowsField;
- private javax.swing.JTextField statsFlowsIcmpField;
- private javax.swing.JLabel statsFlowsIcmpLabel;
- private javax.swing.JLabel statsFlowsLabel;
- private javax.swing.JTextField statsFlowsOtherField;
- private javax.swing.JLabel statsFlowsOthersLabel;
- private javax.swing.JLabel statsFlowsPacketsLabel;
- private javax.swing.JTextField statsFlowsTcpField;
- private javax.swing.JLabel statsFlowsTcpLabel;
- private javax.swing.JLabel statsFlowsUdpLabel;
- private javax.swing.JTextField statsFlowsudpField;
- private javax.swing.JTextField statsLastField;
- private javax.swing.JLabel statsLastLabel;
- private javax.swing.JTextField statsMsecFirstField;
- private javax.swing.JLabel statsMsecFirstLabel;
- private javax.swing.JTextField statsMsecLastField;
- private javax.swing.JLabel statsMsecLastLabel;
- private javax.swing.JTextField statsPacketsField;
- private javax.swing.JTextField statsPacketsIcmpField;
- private javax.swing.JLabel statsPacketsIcmpLabel;
- private javax.swing.JLabel statsPacketsOtherLabel;
- private javax.swing.JTextField statsPacketsTcpField;
- private javax.swing.JLabel statsPacketsTcpLabel;
- private javax.swing.JTextField statsPacketsUdpField;
- private javax.swing.JLabel statsPacketsUdpLabel;
- private javax.swing.JTextField statsPacketsotherField;
- private javax.swing.JTextField statsSeqFailField;
- private javax.swing.JLabel statsSeqFailLabel;
+ org.jdesktop.layout.GroupLayout statQueryPanelLayout = new
org.jdesktop.layout.GroupLayout(
+ statQueryPanel);
+ statQueryPanel.setLayout(statQueryPanelLayout);
+ statQueryPanelLayout
+ .setHorizontalGroup(statQueryPanelLayout
+ .createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING)
+ .add(
+
statQueryPanelLayout
+
.createSequentialGroup()
+
.addContainerGap()
+
.add(
+
statQueryPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.TRAILING)
+
.add(statsFlowsLabel)
+
.add(statsFlowsTcpLabel)
+
.add(statsFlowsUdpLabel)
+
.add(
+
statsFlowsIcmpLabel)
+
.add(
+
statsFlowsOthersLabel)
+
.add(
+
statsFlowsPacketsLabel)
+
.add(
+
statsPacketsTcpLabel)
+
.add(
+
statsPacketsUdpLabel)
+
.add(
+
statsPacketsIcmpLabel)
+
.add(
+
statsPacketsOtherLabel))
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
statQueryPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.LEADING,
+
false)
+
.add(
+
statsPacketsIcmpField)
+
.add(
+
statsPacketsUdpField)
+
.add(
+
statsPacketsTcpField)
+
.add(
+
statsPacketsotherField)
+
.add(statsPacketsField)
+
.add(
+
statsFlowsOtherField)
+
.add(
+
statsFlowsIcmpField)
+
.add(statsFlowsudpField)
+
.add(statsFlowsTcpField)
+
.add(
+
statsFlowsField,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
108,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
statQueryPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.LEADING)
+
.add(
+
statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.LEADING)
+
.add(
+

org.jdesktop.layout.GroupLayout.TRAILING,
+

statQueryPanelLayout
+

.createSequentialGroup()
+

.add(
+

statsBytesIcmpLabel)
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED))
+
.add(
+

org.jdesktop.layout.GroupLayout.TRAILING,
+

statQueryPanelLayout
+

.createSequentialGroup()
+

.add(
+

statsBytesOtherLabel)
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED))
+
.add(
+

org.jdesktop.layout.GroupLayout.TRAILING,
+

statQueryPanelLayout
+

.createSequentialGroup()
+

.add(
+

statsFirstLabel)
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED))
+
.add(
+

org.jdesktop.layout.GroupLayout.TRAILING,
+

statQueryPanelLayout
+

.createSequentialGroup()
+

.add(
+

statsLastLabel)
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED))
+
.add(
+

statQueryPanelLayout
+

.createSequentialGroup()
+

.add(
+

47,
+

47,
+

47)
+

.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+


org.jdesktop.layout.GroupLayout.TRAILING)
+

.add(
+


statsMsecFirstLabel)
+

.add(
+


statsMsecLastLabel))
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED))
+
.add(
+

org.jdesktop.layout.GroupLayout.TRAILING,
+

statQueryPanelLayout
+

.createSequentialGroup()
+

.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+


org.jdesktop.layout.GroupLayout.TRAILING)
+

.add(
+


statsBytesTcpLabel)
+

.add(
+


statsBytesUdpLabel)
+

.add(
+


statsBytesLabel))
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED)))
+
.add(statsSeqFailLabel))
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
statQueryPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.LEADING,
+
false)
+
.add(
+

org.jdesktop.layout.GroupLayout.TRAILING,
+
statsBytesField)
+
.add(statsSeqFailField)
+
.add(statsMsecLastField)
+
.add(
+
statsMsecFirstField)
+
.add(statsBytesUdpField)
+
.add(
+
statsBytesIcmpField)
+
.add(
+
statsBytesOtherField)
+
.add(statsFirstField)
+
.add(statsLastField)
+
.add(
+
statsBytesTcpField,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
130,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+
.addContainerGap(38, Short.MAX_VALUE)));
+ statQueryPanelLayout
+ .setVerticalGroup(statQueryPanelLayout
+ .createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING)
+ .add(
+
statQueryPanelLayout
+
.createSequentialGroup()
+
.addContainerGap()
+
.add(
+
statQueryPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.LEADING)
+
.add(
+
statQueryPanelLayout
+

.createSequentialGroup()
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsFlowsLabel)
+

.add(
+

statsFlowsField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+
.add(
+

10,
+

10,
+

10)
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsFlowsTcpField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+

.add(
+

statsFlowsTcpLabel))
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsFlowsudpField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+

.add(
+

statsFlowsUdpLabel))
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsFlowsIcmpField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+

.add(
+

statsFlowsIcmpLabel))
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsFlowsOtherField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+

.add(
+

statsFlowsOthersLabel))
+
.add(
+

6,
+

6,
+

6)
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsPacketsField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+

.add(
+

statsFlowsPacketsLabel))
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsPacketsotherField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+

.add(
+

statsPacketsTcpLabel))
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsPacketsTcpField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+

.add(
+

statsPacketsUdpLabel))
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsPacketsUdpField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+

.add(
+

statsPacketsIcmpLabel))
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsPacketsIcmpField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+

.add(
+

statsPacketsOtherLabel)))
+
.add(
+
statQueryPanelLayout
+

.createSequentialGroup()
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsBytesField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+

.add(
+

statsBytesLabel))
+
.add(
+

10,
+

10,
+

10)
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsBytesTcpLabel)
+

.add(
+

statsBytesTcpField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsBytesUdpLabel)
+

.add(
+

statsBytesUdpField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsBytesIcmpLabel)
+

.add(
+

statsBytesIcmpField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsBytesOtherLabel)
+

.add(
+

statsBytesOtherField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsFirstLabel)
+

.add(
+

statsFirstField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsLastLabel)
+

.add(
+

statsLastField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsMsecFirstField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+

.add(
+

statsMsecFirstLabel))
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsMsecLastField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+

.add(
+

statsMsecLastLabel))
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+

statQueryPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+

.add(
+

statsSeqFailField,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+


org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+


org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+

.add(
+

statsSeqFailLabel))))
+
.addContainerGap(39, Short.MAX_VALUE)));

+ org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(
+ this);
+ this.setLayout(layout);
+ layout.setHorizontalGroup(layout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(
+ statQueryPanel,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap(
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE)));
+ layout.setVerticalGroup(layout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(
+ statQueryPanel,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE).addContainerGap()));
+ }

+ private javax.swing.JPanel statQueryPanel;
+ private javax.swing.JTextField statsBytesField;
+ private javax.swing.JTextField statsBytesIcmpField;
+ private javax.swing.JLabel statsBytesIcmpLabel;
+ private javax.swing.JLabel statsBytesLabel;
+ private javax.swing.JTextField statsBytesOtherField;
+ private javax.swing.JLabel statsBytesOtherLabel;
+ private javax.swing.JTextField statsBytesTcpField;
+ private javax.swing.JLabel statsBytesTcpLabel;
+ private javax.swing.JTextField statsBytesUdpField;
+ private javax.swing.JLabel statsBytesUdpLabel;
+ private javax.swing.JTextField statsFirstField;
+ private javax.swing.JLabel statsFirstLabel;
+ private javax.swing.JTextField statsFlowsField;
+ private javax.swing.JTextField statsFlowsIcmpField;
+ private javax.swing.JLabel statsFlowsIcmpLabel;
+ private javax.swing.JLabel statsFlowsLabel;
+ private javax.swing.JTextField statsFlowsOtherField;
+ private javax.swing.JLabel statsFlowsOthersLabel;
+ private javax.swing.JLabel statsFlowsPacketsLabel;
+ private javax.swing.JTextField statsFlowsTcpField;
+ private javax.swing.JLabel statsFlowsTcpLabel;
+ private javax.swing.JLabel statsFlowsUdpLabel;
+ private javax.swing.JTextField statsFlowsudpField;
+ private javax.swing.JTextField statsLastField;
+ private javax.swing.JLabel statsLastLabel;
+ private javax.swing.JTextField statsMsecFirstField;
+ private javax.swing.JLabel statsMsecFirstLabel;
+ private javax.swing.JTextField statsMsecLastField;
+ private javax.swing.JLabel statsMsecLastLabel;
+ private javax.swing.JTextField statsPacketsField;
+ private javax.swing.JTextField statsPacketsIcmpField;
+ private javax.swing.JLabel statsPacketsIcmpLabel;
+ private javax.swing.JLabel statsPacketsOtherLabel;
+ private javax.swing.JTextField statsPacketsTcpField;
+ private javax.swing.JLabel statsPacketsTcpLabel;
+ private javax.swing.JTextField statsPacketsUdpField;
+ private javax.swing.JLabel statsPacketsUdpLabel;
+ private javax.swing.JTextField statsPacketsotherField;
+ private javax.swing.JTextField statsSeqFailField;
+ private javax.swing.JLabel statsSeqFailLabel;

public void update(Observable o, Object arg) {
// TODO Auto-generated method stub
-
+
}

-
public void changedUpdate(DocumentEvent e) {
// TODO Auto-generated method stub
-
+
}

-
public void insertUpdate(DocumentEvent e) {
// TODO Auto-generated method stub
-
+
}

-
public void removeUpdate(DocumentEvent e) {
// TODO Auto-generated method stub
-
+
}

-
public void focusGained(FocusEvent e) {
// TODO Auto-generated method stub
-
+
}

-
public void focusLost(FocusEvent e) {
// TODO Auto-generated method stub
-
+
}
}


Property changes on:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/StatPanel.java
___________________________________________________________________
Name: copyright
+ copyright: no copyright yet
Name: svn:keywords
+ Id

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/TopOptionsPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/TopOptionsPanel.java
2007-07-18 13:45:36 UTC (rev 2550)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/TopOptionsPanel.java
2007-07-19 12:11:00 UTC (rev 2551)
@@ -1,3 +1,10 @@
+/*
+
+ $Id$
+ $Copyright$
+
+*/
+
package org.perfsonar.perfsonarui.flowsa.panels;

public class TopOptionsPanel extends javax.swing.JPanel {
@@ -2,106 +9,2 @@
private static final long serialVersionUID = 1L;
-
- public TopOptionsPanel() {
- addWidgets();
- }
-
- @Override
- public String toString() {
- return "Top query";
- }
-
- private void addWidgets() {
- TopQueryparametersPanel = new javax.swing.JPanel();
- topNumberField = new javax.swing.JTextField();
- topOrderComboBox = new javax.swing.JComboBox();
- topElementLabel = new javax.swing.JLabel();
- topOrderLabel = new javax.swing.JLabel();
- topNumberLabel = new javax.swing.JLabel();
- topElementComboBox = new javax.swing.JComboBox();
- topGroupTransCheckBox = new javax.swing.JCheckBox();
- topGroupTransLabel = new javax.swing.JLabel();
-
-
TopQueryparametersPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Top
query parameters"));
-
topNumberField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- topNumberField.setText("10");
-
- topOrderComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "Flows", "Packets", "Bytes",
"Pps", "Bps", "Bpp" }));
-
- topElementLabel.setText("Element");
-
- topOrderLabel.setText("Order by");
-
- topNumberLabel.setText("Number");
-
- topElementComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "Record", "Srcip", "Dstip",
"Srcport", "Dstport", "Port", "Tos", "Src AS", "Dst AS", "AS", "InIF",
"OutIF", "IF", "Proto" }));
-
-
topGroupTransCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0,
0, 0, 0));
- topGroupTransCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0));
-
- topGroupTransLabel.setText("group trans prot");
-
- org.jdesktop.layout.GroupLayout TopQueryparametersPanelLayout =
new org.jdesktop.layout.GroupLayout(TopQueryparametersPanel);
- TopQueryparametersPanel.setLayout(TopQueryparametersPanelLayout);
- TopQueryparametersPanelLayout.setHorizontalGroup(
-
TopQueryparametersPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(TopQueryparametersPanelLayout.createSequentialGroup()
- .addContainerGap()
-
.add(TopQueryparametersPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
-
.add(TopQueryparametersPanelLayout.createSequentialGroup()
- .add(topNumberLabel)
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
- .add(topNumberField,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE))
-
.add(TopQueryparametersPanelLayout.createSequentialGroup()
-
.add(TopQueryparametersPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(topElementLabel)
- .add(topOrderLabel))
- .add(8, 8, 8)
-
.add(TopQueryparametersPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(topOrderComboBox, 0, 149,
Short.MAX_VALUE)
- .add(topElementComboBox, 0, 149,
Short.MAX_VALUE)))
- .add(org.jdesktop.layout.GroupLayout.TRAILING,
TopQueryparametersPanelLayout.createSequentialGroup()
- .add(topGroupTransLabel,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 186, Short.MAX_VALUE)
-
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
- .add(topGroupTransCheckBox)))
- .addContainerGap())
- );
- TopQueryparametersPanelLayout.setVerticalGroup(
-
TopQueryparametersPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(TopQueryparametersPanelLayout.createSequentialGroup()
-
.add(TopQueryparametersPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(topElementLabel)
- .add(topElementComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(TopQueryparametersPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(topOrderLabel)
- .add(topOrderComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
- .add(14, 14, 14)
-
.add(TopQueryparametersPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
- .add(topNumberLabel)
- .add(topNumberField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(TopQueryparametersPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(topGroupTransLabel)
- .add(topGroupTransCheckBox))
- .addContainerGap(58, Short.MAX_VALUE))
- );
-
- org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
-
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(layout.createSequentialGroup()
- .addContainerGap()
- .add(TopQueryparametersPanel,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addContainerGap())
- );
- layout.setVerticalGroup(
-
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(layout.createSequentialGroup()
- .addContainerGap()
- .add(TopQueryparametersPanel,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addContainerGap())
- );
- }
-
private javax.swing.JPanel TopQueryparametersPanel;
@@ -115,4 +18,207 @@
private javax.swing.JLabel topNumberLabel;
private javax.swing.JComboBox topOrderComboBox;
private javax.swing.JLabel topOrderLabel;
+
+ public TopOptionsPanel() {
+ addWidgets();
+ }
+
+ @Override
+ public String toString() {
+ return "Top query";
+ }
+
+ private void addWidgets() {
+ TopQueryparametersPanel = new javax.swing.JPanel();
+ topNumberField = new javax.swing.JTextField();
+ topOrderComboBox = new javax.swing.JComboBox();
+ topElementLabel = new javax.swing.JLabel();
+ topOrderLabel = new javax.swing.JLabel();
+ topNumberLabel = new javax.swing.JLabel();
+ topElementComboBox = new javax.swing.JComboBox();
+ topGroupTransCheckBox = new javax.swing.JCheckBox();
+ topGroupTransLabel = new javax.swing.JLabel();
+
+ TopQueryparametersPanel.setBorder(javax.swing.BorderFactory
+ .createTitledBorder("Top query parameters"));
+
topNumberField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ topNumberField.setText("10");
+
+ topOrderComboBox
+ .setModel(new
javax.swing.DefaultComboBoxModel(new String[] {
+ "Flows", "Packets", "Bytes",
"Pps", "Bps", "Bpp" }));
+
+ topElementLabel.setText("Element");
+
+ topOrderLabel.setText("Order by");
+
+ topNumberLabel.setText("Number");
+
+ topElementComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
+ new String[] { "Record", "Srcip", "Dstip",
"Srcport",
+ "Dstport", "Port", "Tos",
"Src AS", "Dst AS", "AS",
+ "InIF", "OutIF", "IF",
"Proto" }));
+
+ topGroupTransCheckBox.setBorder(javax.swing.BorderFactory
+ .createEmptyBorder(0, 0, 0, 0));
+ topGroupTransCheckBox.setMargin(new java.awt.Insets(0, 0, 0,
0));
+
+ topGroupTransLabel.setText("group trans prot");
+
+ org.jdesktop.layout.GroupLayout TopQueryparametersPanelLayout
= new org.jdesktop.layout.GroupLayout(
+ TopQueryparametersPanel);
+
TopQueryparametersPanel.setLayout(TopQueryparametersPanelLayout);
+ TopQueryparametersPanelLayout
+
.setHorizontalGroup(TopQueryparametersPanelLayout
+ .createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING)
+ .add(
+
TopQueryparametersPanelLayout
+
.createSequentialGroup()
+
.addContainerGap()
+
.add(
+
TopQueryparametersPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.LEADING)
+
.add(
+

TopQueryparametersPanelLayout
+

.createSequentialGroup()
+
.add(
+

topNumberLabel)
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+

topNumberField,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

150,
+

Short.MAX_VALUE))
+
.add(
+

TopQueryparametersPanelLayout
+

.createSequentialGroup()
+
.add(
+

TopQueryparametersPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.LEADING)
+

.add(
+

topElementLabel)
+

.add(
+

topOrderLabel))
+
.add(
+

8,
+

8,
+

8)
+
.add(
+

TopQueryparametersPanelLayout
+

.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.LEADING)
+

.add(
+

topOrderComboBox,
+

0,
+

149,
+

Short.MAX_VALUE)
+

.add(
+

topElementComboBox,
+

0,
+

149,
+

Short.MAX_VALUE)))
+
.add(
+

org.jdesktop.layout.GroupLayout.TRAILING,
+

TopQueryparametersPanelLayout
+

.createSequentialGroup()
+
.add(
+

topGroupTransLabel,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

186,
+

Short.MAX_VALUE)
+

.addPreferredGap(
+

org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+

topGroupTransCheckBox)))
+
.addContainerGap()));
+ TopQueryparametersPanelLayout
+
.setVerticalGroup(TopQueryparametersPanelLayout
+ .createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING)
+ .add(
+
TopQueryparametersPanelLayout
+
.createSequentialGroup()
+
.add(
+
TopQueryparametersPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+
.add(topElementLabel)
+
.add(
+
topElementComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
TopQueryparametersPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+
.add(topOrderLabel)
+
.add(
+
topOrderComboBox,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+
.add(14, 14, 14)
+
.add(
+
TopQueryparametersPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.BASELINE)
+
.add(topNumberLabel)
+
.add(
+
topNumberField,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+

org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+

org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(
+
TopQueryparametersPanelLayout
+
.createParallelGroup(
+

org.jdesktop.layout.GroupLayout.LEADING)
+
.add(topGroupTransLabel)
+
.add(
+
topGroupTransCheckBox))
+
.addContainerGap(58, Short.MAX_VALUE)));
+
+ org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(
+ this);
+ this.setLayout(layout);
+ layout.setHorizontalGroup(layout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(
+ TopQueryparametersPanel,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE).addContainerGap()));
+ layout.setVerticalGroup(layout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(
+ TopQueryparametersPanel,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE).addContainerGap()));
+ }
+
+ public String getElement() {
+ return (String) this.topElementComboBox.getSelectedItem();
+ }
+
+ public String getOrderBy() {
+ return (String) this.topOrderComboBox.getSelectedItem();
+ }
+
+ public int getNumber() {
+ return Integer.parseInt(this.topNumberField.getText());
+ }
+
+ public boolean getTransGroup() {
+ return this.topGroupTransCheckBox.isSelected();
+ }
+
}


Property changes on:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/TopOptionsPanel.java
___________________________________________________________________
Name: copyright
+ copyright: no copyright yet
Name: svn:keywords
+ Id

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/TopPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/TopPanel.java
2007-07-18 13:45:36 UTC (rev 2550)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/TopPanel.java
2007-07-19 12:11:00 UTC (rev 2551)
@@ -1,3 +1,10 @@
+/*
+
+ $Id$
+ $Copyright$
+
+*/
+
package org.perfsonar.perfsonarui.flowsa.panels;

import java.awt.Component;
@@ -12,111 +19,114 @@
import org.perfsonar.perfsonarui.plugins.IPerfsonarTab;
import org.perfsonar.perfsonarui.ui.PluginMainPanel;

+public class TopPanel extends PluginMainPanel implements Observer,
+ DocumentListener, FocusListener {

-public class TopPanel extends PluginMainPanel implements Observer,
DocumentListener, FocusListener {
-
private static final long serialVersionUID = 1L;

public TopPanel(Component parentFrame, IPerfsonarTab model) {
super(parentFrame, model);
this.addWidgets();
}
-
-
- public void addWidgets() {
- topQueryPanel = new javax.swing.JPanel();
- topDataScrollPane = new javax.swing.JScrollPane();
- topDataTable = new javax.swing.JTable();

- topDataTable.setModel(new javax.swing.table.DefaultTableModel(
- new Object [][] {
- {null, null, null, null, null, null, null, null, null, null},
- {null, null, null, null, null, null, null, null, null, null},
- {null, null, null, null, null, null, null, null, null, null},
- {null, null, null, null, null, null, null, null, null, null}
- },
- new String [] {
- "#", "Date first seen", "Duration", "Proto", "Flows",
"Packets", "Bytes", "Pps", "Bps", "Bpp"
- }
- ) {
+ public void addWidgets() {
+ topQueryPanel = new javax.swing.JPanel();
+ topDataScrollPane = new javax.swing.JScrollPane();
+ topDataTable = new javax.swing.JTable();
+
+ topDataTable.setModel(new javax.swing.table.DefaultTableModel(
+ new Object[][] {
+ { null, null, null, null,
null, null, null, null, null,
+ null },
+ { null, null, null, null,
null, null, null, null, null,
+ null },
+ { null, null, null, null,
null, null, null, null, null,
+ null },
+ { null, null, null, null,
null, null, null, null, null,
+ null } }, new
String[] { "#",
+ "Date first seen",
"Duration", "Proto", "Flows",
+ "Packets", "Bytes", "Pps",
"Bps", "Bpp" }) {
private static final long serialVersionUID = 1L;

- boolean[] canEdit = new boolean [] {
- false, false, false, false, true, true, true, true, true,
true
- };
+ boolean[] canEdit = new boolean[] { false, false,
false, false,
+ true, true, true, true, true, true };

- public boolean isCellEditable(int rowIndex, int columnIndex) {
- return canEdit [columnIndex];
- }
- });
- topDataScrollPane.setViewportView(topDataTable);
+ public boolean isCellEditable(int rowIndex, int
columnIndex) {
+ return canEdit[columnIndex];
+ }
+ });
+ topDataScrollPane.setViewportView(topDataTable);

- org.jdesktop.layout.GroupLayout topQueryPanelLayout = new
org.jdesktop.layout.GroupLayout(topQueryPanel);
- topQueryPanel.setLayout(topQueryPanelLayout);
- topQueryPanelLayout.setHorizontalGroup(
-
topQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(topDataScrollPane,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 827, Short.MAX_VALUE)
- );
- topQueryPanelLayout.setVerticalGroup(
-
topQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(topDataScrollPane,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 372, Short.MAX_VALUE)
- );
+ org.jdesktop.layout.GroupLayout topQueryPanelLayout = new
org.jdesktop.layout.GroupLayout(
+ topQueryPanel);
+ topQueryPanel.setLayout(topQueryPanelLayout);
+ topQueryPanelLayout.setHorizontalGroup(topQueryPanelLayout
+
.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+ .add(topDataScrollPane,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 827,
+ Short.MAX_VALUE));
+ topQueryPanelLayout.setVerticalGroup(topQueryPanelLayout
+
.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+ .add(topDataScrollPane,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 372,
+ Short.MAX_VALUE));

- org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
-
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(layout.createSequentialGroup()
- .addContainerGap()
- .add(topQueryPanel,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
- );
- layout.setVerticalGroup(
-
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(org.jdesktop.layout.GroupLayout.TRAILING,
layout.createSequentialGroup()
-
.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
- .add(topQueryPanel,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .addContainerGap())
- );
- }
-
- private javax.swing.JScrollPane topDataScrollPane;
- private javax.swing.JTable topDataTable;
- private javax.swing.JPanel topQueryPanel;
+ org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(
+ this);
+ this.setLayout(layout);
+ layout.setHorizontalGroup(layout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(
+ topQueryPanel,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap(
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE)));
+ layout.setVerticalGroup(layout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+ org.jdesktop.layout.GroupLayout.TRAILING,
+
layout.createSequentialGroup().addContainerGap(
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE).add(topQueryPanel,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap()));
+ }

+ private javax.swing.JScrollPane topDataScrollPane;
+ private javax.swing.JTable topDataTable;
+ private javax.swing.JPanel topQueryPanel;

public void update(Observable o, Object arg) {
// TODO Auto-generated method stub
-
+
}

-
public void changedUpdate(DocumentEvent e) {
// TODO Auto-generated method stub
-
+
}

-
public void insertUpdate(DocumentEvent e) {
// TODO Auto-generated method stub
-
+
}

-
public void removeUpdate(DocumentEvent e) {
// TODO Auto-generated method stub
-
+
}

-
public void focusGained(FocusEvent e) {
// TODO Auto-generated method stub
-
+
}

-
public void focusLost(FocusEvent e) {
// TODO Auto-generated method stub
-
+
}
}


Property changes on:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/TopPanel.java
___________________________________________________________________
Name: copyright
+ copyright: no copyright yet
Name: svn:keywords
+ Id



  • perfsonar: r2551 - in branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa: . panels, svnlog, 07/19/2007

Archive powered by MHonArc 2.6.16.

Top of Page