source: src/main/java/weka/gui/visualize/plugins/TreeVisualizePlugin.java @ 18

Last change on this file since 18 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 * TreeVisualizePlugin.java
19 * Copyright (C) 2009 University of Waikato, Hamilton, New Zealand
20 *
21 */
22
23package weka.gui.visualize.plugins;
24
25import javax.swing.JMenuItem;
26
27/**
28 * Interface implemented by classes loaded dynamically to
29 * visualize classifier results in the explorer.
30 *
31 * @author FracPete (fracpete at waikato dot ac dot nz)
32 * @version $Revision: 4996 $
33 */
34public interface TreeVisualizePlugin {
35
36  /**
37   * Get a JMenu or JMenuItem which contain action listeners
38   * that perform the visualization of the tree in GraphViz's dotty format. 
39   * Exceptions thrown because of changes in Weka since compilation need to
40   * be caught by the implementer.
41   *
42   * @see NoClassDefFoundError
43   * @see IncompatibleClassChangeError
44   *
45   * @param dotty       the tree in dotty format
46   * @param name        the name of the item (in the Explorer's history list)
47   * @return menuitem   for opening visualization(s), or null
48   *                    to indicate no visualization is applicable for the input
49   */
50  public JMenuItem getVisualizeMenuItem(String dotty, String name);
51
52  /**
53   * Get the minimum version of Weka, inclusive, the class
54   * is designed to work with.  eg: <code>3.5.0</code>
55   *
56   * @return            the minimum version
57   */
58  public String getMinVersion();
59
60  /**
61   * Get the maximum version of Weka, exclusive, the class
62   * is designed to work with.  eg: <code>3.6.0</code>
63   *
64   * @return            the maximum version
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   * @return            the version the plugin was designed for
73   */
74  public String getDesignVersion();
75}
76
77
78
Note: See TracBrowser for help on using the repository browser.