Class 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.String LABEL
      the constant for "label".
      static java.lang.String TREE
      the constant for "tree".
      static java.lang.String TREE_EDGES
      the constant for "tree.edges".
      static java.lang.String TREE_NODES
      the constant for "tree.nodes".
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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)  
      java.lang.String getDesignVersion()
      Get the specific version of Weka the class is designed for.
      java.lang.String getMaxVersion()
      Get the maximum version of Weka, exclusive, the class is designed to work with.
      java.lang.String getMinVersion()
      Get the minimum version of Weka, inclusive, the class is designed to work with.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • NewPrefuseTreeVis

        public NewPrefuseTreeVis()
    • 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:
        getMinVersion in interface weka.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:
        getMaxVersion in interface weka.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:
        getDesignVersion in interface weka.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:
        getVisualizeMenuItem in interface weka.gui.visualize.plugins.TreeVisualizePlugin
        Parameters:
        dotty - the tree in dotty format
        name - 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