source: src/main/java/weka/gui/visualize/plugins/VisualizePlugin.java @ 4

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

Import di weka.

File size: 2.4 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 * VisualizePlugin.java
19 * Copyright (C) 2005 University of Waikato, Hamilton, New Zealand
20 * Written by Jeffery Grajkowski of the AICML
21 *
22 */
23
24package weka.gui.visualize.plugins;
25
26import weka.core.FastVector;
27import weka.core.Attribute;
28import javax.swing.JMenuItem;
29
30/**
31 * Interface implemented by classes loaded dynamically to
32 * visualize classifier results in the explorer.
33 *
34 * @author Jeffery Grajkowski (grajkows@cs.ualberta.ca)
35 * @version $Revision: 1.1 $
36 */
37public interface VisualizePlugin {
38
39  /**
40   * Get a JMenu or JMenuItem which contain action listeners
41   * that perform the visualization, using some but not
42   * necessarily all of the data.  Exceptions thrown because of
43   * changes in Weka since compilation need to be caught by
44   * the implementer.
45   *
46   * @see NoClassDefFoundError
47   * @see IncompatibleClassChangeError
48   *
49   * @param  preds predictions
50   * @param  classAtt class attribute
51   * @return menuitem for opening visualization(s), or null
52   *         to indicate no visualization is applicable for the input
53   */
54  public JMenuItem getVisualizeMenuItem(FastVector preds, Attribute classAtt);
55
56  /**
57   * Get the minimum version of Weka, inclusive, the class
58   * is designed to work with.  eg: <code>3.5.0</code>
59   */
60  public String getMinVersion();
61
62  /**
63   * Get the maximum version of Weka, exclusive, the class
64   * is designed to work with.  eg: <code>3.6.0</code>
65   */
66  public String getMaxVersion();
67
68  /**
69   * Get the specific version of Weka the class is designed for.
70   * eg: <code>3.5.1</code>
71   */
72  public String getDesignVersion();
73}
74
75
76
Note: See TracBrowser for help on using the repository browser.