Class NewPrefuseTreeVis
- java.lang.Object
-
- org.processmining.prediction.newPrefuseTreeVis.NewPrefuseTreeVis
-
- All Implemented Interfaces:
java.io.Serializable,weka.gui.visualize.plugins.TreeVisualizePlugin
public class NewPrefuseTreeVis extends java.lang.Object implements java.io.Serializable, weka.gui.visualize.plugins.TreeVisualizePlugin- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLABELthe constant for "label".static java.lang.StringTREEthe constant for "tree".static java.lang.StringTREE_EDGESthe constant for "tree.edges".static java.lang.StringTREE_NODESthe constant for "tree.nodes".
-
Constructor Summary
Constructors Constructor Description NewPrefuseTreeVis()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TreePaneldisplay(java.lang.String dotty, java.lang.String name, java.util.Map<java.lang.String,java.awt.Color> variableColor, java.util.HashMap<java.lang.String,PredictionType> predictionTypes, PredictionType classType, VisConfigurables config)java.lang.StringgetDesignVersion()Get the specific version of Weka the class is designed for.java.lang.StringgetMaxVersion()Get the maximum version of Weka, exclusive, the class is designed to work with.java.lang.StringgetMinVersion()Get the minimum version of Weka, inclusive, the class is designed to work with.javax.swing.JMenuItemgetVisualizeMenuItem(java.lang.String dotty, java.lang.String name)Get a JMenu or JMenuItem which contain action listeners that perform the visualization of the tree in GraphViz's dotty format.
-
-
-
Field Detail
-
TREE
public static final java.lang.String TREE
the constant for "tree".- See Also:
- Constant Field Values
-
TREE_NODES
public static final java.lang.String TREE_NODES
the constant for "tree.nodes".- See Also:
- Constant Field Values
-
TREE_EDGES
public static final java.lang.String TREE_EDGES
the constant for "tree.edges".- See Also:
- Constant Field Values
-
LABEL
public static final java.lang.String LABEL
the constant for "label".- See Also:
- Constant Field Values
-
-
Method Detail
-
display
public TreePanel display(java.lang.String dotty, java.lang.String name, java.util.Map<java.lang.String,java.awt.Color> variableColor, java.util.HashMap<java.lang.String,PredictionType> predictionTypes, PredictionType classType, VisConfigurables config)
-
getMinVersion
public java.lang.String getMinVersion()
Get the minimum version of Weka, inclusive, the class is designed to work with. eg:3.5.0- Specified by:
getMinVersionin interfaceweka.gui.visualize.plugins.TreeVisualizePlugin- Returns:
- the minimum version
-
getMaxVersion
public java.lang.String getMaxVersion()
Get the maximum version of Weka, exclusive, the class is designed to work with. eg:3.6.0- Specified by:
getMaxVersionin interfaceweka.gui.visualize.plugins.TreeVisualizePlugin- Returns:
- the maximum version
-
getDesignVersion
public java.lang.String getDesignVersion()
Get the specific version of Weka the class is designed for. eg:3.5.1- Specified by:
getDesignVersionin interfaceweka.gui.visualize.plugins.TreeVisualizePlugin- Returns:
- the version the plugin was designed for
-
getVisualizeMenuItem
public javax.swing.JMenuItem getVisualizeMenuItem(java.lang.String dotty, java.lang.String name)Get a JMenu or JMenuItem which contain action listeners that perform the visualization of the tree in GraphViz's dotty format. Exceptions thrown because of changes in Weka since compilation need to be caught by the implementer.- Specified by:
getVisualizeMenuItemin interfaceweka.gui.visualize.plugins.TreeVisualizePlugin- Parameters:
dotty- the tree in dotty 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
-
-