MOA 12.03
Real Time Analytics for Data Streams
ClusteringTabPanel.java
Go to the documentation of this file.
00001 /*
00002  *    ClusteringTabPanel.java
00003  *    Copyright (C) 2010 RWTH Aachen University, Germany
00004  *    @author Jansen ([email protected])
00005  *
00006  *    This program is free software; you can redistribute it and/or modify
00007  *    it under the terms of the GNU General Public License as published by
00008  *    the Free Software Foundation; either version 3 of the License, or
00009  *    (at your option) any later version.
00010  *
00011  *    This program is distributed in the hope that it will be useful,
00012  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *    GNU General Public License for more details.
00015  *
00016  *    You should have received a copy of the GNU General Public License
00017  *    along with this program. If not, see <http://www.gnu.org/licenses/>.
00018  *    
00019  */
00020 
00021 package moa.gui.clustertab;
00022 
00023 import moa.gui.AbstractTabPanel;
00024 
00025 public class ClusteringTabPanel extends AbstractTabPanel{
00026 
00028     public ClusteringTabPanel() {
00029         initComponents();
00030         clusteringVisualTab.setClusteringSetupTab(clusteringSetupTab);
00031         clusteringSetupTab.addButtonActionListener(clusteringVisualTab);
00032         clusteringSetupTab.setClusteringTab(this);
00033     }
00034 
00035     void toggle() {
00036         clusteringVisualTab.toggleVisualizer(false);
00037     }
00038 
00039     void stop() {
00040         clusteringVisualTab.stopVisualizer();
00041     }
00042 
00043     
00049     @SuppressWarnings("unchecked")
00050     // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
00051     private void initComponents() {
00052 
00053         jTabbedPane1 = new javax.swing.JTabbedPane();
00054         clusteringSetupTab = new moa.gui.clustertab.ClusteringSetupTab();
00055         clusteringVisualTab = new moa.gui.clustertab.ClusteringVisualTab();
00056 
00057         setLayout(new java.awt.BorderLayout());
00058 
00059         jTabbedPane1.addMouseListener(new java.awt.event.MouseAdapter() {
00060             public void mouseClicked(java.awt.event.MouseEvent evt) {
00061                 jTabbedPane1MouseClicked(evt);
00062             }
00063         });
00064         jTabbedPane1.addFocusListener(new java.awt.event.FocusAdapter() {
00065             public void focusGained(java.awt.event.FocusEvent evt) {
00066                 jTabbedPane1FocusGained(evt);
00067             }
00068         });
00069         jTabbedPane1.addTab("Setup", clusteringSetupTab);
00070         jTabbedPane1.addTab("Visualization", clusteringVisualTab);
00071 
00072         add(jTabbedPane1, java.awt.BorderLayout.CENTER);
00073     }// </editor-fold>//GEN-END:initComponents
00074 
00075     private void jTabbedPane1FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTabbedPane1FocusGained
00076         
00077     }//GEN-LAST:event_jTabbedPane1FocusGained
00078 
00079     private void jTabbedPane1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTabbedPane1MouseClicked
00080         
00081     }//GEN-LAST:event_jTabbedPane1MouseClicked
00082 
00083 
00084 
00085     // Variables declaration - do not modify//GEN-BEGIN:variables
00086     private moa.gui.clustertab.ClusteringSetupTab clusteringSetupTab;
00087     private moa.gui.clustertab.ClusteringVisualTab clusteringVisualTab;
00088     private javax.swing.JTabbedPane jTabbedPane1;
00089     // End of variables declaration//GEN-END:variables
00090 
00091     //returns the string to display as title of the tab
00092     public String getTabTitle() {
00093             return "Clustering";
00094     }
00095 
00096     //a short description (can be used as tool tip) of the tab, or contributor, etc.
00097     public String getDescription(){
00098             return "MOA Clustering";
00099     }
00100 
00101 
00102 }
 All Classes Namespaces Files Functions Variables Enumerations