Return-Path: X-Original-To: apmail-geode-commits-archive@minotaur.apache.org Delivered-To: apmail-geode-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6715418601 for ; Wed, 25 Nov 2015 23:33:43 +0000 (UTC) Received: (qmail 87500 invoked by uid 500); 25 Nov 2015 23:33:43 -0000 Delivered-To: apmail-geode-commits-archive@geode.apache.org Received: (qmail 87475 invoked by uid 500); 25 Nov 2015 23:33:43 -0000 Mailing-List: contact commits-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list commits@geode.incubator.apache.org Received: (qmail 87466 invoked by uid 99); 25 Nov 2015 23:33:43 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2015 23:33:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A361AC0845 for ; Wed, 25 Nov 2015 23:33:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.247 X-Spam-Level: * X-Spam-Status: No, score=1.247 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.554, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id zvkrjJESfoQi for ; Wed, 25 Nov 2015 23:33:20 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 409F022F15 for ; Wed, 25 Nov 2015 23:33:20 +0000 (UTC) Received: (qmail 80335 invoked by uid 99); 25 Nov 2015 23:33:20 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2015 23:33:20 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D3092E2C0B; Wed, 25 Nov 2015 23:33:19 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vford13@apache.org To: commits@geode.incubator.apache.org Date: Wed, 25 Nov 2015 23:33:22 -0000 Message-Id: <9b6ce4a421ec416488d0f45384abfa7a@git.apache.org> In-Reply-To: <3b25614188d146819c9e5311e059c86f@git.apache.org> References: <3b25614188d146819c9e5311e059c86f@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [4/5] incubator-geode git commit: GEODE-340 Deleting old code GEODE-340 Deleting old code Removing old swing based version. Clean up of code to provide focus on JavaFX version. Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/b9e0d9c0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/b9e0d9c0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/b9e0d9c0 Branch: refs/heads/feature/GEODE-78 Commit: b9e0d9c09b06d61dc302a93ca73dea23d32644e2 Parents: f29845a Author: Vince Ford Authored: Wed Nov 25 13:33:11 2015 -0800 Committer: Vince Ford Committed: Wed Nov 25 13:33:11 2015 -0800 ---------------------------------------------------------------------- .../main/java/com/pivotal/jvsd/AboutJVSD.form | 69 - .../main/java/com/pivotal/jvsd/AboutJVSD.java | 104 - .../pivotal/jvsd/ChartMenuActionListener.java | 39 - .../java/com/pivotal/jvsd/ChartSidePanel.form | 325 -- .../src/main/java/com/pivotal/jvsd/HUD.form | 113 - .../src/main/java/com/pivotal/jvsd/HUD.java | 99 - .../java/com/pivotal/jvsd/StatValueWrapper.java | 45 - .../com/pivotal/jvsd/StatsTableColumnModel.java | 95 - .../java/com/pivotal/jvsd/StatsTableModel.java | 61 - .../com/pivotal/jvsd/VSDConnectionsDialog.form | 35 - .../com/pivotal/jvsd/VSDConnectionsDialog.java | 66 - .../java/com/pivotal/jvsd/VSDDataWindow.java | 9 - .../java/com/pivotal/jvsd/VSDHelpWindow.form | 77 - .../java/com/pivotal/jvsd/VSDHelpWindow.java | 90 - .../java/com/pivotal/jvsd/VSDMainWindow.java | 417 -- .../com/pivotal/jvsd/VSDPreferencesDialog.form | 35 - .../com/pivotal/jvsd/VSDPreferencesDialog.java | 66 - .../com/pivotal/jvsd/VSDStatInfoWindow.java | 9 - .../java/com/pivotal/jvsd/VSDStatsPane.java | 53 - .../java/com/pivotal/jvsd/VisualDisplayApp.java | 88 - .../com/pivotal/jvsd/stats/GraphTemplates.java | 9 - .../java/com/pivotal/jvsd/stats/IssueRules.java | 9 - .../pivotal/jvsd/stats/StatArchiveFormat.java | 190 - .../com/pivotal/jvsd/stats/StatFileManager.java | 125 - .../com/pivotal/jvsd/stats/StatFileParser.java | 3591 ------------------ .../com/pivotal/jvsd/stats/StatFileWrapper.java | 93 - .../java/com/pivotal/jvsd/stats/Utility.java | 172 +- 27 files changed, 86 insertions(+), 5998 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/AboutJVSD.form ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/AboutJVSD.form b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/AboutJVSD.form deleted file mode 100644 index f71fcce..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/AboutJVSD.form +++ /dev/null @@ -1,69 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/AboutJVSD.java ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/AboutJVSD.java b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/AboutJVSD.java deleted file mode 100644 index 2e20d8a..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/AboutJVSD.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * AboutJVSD.java - * - * Created on Dec 16, 2010, 3:35:39 PM - */ -package com.pivotal.jvsd; - -/** - * - * @author Vince Ford - */ -public class AboutJVSD extends javax.swing.JDialog { - - /** - * Creates new form AboutJVSD - */ - public AboutJVSD(java.awt.Frame parent, boolean modal) { - super(parent, modal); - initComponents(); - } - - /** - * This method is called from within the constructor to initialize the form. - * WARNING: Do NOT modify this code. The content of this method is always - * regenerated by the Form Editor. - */ - @SuppressWarnings("unchecked") - // //GEN-BEGIN:initComponents - private void initComponents() { - - OKButton = new javax.swing.JButton(); - AboutLabel = new javax.swing.JLabel(); - - setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); - setLocationByPlatform(true); - setModal(true); - setUndecorated(true); - - OKButton.setText("OK"); - OKButton.setSelected(true); - OKButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - OKButtonActionPerformed(evt); - } - }); - - AboutLabel.setText(" JVSD
Version 0.01

This tool is provided as-is with no support or warranty. Use at your own risk.

If you encounter issues or want to request features - please send email to:

vincef@vmware.com "); - - javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); - getContentPane().setLayout(layout); - layout.setHorizontalGroup( - layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() - .addContainerGap(313, Short.MAX_VALUE) - .addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE) - .addContainerGap()) - .addGroup(layout.createSequentialGroup() - .addGap(48, 48, 48) - .addComponent(AboutLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 310, javax.swing.GroupLayout.PREFERRED_SIZE) - .addContainerGap(42, Short.MAX_VALUE)) - ); - layout.setVerticalGroup( - layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() - .addGap(20, 20, 20) - .addComponent(AboutLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE) - .addComponent(OKButton) - .addContainerGap()) - ); - - pack(); - }//
//GEN-END:initComponents - - private void OKButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_OKButtonActionPerformed - if (evt.getSource() == OKButton) { - setVisible(false); - this.dispose(); - } - }//GEN-LAST:event_OKButtonActionPerformed - - /** - * @param args the command line arguments - */ - public static void main(String args[]) { - java.awt.EventQueue.invokeLater(new Runnable() { - public void run() { - AboutJVSD dialog = new AboutJVSD(new javax.swing.JFrame(), true); - dialog.addWindowListener(new java.awt.event.WindowAdapter() { - public void windowClosing(java.awt.event.WindowEvent e) { - System.exit(0); - } - }); - dialog.setVisible(true); - } - }); - } - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JLabel AboutLabel; - private javax.swing.JButton OKButton; - // End of variables declaration//GEN-END:variables - -} http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/ChartMenuActionListener.java ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/ChartMenuActionListener.java b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/ChartMenuActionListener.java deleted file mode 100644 index ba0f717..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/ChartMenuActionListener.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.pivotal.jvsd; - -import com.pivotal.jvsd.fx.VSDChartWindow; - -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; -import java.util.ArrayList; -import javax.swing.JMenuItem; - -/** - * - * @author Vince Ford - */ -public class ChartMenuActionListener implements ActionListener { - - ArrayList chartWindows = null; - - ChartMenuActionListener(ArrayList chartWindows) { - this.chartWindows = chartWindows; - } - - @Override - public void actionPerformed(ActionEvent e) { - JMenuItem menuitem = (JMenuItem) e.getSource(); -// for (JFrame win : chartWindows) { -// if (win.getTitle().equals(menuitem.getText())) { -// //silly but works as for some reason the windows dont' get -// //pulled forward on on some platforms unless visibility changes -// win.setVisible(false); -// win.setVisible(true); -// //set focus -// win.isActive(); -// win.toFront(); -// break; -// } -// } - } - -} http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/ChartSidePanel.form ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/ChartSidePanel.form b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/ChartSidePanel.form deleted file mode 100644 index 3b3964c..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/ChartSidePanel.form +++ /dev/null @@ -1,325 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/HUD.form ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/HUD.form b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/HUD.form deleted file mode 100644 index 59ebfc0..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/HUD.form +++ /dev/null @@ -1,113 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/HUD.java ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/HUD.java b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/HUD.java deleted file mode 100644 index 1d8dff3..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/HUD.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ - -package com.pivotal.jvsd; - -/** - * - * @author jdeppe - */ -public class HUD extends javax.swing.JPanel { - - /** - * Creates new form HUD - */ - public HUD() { - initComponents(); - } - - /** - * This method is called from within the constructor to initialize the form. - * WARNING: Do NOT modify this code. The content of this method is always - * regenerated by the Form Editor. - */ - @SuppressWarnings("unchecked") - // //GEN-BEGIN:initComponents - private void initComponents() { - - jLabel1 = new javax.swing.JLabel(); - jLabel2 = new javax.swing.JLabel(); - xLabel = new javax.swing.JLabel(); - yLabel = new javax.swing.JLabel(); - - setBackground(new java.awt.Color(134, 225, 194)); - setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 153, 153), 2, true)); - setFont(new java.awt.Font("Lucida Grande", 0, 10)); // NOI18N - setRequestFocusEnabled(false); - - jLabel1.setFont(jLabel1.getFont().deriveFont(jLabel1.getFont().getSize()-3f)); - jLabel1.setText("X:"); - - jLabel2.setFont(jLabel2.getFont().deriveFont(jLabel2.getFont().getSize()-3f)); - jLabel2.setText("Y:"); - - xLabel.setFont(xLabel.getFont().deriveFont(xLabel.getFont().getSize()-3f)); - xLabel.setText("0"); - - yLabel.setFont(yLabel.getFont().deriveFont(yLabel.getFont().getSize()-3f)); - yLabel.setText("0"); - - javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); - this.setLayout(layout); - layout.setHorizontalGroup( - layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(layout.createSequentialGroup() - .addContainerGap() - .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addGroup(layout.createSequentialGroup() - .addComponent(jLabel1) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addComponent(xLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addGroup(layout.createSequentialGroup() - .addComponent(jLabel2) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addComponent(yLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) - .addContainerGap(69, Short.MAX_VALUE)) - ); - layout.setVerticalGroup( - layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(layout.createSequentialGroup() - .addContainerGap() - .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel1) - .addComponent(xLabel)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel2) - .addComponent(yLabel)) - .addContainerGap(58, Short.MAX_VALUE)) - ); - }// //GEN-END:initComponents - - public void setXLabel(String label) { - xLabel.setText(label); - } - - public void setYLabel(String label) { - yLabel.setText(label); - } - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JLabel jLabel1; - private javax.swing.JLabel jLabel2; - private javax.swing.JLabel xLabel; - private javax.swing.JLabel yLabel; - // End of variables declaration//GEN-END:variables -} http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/StatValueWrapper.java ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/StatValueWrapper.java b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/StatValueWrapper.java deleted file mode 100644 index b64fc20..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/StatValueWrapper.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.pivotal.jvsd; - -import com.pivotal.jvsd.stats.StatFileParser.StatValue; - -/** - * - * @author Vince Ford - */ -public class StatValueWrapper { - - StatValue sv; - int axisLocation; - int plotIndex; - - public StatValueWrapper(StatValue sv, int axisLocation, int plotIndex) { - this.sv = sv; - this.axisLocation = axisLocation; - this.plotIndex = plotIndex; - } - - public int getAxisLocation() { - return axisLocation; - } - - public void setAxisLocation(int axisLocation) { - this.axisLocation = axisLocation; - } - - public int getPlotIndex() { - return plotIndex; - } - - public void setPlotIndex(int plotIndex) { - this.plotIndex = plotIndex; - } - - public StatValue getSv() { - return sv; - } - - public void setSv(StatValue sv) { - this.sv = sv; - } - -} http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/StatsTableColumnModel.java ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/StatsTableColumnModel.java b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/StatsTableColumnModel.java deleted file mode 100644 index 94adbba..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/StatsTableColumnModel.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.pivotal.jvsd; - -import java.util.ArrayList; -import java.util.Enumeration; -import javax.swing.ListSelectionModel; -import javax.swing.event.TableColumnModelListener; -import javax.swing.table.TableColumn; -import javax.swing.table.TableColumnModel; -import org.apache.commons.collections.IteratorUtils; - -/** - * - * @author Vince Ford - */ -public class StatsTableColumnModel implements TableColumnModel { - - ArrayList tca; - - public void addColumn(TableColumn tc) { - tca.add(tc); - } - - public void removeColumn(TableColumn tc) { - tca.remove(tc); - } - - public void moveColumn(int i, int i1) { - throw new UnsupportedOperationException("Not supported yet."); - } - - public void setColumnMargin(int i) { - throw new UnsupportedOperationException("Not supported yet."); - } - - public int getColumnCount() { - return tca.size(); - } - - public Enumeration getColumns() { - return IteratorUtils.asEnumeration(tca.iterator()); - } - - public int getColumnIndex(Object o) { - throw new UnsupportedOperationException("Not supported yet."); - } - - public TableColumn getColumn(int i) { - throw new UnsupportedOperationException("Not supported yet."); - } - - public int getColumnMargin() { - throw new UnsupportedOperationException("Not supported yet."); - } - - public int getColumnIndexAtX(int i) { - throw new UnsupportedOperationException("Not supported yet."); - } - - public int getTotalColumnWidth() { - throw new UnsupportedOperationException("Not supported yet."); - } - - public void setColumnSelectionAllowed(boolean bln) { - throw new UnsupportedOperationException("Not supported yet."); - } - - public boolean getColumnSelectionAllowed() { - throw new UnsupportedOperationException("Not supported yet."); - } - - public int[] getSelectedColumns() { - throw new UnsupportedOperationException("Not supported yet."); - } - - public int getSelectedColumnCount() { - throw new UnsupportedOperationException("Not supported yet."); - } - - public void setSelectionModel(ListSelectionModel lsm) { - throw new UnsupportedOperationException("Not supported yet."); - } - - public ListSelectionModel getSelectionModel() { - throw new UnsupportedOperationException("Not supported yet."); - } - - public void addColumnModelListener(TableColumnModelListener tl) { - throw new UnsupportedOperationException("Not supported yet."); - } - - public void removeColumnModelListener(TableColumnModelListener tl) { - throw new UnsupportedOperationException("Not supported yet."); - } - -} http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/StatsTableModel.java ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/StatsTableModel.java b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/StatsTableModel.java deleted file mode 100644 index b1e1bf6..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/StatsTableModel.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.pivotal.jvsd; - -import java.util.ArrayList; -import javax.swing.event.TableModelListener; -import javax.swing.table.TableModel; - -/** - * - * @author Vince Ford - */ -public class StatsTableModel implements TableModel { - - String[] columnNames = {"Row", "Start Time", "File", "Samples", "PID", "Type", "Name"}; - - ArrayList tableData; - - public StatsTableModel() { - tableData = new ArrayList(); - } - - public int getRowCount() { - return tableData.size(); - } - - public int getColumnCount() { - return columnNames.length; - } - - public String getColumnName(int i) { - return columnNames[i]; - } - - public Class getColumnClass(int i) { - return String.class; - } - - public boolean isCellEditable(int i, int i1) { - return false; - } - - public Object getValueAt(int i, int i1) { - throw new UnsupportedOperationException("Not supported yet."); - } - - public void setValueAt(Object o, int i, int i1) { - throw new UnsupportedOperationException("Not supported yet."); - } - - public void addTableModelListener(TableModelListener tl) { - throw new UnsupportedOperationException("Not supported yet."); - } - - public void removeTableModelListener(TableModelListener tl) { - //null op right now - } - - public void addRow(Object[] rowdata) { - tableData.add(rowdata); - } - -} http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDConnectionsDialog.form ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDConnectionsDialog.form b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDConnectionsDialog.form deleted file mode 100644 index 753cf18..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDConnectionsDialog.form +++ /dev/null @@ -1,35 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDConnectionsDialog.java ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDConnectionsDialog.java b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDConnectionsDialog.java deleted file mode 100644 index 432c892..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDConnectionsDialog.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * VSDConnectionsDialog.java - * - * Created on Dec 28, 2010, 10:48:54 AM - */ -package com.pivotal.jvsd; - -/** - * - * @author Vince Ford - */ -public class VSDConnectionsDialog extends javax.swing.JDialog { - - /** - * Creates new form VSDConnectionsDialog - */ - public VSDConnectionsDialog(java.awt.Frame parent, boolean modal) { - super(parent, modal); - initComponents(); - } - - /** - * This method is called from within the constructor to initialize the form. - * WARNING: Do NOT modify this code. The content of this method is always - * regenerated by the Form Editor. - */ - @SuppressWarnings("unchecked") - // //GEN-BEGIN:initComponents - private void initComponents() { - - setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); - - javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); - getContentPane().setLayout(layout); - layout.setHorizontalGroup( - layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 400, Short.MAX_VALUE) - ); - layout.setVerticalGroup( - layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 300, Short.MAX_VALUE) - ); - - pack(); - }// //GEN-END:initComponents - - /** - * @param args the command line arguments - */ - public static void main(String args[]) { - java.awt.EventQueue.invokeLater(new Runnable() { - public void run() { - VSDConnectionsDialog dialog = new VSDConnectionsDialog(new javax.swing.JFrame(), true); - dialog.addWindowListener(new java.awt.event.WindowAdapter() { - public void windowClosing(java.awt.event.WindowEvent e) { - System.exit(0); - } - }); - dialog.setVisible(true); - } - }); - } - - // Variables declaration - do not modify//GEN-BEGIN:variables - // End of variables declaration//GEN-END:variables -} http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDDataWindow.java ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDDataWindow.java b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDDataWindow.java deleted file mode 100644 index 359fc8c..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDDataWindow.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.pivotal.jvsd; - -/** - * - * @author Vince Ford - */ -public class VSDDataWindow { - -} http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDHelpWindow.form ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDHelpWindow.form b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDHelpWindow.form deleted file mode 100644 index b5e5316..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDHelpWindow.form +++ /dev/null @@ -1,77 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDHelpWindow.java ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDHelpWindow.java b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDHelpWindow.java deleted file mode 100644 index cbe40e8..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDHelpWindow.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * VSDHelpWindow.java - * - * Created on Dec 28, 2010, 10:52:44 AM - */ -package com.pivotal.jvsd; - -/** - * - * @author Vince Ford - */ -public class VSDHelpWindow extends javax.swing.JFrame { - - /** - * Creates new form VSDHelpWindow - */ - public VSDHelpWindow() { - initComponents(); - } - - /** - * This method is called from within the constructor to initialize the form. - * WARNING: Do NOT modify this code. The content of this method is always - * regenerated by the Form Editor. - */ - @SuppressWarnings("unchecked") - // //GEN-BEGIN:initComponents - private void initComponents() { - - jToolBar1 = new javax.swing.JToolBar(); - jScrollPane1 = new javax.swing.JScrollPane(); - jEditorPane1 = new javax.swing.JEditorPane(); - jMenuBar1 = new javax.swing.JMenuBar(); - jMenu1 = new javax.swing.JMenu(); - jMenu2 = new javax.swing.JMenu(); - - setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); - - jToolBar1.setRollover(true); - - jEditorPane1.setEditable(false); - jScrollPane1.setViewportView(jEditorPane1); - - jMenu1.setText("File"); - jMenuBar1.add(jMenu1); - - jMenu2.setText("Edit"); - jMenuBar1.add(jMenu2); - - setJMenuBar(jMenuBar1); - - javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); - getContentPane().setLayout(layout); - layout.setHorizontalGroup( - layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE) - .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE) - ); - layout.setVerticalGroup( - layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(layout.createSequentialGroup() - .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)) - ); - - pack(); - }// //GEN-END:initComponents - - /** - * @param args the command line arguments - */ - public static void main(String args[]) { - java.awt.EventQueue.invokeLater(new Runnable() { - public void run() { - new VSDHelpWindow().setVisible(true); - } - }); - } - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JEditorPane jEditorPane1; - private javax.swing.JMenu jMenu1; - private javax.swing.JMenu jMenu2; - private javax.swing.JMenuBar jMenuBar1; - private javax.swing.JScrollPane jScrollPane1; - private javax.swing.JToolBar jToolBar1; - // End of variables declaration//GEN-END:variables - -} http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDMainWindow.java ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDMainWindow.java b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDMainWindow.java deleted file mode 100644 index 164187e..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDMainWindow.java +++ /dev/null @@ -1,417 +0,0 @@ -package com.pivotal.jvsd; - -import com.pivotal.jvsd.fx.VSDChartWindow; -import com.pivotal.jvsd.stats.StatFileManager; -import com.pivotal.jvsd.stats.StatFileParser; -import com.pivotal.jvsd.stats.StatFileParser.StatValue; -import com.pivotal.jvsd.stats.StatFileWrapper; -import com.pivotal.jvsd.stats.Utility; - -import java.awt.BorderLayout; -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; -import java.awt.event.ItemEvent; -import java.awt.event.ItemListener; -import java.io.File; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -import javafx.embed.swing.JFXPanel; - -import javax.swing.*; -import javax.swing.event.ListSelectionEvent; -import javax.swing.event.ListSelectionListener; -import javax.swing.table.DefaultTableModel; -import javax.swing.table.TableColumn; - -/** - * - * @author Vince Ford - */ -public class VSDMainWindow extends JFrame - implements ActionListener, ListSelectionListener { - - private JMenuBar menubar; - private final int CHARTMENU_POSITION = 3; - private ChartMenuActionListener chartMenuListener = null; - private JTable table; - private DefaultTableModel tableModel; - private StatFileManager statFiles; - private VSDStatsPane statsPane; - private ArrayList chartWindows = null; - private JMenuItem exportMenuItem = null; - - private JButton buttonNewChart = null; - private JButton buttonAddToChart = null; - private JComboBox chartList = null; - - private boolean hideZeroStats = true; - - private static final Object[] ROW_HEADERS = - {"Row", "Start Time", "File", "Samples", "PID", "Type", "Name"}; - - public VSDMainWindow(StatFileManager sfm) { - super(); - - // HACK - init JFX - new JFXPanel(); - - Utility.initScreenSize(); - setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - statFiles = sfm; - chartWindows = new ArrayList(); - createMenus(); - createStatsList(); - createBottomPane(); - createChartButtons(); - this.setSize(640, 800); -// this.setSize((int) (Utility.getHorizontalScreenSize() * 0.75), -// ((int) (Utility.getVerticalScreenSize() * 0.75))); - this.setTitle("jVSD"); - if (statFiles.length() > 0) { - statFiles.updateTableView(table); - exportMenuItem.setEnabled(true); - } - } - - /** - * Returns a list of StatValues depending on the stats and stat names - * selected. - */ - private List getSelectedStatValues() { - List results = new ArrayList(); - String type = null; - String name = null; - int filenum = 0; - int[] indexes = table.getSelectedRows(); - - for (int rowIdx : indexes) { - int index = table.convertRowIndexToModel(rowIdx); - for (int x = 0; x < tableModel.getColumnCount(); x++) { - if (tableModel.getColumnName(x).equals("Type")) { - type = (String) tableModel.getValueAt(index, x); - } else if (tableModel.getColumnName(x).equals("File")) { - filenum = ((Integer) tableModel.getValueAt(index, x)).intValue(); - } else if (tableModel.getColumnName(x).equals("Name")) { - name = (String) tableModel.getValueAt(index, x); - } - } - - StatFileWrapper stw = statFiles.getFile(filenum - 1); - StatFileParser.ResourceInst ri = stw.getResource(type, name); - - for (String statName : statsPane.getSelectedValues()) { - results.add(ri.getStatValue(statName)); - } - } - - return results; - } - - private void createMenus() { - menubar = new JMenuBar(); - JMenuItem item; - JMenu menu; - //*********** - //File Menu - menu = Utility.createMenu("File", menubar); - Utility.createMenuItem("Open", menu, this); - exportMenuItem = Utility.createMenuItem("Export to CSV", menu, this); - exportMenuItem.setEnabled(false); - item = Utility.createMenuItem("Connect", menu, this); - item.setEnabled(false); - Utility.createMenuItem("Quit", menu, this); - //*********** - //Edit Menu - menu = Utility.createMenu("Edit", menubar); - Utility.createMenuItem("Undo", menu, this); - Utility.createMenuItem("Cut", menu, this); - Utility.createMenuItem("Copy", menu, this); - Utility.createMenuItem("Paste", menu, this); - Utility.createMenuItem("Select All", menu, this); - menu.addSeparator(); - Utility.createMenuItem("Search", menu, this); - menu.addSeparator(); - Utility.createMenuItem("Preferences", menu, this); - menu.setEnabled(false); - //*********** - //View Menu - menu = Utility.createMenu("View", menubar); - JCheckBoxMenuItem cbMenuItem = new JCheckBoxMenuItem("Hide zero stats"); - cbMenuItem.addItemListener(new ItemListener() { - @Override - public void itemStateChanged(ItemEvent e) { -// if (e.getStateChange() == ItemEvent.SELECTED) { -// hideZeroStats = true; -// } else { -// hideZeroStats = false; -// } -// updateStatList(); - }}); - - menu.add(cbMenuItem); - - -// menu.setEnabled(false); - //*********** - //Charts Menu - menu = Utility.createMenu("Charts", menubar); - menu.setEnabled(false); - //*********** - //Templates Menu - menu = Utility.createMenu("Template", menubar); - Utility.createMenuItem("New Template", menu, this); - menu.addSeparator(); - menu.setEnabled(false); - //predefined templates will be added below this separator - - //*********** - //About Menu - menu = Utility.createMenu("About", menubar); - Utility.createMenuItem("About jVSD", menu, this); - item = Utility.createMenuItem("Help", menu, this); - item.setEnabled(false); - this.setJMenuBar(menubar); - } - - @Override - public void actionPerformed(ActionEvent e) { - VSDChartWindow vcw = null; - Object o = e.getSource(); - - if (o instanceof JMenuItem) { - JMenuItem mi = (JMenuItem) o; - String menuItem = mi.getActionCommand(); - if ("Quit".equals(menuItem)) { - System.exit(0); - } else if ("Open".equals(menuItem)) { - openFile(); - } else if ("Export to CSV".equals(menuItem)) { - saveFile(); - } else if ("About JVSD".equals(menuItem)) { - openAboutDialog(); - } - } else if (o == buttonNewChart || o == buttonAddToChart) { - List mystats = getSelectedStatValues(); - if (mystats.size() > 0 && o == buttonNewChart) { - StatValue stat = null; //mystats.remove(0); - -// vcw = new VSDChartWindow(stat, this); -// vcw.start(); - addChartWindow(vcw); - chartList.addItem(vcw.getTitle()); - chartList.setSelectedItem(vcw.getTitle()); - //vcw.setVisible(true); - } else if (o == buttonAddToChart) { - String chart = (String) chartList.getSelectedItem(); - if (chart != null) { - vcw = getChartWindow(chart); - } - } - -// vcw.addToChart(mystats); - - if (chartList.getItemCount() > 0) { - buttonAddToChart.setEnabled(true); - } else { - buttonAddToChart.setEnabled(false); - } - } - } - - private void createStatsList() { - this.getContentPane().setLayout(new BorderLayout()); - - table = new JTable() { - @Override - public boolean isCellEditable(int rowIndex, int ColIndex) { - return false; - } - }; - - table.setAutoCreateRowSorter(true); -// table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); - JScrollPane scrollpane = new JScrollPane(table); - - this.getContentPane().add(scrollpane, BorderLayout.NORTH); - tableModel = (DefaultTableModel) table.getModel(); - int paneWidth = scrollpane.getWidth(); - // TODO Fix this - paneWidth = 0 - - // Set some specific column widths - int[] widths = {(int)(paneWidth * 0.05), - (int)(paneWidth * 0.2), - (int)(paneWidth * 0.2), - (int)(paneWidth * 0.05), - (int)(paneWidth * 0.1), - (int)(paneWidth * 0.2), - (int)(paneWidth * 0.2) - }; - for (int i = 0; i < widths.length; i++) { - TableColumn tc = new TableColumn(i); - tc.setPreferredWidth(widths[i]); - tableModel.addColumn(tc); - } - - tableModel.setColumnIdentifiers(ROW_HEADERS); - - table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); - table.getSelectionModel().addListSelectionListener(this); - } - - private void openFile() { - final JFileChooser fc = new JFileChooser(); - int returnVal = fc.showOpenDialog(this); - switch (returnVal) { - case JFileChooser.APPROVE_OPTION: - File file = fc.getSelectedFile(); - statFiles.addFile(file); - statFiles.updateTableView(table); - exportMenuItem.setEnabled(true); - break; - case JFileChooser.CANCEL_OPTION: - break; - case JFileChooser.ERROR_OPTION: - default: - break; - } - } - - private void createBottomPane() { - statsPane = new VSDStatsPane(); - this.getContentPane().add(statsPane, BorderLayout.CENTER); - } - - private void createChartButtons() { - JPanel panel = new JPanel(); - buttonNewChart = new JButton("New Chart"); - buttonAddToChart = new JButton("Add to Chart"); - chartList = new JComboBox(); - buttonNewChart.addActionListener(this); - buttonAddToChart.addActionListener(this); - buttonAddToChart.setEnabled(false); - panel.add(buttonNewChart); - panel.add(buttonAddToChart); - panel.add(chartList); - this.getContentPane().add(panel, BorderLayout.SOUTH); - } - - /** - * This will update the stats pane with all the common stats of rows - * selected in the main window. - */ - private void updateStatList() { - statsPane.clear(); - - int[] rows = table.getSelectedRows(); - List statNames = getStatNames(rows[0]); - - for (int i = 1; i < rows.length; i++) { - List tmpNames = getStatNames(rows[i]); - Iterator it = statNames.iterator(); - while (it.hasNext()) { - String s = it.next(); - if (!tmpNames.contains(s)) { - it.remove(); - } - } - } - - statsPane.update(statNames); - } - - private List getStatNames(int tableRowIndex) { - List statNames = null; - String type = null; - String name = null; - int filenum = -1; - int modelIndex = table.convertRowIndexToModel(tableRowIndex); - - for (int x = 0; x < tableModel.getColumnCount(); x++) { - if (tableModel.getColumnName(x).equals("Type")) { - type = (String) tableModel.getValueAt(modelIndex, x); - } else if (tableModel.getColumnName(x).equals("File")) { - filenum = ((Integer) tableModel.getValueAt(modelIndex, x)).intValue(); - } else if (tableModel.getColumnName(x).equals("Name")) { - name = (String) tableModel.getValueAt(modelIndex, x); - } - } - if (type != null && name != null && filenum != -1) { - statNames = statFiles.getStats(filenum, type, name, hideZeroStats); - } - - return statNames; - } - - void addChartWindow(VSDChartWindow vcw) { - chartWindows.add(vcw); - if (this.chartMenuListener == null) { - this.chartMenuListener = new ChartMenuActionListener(this.chartWindows); - } - Utility. - createMenuItem(vcw.getTitle(), menubar.getMenu(CHARTMENU_POSITION), this.chartMenuListener); - } - - void removeChartWindow(VSDChartWindow vcw) { - chartWindows.remove(vcw); - for (int x = 0; x < menubar.getMenu(CHARTMENU_POSITION).getItemCount(); x++) { - if (menubar.getMenu(CHARTMENU_POSITION).getItem(x).getText().equals(vcw. - getTitle())) { - menubar.getMenu(CHARTMENU_POSITION).remove(x); - break; - } - } - - chartList.removeItem(vcw.getTitle()); - if (chartList.getItemCount() == 0) { - buttonAddToChart.setEnabled(false); - } - - // TODO vcw.dispose(); - } - - VSDChartWindow getChartWindow(String chart) { - VSDChartWindow vcw = findChartWindow(chart); - - return vcw; - } - - private VSDChartWindow findChartWindow(String chart) { - for (VSDChartWindow vcw : this.chartWindows) { - if (vcw.getTitle().equals(chart)) { - return vcw; - } - } - return null; - } - - private void saveFile() { - JFileChooser fc = new JFileChooser(); - fc.setDialogType(JFileChooser.SAVE_DIALOG); - int returnVal = fc.showSaveDialog(this); - switch (returnVal) { - case JFileChooser.APPROVE_OPTION: - File file = fc.getSelectedFile(); - Utility.dumpCSV(statFiles, file); - break; - case JFileChooser.CANCEL_OPTION: - break; - case JFileChooser.ERROR_OPTION: - default: - break; - } - } - - private void openAboutDialog() { - AboutJVSD dialog = new AboutJVSD(this, true); - dialog.setVisible(true); - } - - @Override - public void valueChanged(ListSelectionEvent e) { - if (!e.getValueIsAdjusting()) { - updateStatList(); - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDPreferencesDialog.form ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDPreferencesDialog.form b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDPreferencesDialog.form deleted file mode 100644 index 753cf18..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDPreferencesDialog.form +++ /dev/null @@ -1,35 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDPreferencesDialog.java ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDPreferencesDialog.java b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDPreferencesDialog.java deleted file mode 100644 index 5ebcc6f..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDPreferencesDialog.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * VSDPreferencesDialog.java - * - * Created on Dec 28, 2010, 10:48:13 AM - */ -package com.pivotal.jvsd; - -/** - * - * @author Vince Ford - */ -public class VSDPreferencesDialog extends javax.swing.JDialog { - - /** - * Creates new form VSDPreferencesDialog - */ - public VSDPreferencesDialog(java.awt.Frame parent, boolean modal) { - super(parent, modal); - initComponents(); - } - - /** - * This method is called from within the constructor to initialize the form. - * WARNING: Do NOT modify this code. The content of this method is always - * regenerated by the Form Editor. - */ - @SuppressWarnings("unchecked") - // //GEN-BEGIN:initComponents - private void initComponents() { - - setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); - - javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); - getContentPane().setLayout(layout); - layout.setHorizontalGroup( - layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 400, Short.MAX_VALUE) - ); - layout.setVerticalGroup( - layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 300, Short.MAX_VALUE) - ); - - pack(); - }// //GEN-END:initComponents - - /** - * @param args the command line arguments - */ - public static void main(String args[]) { - java.awt.EventQueue.invokeLater(new Runnable() { - public void run() { - VSDPreferencesDialog dialog = new VSDPreferencesDialog(new javax.swing.JFrame(), true); - dialog.addWindowListener(new java.awt.event.WindowAdapter() { - public void windowClosing(java.awt.event.WindowEvent e) { - System.exit(0); - } - }); - dialog.setVisible(true); - } - }); - } - - // Variables declaration - do not modify//GEN-BEGIN:variables - // End of variables declaration//GEN-END:variables -} http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDStatInfoWindow.java ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDStatInfoWindow.java b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDStatInfoWindow.java deleted file mode 100644 index 23aa2c8..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDStatInfoWindow.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.pivotal.jvsd; - -/** - * - * @author Vince Ford - */ -public class VSDStatInfoWindow { - -} http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDStatsPane.java ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDStatsPane.java b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDStatsPane.java deleted file mode 100644 index f52de35..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VSDStatsPane.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.pivotal.jvsd; - -import java.awt.BorderLayout; -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; -import java.util.List; -import javax.swing.DefaultListModel; -import javax.swing.JButton; -import javax.swing.JComboBox; -import javax.swing.JList; -import javax.swing.JPanel; -import javax.swing.JScrollPane; -import javax.swing.ListSelectionModel; - -/** - * - * @author Vince Ford - */ -public class VSDStatsPane extends JPanel { - - JList stats = null; - - public VSDStatsPane() { - super(); - - this.setLayout(new BorderLayout()); - stats = new JList(); - stats.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); - stats.setLayoutOrientation(JList.VERTICAL); - stats.setVisibleRowCount(8); - JScrollPane jsp = new JScrollPane(stats); - JPanel panel = new JPanel(); - this.add(jsp, BorderLayout.CENTER); - this.add(panel, BorderLayout.SOUTH); - stats.setModel(new DefaultListModel()); - } - - public List getSelectedValues() { - return stats.getSelectedValuesList(); - } - - void clear() { - ((DefaultListModel) (stats.getModel())).clear(); - } - - void update(List statsValue) { - clear(); - DefaultListModel dlm = (DefaultListModel) stats.getModel(); - for (String x : statsValue) { - dlm.addElement(x); - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VisualDisplayApp.java ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VisualDisplayApp.java b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VisualDisplayApp.java deleted file mode 100644 index 81b04d3..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/VisualDisplayApp.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ -package com.pivotal.jvsd; - -import java.util.logging.ConsoleHandler; -import java.util.logging.Level; -import java.util.logging.Logger; - -import com.pivotal.jvsd.stats.StatFileManager; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.CommandLineParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.OptionBuilder; -import org.apache.commons.cli.Options; -import org.apache.commons.cli.ParseException; -import org.apache.commons.cli.PosixParser; - -/** - * - * @author Vince Ford - */ -public class VisualDisplayApp { - - VSDMainWindow mainWindow = null; - StatFileManager statfiles = null; - static private Logger logger; - - /** - * - */ - public VisualDisplayApp() { - logger = Logger.getLogger("com.gemstone.gemfire.support"); - ConsoleHandler ch = new ConsoleHandler(); - ch.setLevel(Level.CONFIG); - logger.addHandler(ch); - logger.setLevel(Level.CONFIG); - - System.out.println("JVSD - Version 0.01"); - System.out. - println("This tool is provided as-is with no support or warranty. Use at your own risk."); - System.out. - println("If you encounter issues or want to request features - please send email to:"); - System.out.println("vincef@vmware.com"); - } - - /** - * - * @param argv - */ - public static void main(String argv[]) { - VisualDisplayApp app = new VisualDisplayApp(); - logger.config("Log level:" + logger.getLevel().toString()); - app.init(argv); - app.createWindows(); - } - - private void init(String[] argv) { - statfiles = new StatFileManager(); - try { - Option opt = (OptionBuilder.hasArgs()).create('f'); - Options cliOptions = new Options(); - cliOptions.addOption(opt); - CommandLineParser cliParser = new PosixParser(); - CommandLine lin = cliParser.parse(cliOptions, argv); - if (lin.hasOption('f')) { - - String[] opts = lin.getOptionValues('f'); - System.out.println(opts.length); - for (String filename : opts) { - System.out.println("opening file:" + filename); - statfiles.addFile(filename); - } - } - - } catch (ParseException ex) { - Logger.getLogger(VisualDisplayApp.class.getName()). - log(Level.SEVERE, null, ex); - } - } - - private void createWindows() { - mainWindow = new VSDMainWindow(statfiles); - mainWindow.setVisible(true); - } - -} http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/stats/GraphTemplates.java ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/stats/GraphTemplates.java b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/stats/GraphTemplates.java deleted file mode 100644 index 0752dec..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/stats/GraphTemplates.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.pivotal.jvsd.stats; - -/** - * - * @author Vince Ford - */ -public class GraphTemplates { - -} http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b9e0d9c0/jvsdfx-mm/src/main/java/com/pivotal/jvsd/stats/IssueRules.java ---------------------------------------------------------------------- diff --git a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/stats/IssueRules.java b/jvsdfx-mm/src/main/java/com/pivotal/jvsd/stats/IssueRules.java deleted file mode 100644 index 22ea65a..0000000 --- a/jvsdfx-mm/src/main/java/com/pivotal/jvsd/stats/IssueRules.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.pivotal.jvsd.stats; - -/** - * - * @author Vince Ford - */ -public class IssueRules { - -}