source: branches/MetisMQI/src/main/java/weka/gui/beans/IncrementalClassifierEvaluatorBeanInfo.java

Last change on this file was 29, checked in by gnappo, 14 years ago

Taggata versione per la demo e aggiunto branch.

File size: 2.7 KB
Line 
1/*
2 *    This program is free software; you can redistribute it and/or modify
3 *    it under the terms of the GNU General Public License as published by
4 *    the Free Software Foundation; either version 2 of the License, or
5 *    (at your option) any later version.
6 *
7 *    This program is distributed in the hope that it will be useful,
8 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
9 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 *    GNU General Public License for more details.
11 *
12 *    You should have received a copy of the GNU General Public License
13 *    along with this program; if not, write to the Free Software
14 *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15 */
16
17/*
18 *    IncrementalClassifierEvaluatorBeanInfo.java
19 *    Copyright (C) 2002 University of Waikato, Hamilton, New Zealand
20 *
21 */
22
23package weka.gui.beans;
24
25import java.beans.*;
26
27/**
28 * Bean info class for the incremental classifier evaluator bean
29 *
30 * @author <a href="mailto:mhall@cs.waikato.ac.nz">Mark Hall</a>
31 * @version $Revision: 1.4 $
32 */
33public class IncrementalClassifierEvaluatorBeanInfo extends SimpleBeanInfo {
34 
35  /**
36   * Return the property descriptors for this bean
37   *
38   * @return a <code>PropertyDescriptor[]</code> value
39   */
40  public PropertyDescriptor[] getPropertyDescriptors() {
41    try {
42      PropertyDescriptor p1;
43      PropertyDescriptor p2;
44      p1 = new PropertyDescriptor("statusFrequency", IncrementalClassifierEvaluator.class);
45      p2 = new PropertyDescriptor("outputPerClassInfoRetrievalStats", 
46                                  IncrementalClassifierEvaluator.class);
47      PropertyDescriptor [] pds = { p1, p2 };
48      return pds;
49    } catch (Exception ex) {
50      ex.printStackTrace();
51    }
52    return null;
53  }
54
55  /**
56   * Get the event set descriptors for this bean
57   *
58   * @return an <code>EventSetDescriptor[]</code> value
59   */
60  public EventSetDescriptor [] getEventSetDescriptors() {
61    try {
62      EventSetDescriptor [] esds = { 
63        new EventSetDescriptor(IncrementalClassifierEvaluator.class, 
64                               "chart", 
65                               ChartListener.class, 
66                               "acceptDataPoint"),
67        new EventSetDescriptor(IncrementalClassifierEvaluator.class,
68                               "text",
69                               TextListener.class,
70                               "acceptText") 
71      };
72      return esds;
73    } catch (Exception ex) {
74      ex.printStackTrace();
75    }
76    return null;
77  }
78
79  /**
80   * Return the bean descriptor for this bean
81   *
82   * @return a <code>BeanDescriptor</code> value
83   */
84  public BeanDescriptor getBeanDescriptor() {
85    return new BeanDescriptor(weka.gui.beans.IncrementalClassifierEvaluator.class,
86                              IncrementalClassifierEvaluatorCustomizer.class);
87  }
88}
Note: See TracBrowser for help on using the repository browser.