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.
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.
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.
18
* VisualizePlugin.java
19
* Copyright (C) 2005 University of Waikato, Hamilton, New Zealand
20
* Written by Jeffery Grajkowski of the AICML
24
package weka.gui.visualize.plugins;
26
import weka.core.FastVector;
27
import weka.core.Attribute;
28
import javax.swing.JMenuItem;
31
* Interface implemented by classes loaded dynamically to
32
* visualize classifier results in the explorer.
34
* @author Jeffery Grajkowski (grajkows@cs.ualberta.ca)
35
* @version $Revision: 1.1 $
37
public interface VisualizePlugin {
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
46
* @see NoClassDefFoundError
47
* @see IncompatibleClassChangeError
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
54
public JMenuItem getVisualizeMenuItem(FastVector preds, Attribute classAtt);
57
* Get the minimum version of Weka, inclusive, the class
58
* is designed to work with. eg: <code>3.5.0</code>
60
public String getMinVersion();
63
* Get the maximum version of Weka, exclusive, the class
64
* is designed to work with. eg: <code>3.6.0</code>
66
public String getMaxVersion();
69
* Get the specific version of Weka the class is designed for.
70
* eg: <code>3.5.1</code>
72
public String getDesignVersion();