Package weka.gui

Examples of weka.gui.GenericObjectEditor$GOEPanel


   * Pops up generic object editor with list of conversion filters
   *
   * @param f the File
   */
  private void converterQuery(final File f) {
    final GenericObjectEditor convEd = new GenericObjectEditor(true);

    try {
      convEd.setClassType(weka.core.converters.Loader.class);
      convEd.setValue(new weka.core.converters.CSVLoader());
      ((GenericObjectEditor.GOEPanel)convEd.getCustomEditor())
  .addOkListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        tryConverter((Loader)convEd.getValue(), f);
      }
    });
    } catch (Exception ex) {
    }

View Full Code Here


        jBtOptions.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent ae) {
            //m_BayesNet = new EditableBayesNet();
            try {
              GenericObjectEditor.registerEditors();
              GenericObjectEditor ce = new GenericObjectEditor(true);
              ce.setClassType(weka.classifiers.Classifier.class);
              ce.setValue(m_BayesNet);

              PropertyDialog pd;
              if (PropertyDialog.getParentDialog(GUI.this) != null)
                pd = new PropertyDialog(PropertyDialog.getParentDialog(GUI.this), ce, 100, 100);
              else
View Full Code Here

   * Pops up generic object editor with list of conversion filters
   *
   * @param f the File
   */
  private void converterQuery(final File f) {
    final GenericObjectEditor convEd = new GenericObjectEditor(true);

    try {
      convEd.setClassType(weka.core.converters.Loader.class);
      convEd.setValue(new weka.core.converters.CSVLoader());
      ((GenericObjectEditor.GOEPanel)convEd.getCustomEditor())
  .addOkListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        tryConverter((Loader)convEd.getValue(), f);
      }
    });
    } catch (Exception ex) {
    }

View Full Code Here

    //construct a visualizer
    //construct a tree displayer and feed both then do nothing
    //note that I will display at the bottom of each split how many
    //fall into each catagory
   
    m_classifiers = new GenericObjectEditor(true);
    m_classifiers.setClassType(Classifier.class);
    m_classifiers.setValue(new weka.classifiers.rules.ZeroR());
   
    ((GenericObjectEditor.GOEPanel)m_classifiers.getCustomEditor())
      .addOkListener(new ActionListener() {
View Full Code Here

   
    //This block sets up the root node of the tree.  Note that
    //the constructor for the GenericObjectNode will take care
    //of creating all of the child nodes containing the node
    //properties
    GenericObjectEditor classifierEditor = new GenericObjectEditor();
    classifierEditor.setClassType(Classifier.class);
    classifierEditor.setValue(classifier);
   
    GenericObjectNode rootNode = new GenericObjectNode(this, classifier,
  classifierEditor, "Current Classifier");
   
    m_TreeModel = new DefaultTreeModel(rootNode);
View Full Code Here

        jBtOptions.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent ae) {
            //m_BayesNet = new EditableBayesNet();
            try {
              GenericObjectEditor.registerEditors();
              GenericObjectEditor ce = new GenericObjectEditor(true);
              ce.setClassType(weka.classifiers.Classifier.class);
              ce.setValue(m_BayesNet);

              PropertyDialog pd = new PropertyDialog(ce, 100, 100);
              pd.addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                  PropertyEditor pe = ((PropertyDialog) e.getSource()).getEditor();
View Full Code Here

   * Pops up generic object editor with list of conversion filters
   *
   * @param f the File
   */
  private void converterQuery(final File f) {
    final GenericObjectEditor convEd = new GenericObjectEditor(true);

    try {
      convEd.setClassType(weka.core.converters.Loader.class);
      convEd.setValue(new weka.core.converters.CSVLoader());
      ((GenericObjectEditor.GOEPanel)convEd.getCustomEditor())
  .addOkListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        tryConverter((Loader)convEd.getValue(), f);
      }
    });
    } catch (Exception ex) {
    }

View Full Code Here

    //construct a visualizer
    //construct a tree displayer and feed both then do nothing
    //note that I will display at the bottom of each split how many
    //fall into each catagory
   
    m_classifiers = new GenericObjectEditor(true);
    m_classifiers.setClassType(Classifier.class);
    m_classifiers.setValue(new weka.classifiers.rules.ZeroR());
   
    ((GenericObjectEditor.GOEPanel)m_classifiers.getCustomEditor())
      .addOkListener(new ActionListener() {
View Full Code Here

    panel2.add(m_RemoveFilterNameCheckBox);
    panel.add(panel2);

    // Advanced setup
    m_ResultMatrix       = ExperimenterDefaults.getOutputFormat();
    m_ResultMatrixEditor = new GenericObjectEditor(true);
    m_ResultMatrixEditor.setClassType(ResultMatrix.class);
    m_ResultMatrixEditor.setValue(m_ResultMatrix);
    m_ResultMatrixEditor.addPropertyChangeListener(new PropertyChangeListener() {
  public void propertyChange(PropertyChangeEvent e) {
    // user selected different class?
View Full Code Here

        jBtOptions.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent ae) {
            //m_BayesNet = new EditableBayesNet();
            try {
              GenericObjectEditor.registerEditors();
              GenericObjectEditor ce = new GenericObjectEditor(true);
              ce.setClassType(weka.classifiers.Classifier.class);
              ce.setValue(m_BayesNet);

              PropertyDialog pd;
              if (PropertyDialog.getParentDialog(GUI.this) != null)
                pd = new PropertyDialog(PropertyDialog.getParentDialog(GUI.this), ce, 100, 100);
              else
View Full Code Here

TOP

Related Classes of weka.gui.GenericObjectEditor$GOEPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.