Package weka.gui.visualize.plugins
Class SaveGraph
- java.lang.Object
-
- weka.gui.visualize.plugins.SaveGraph
-
- All Implemented Interfaces:
weka.gui.visualize.plugins.GraphVisualizePlugin
public class SaveGraph extends Object implements weka.gui.visualize.plugins.GraphVisualizePlugin
Allows user to save graph (eg generated by BayesNet) as file.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description SaveGraph()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDesignVersion()
Get the specific version of Weka the class is designed for.String
getMaxVersion()
Get the maximum version of Weka, exclusive, the class is designed to work with.String
getMinVersion()
Get the minimum version of Weka, inclusive, the class is designed to work with.JMenuItem
getVisualizeMenuItem(String bif, String name)
Get a JMenu or JMenuItem which contain action listeners that perform the visualization of the graph in XML BIF format.
-
-
-
Method Detail
-
getVisualizeMenuItem
public JMenuItem getVisualizeMenuItem(String bif, String name)
Get a JMenu or JMenuItem which contain action listeners that perform the visualization of the graph in XML BIF format. Exceptions thrown because of changes in Weka since compilation need to be caught by the implementer.- Specified by:
getVisualizeMenuItem
in interfaceweka.gui.visualize.plugins.GraphVisualizePlugin
- Parameters:
bif
- the graph in XML BIF formatname
- the name of the item (in the Explorer's history list)- Returns:
- menuitem for opening visualization(s), or null to indicate no visualization is applicable for the input
- See Also:
NoClassDefFoundError
,IncompatibleClassChangeError
-
getMinVersion
public String getMinVersion()
Get the minimum version of Weka, inclusive, the class is designed to work with. eg:3.5.0
- Specified by:
getMinVersion
in interfaceweka.gui.visualize.plugins.GraphVisualizePlugin
- Returns:
- the minimum version
-
getMaxVersion
public String getMaxVersion()
Get the maximum version of Weka, exclusive, the class is designed to work with. eg:3.6.0
- Specified by:
getMaxVersion
in interfaceweka.gui.visualize.plugins.GraphVisualizePlugin
- Returns:
- the maximum version
-
getDesignVersion
public String getDesignVersion()
Get the specific version of Weka the class is designed for. eg:3.5.1
- Specified by:
getDesignVersion
in interfaceweka.gui.visualize.plugins.GraphVisualizePlugin
- Returns:
- the version the plugin was designed for
-
-