Package weka.gui.visualize.plugins

Examples of weka.gui.visualize.plugins.AssociationRuleVisualizePlugin


          Vector pluginsVector =
            GenericObjectEditor.getClassnames(AssociationRuleVisualizePlugin.class.getName());
          for (int i = 0; i < pluginsVector.size(); i++) {
            String className = (String) (pluginsVector.elementAt(i));
            try {
              AssociationRuleVisualizePlugin plugin =
                (AssociationRuleVisualizePlugin)Class.forName(className).newInstance();
              if (plugin == null) {
                continue;
              }
              availablePlugins = true;
              JMenuItem pluginMenuItem = plugin.getVisualizeMenuItem((AssociationRules)o, selectedName);
              if (pluginMenuItem != null) {
                visPlugins.add(pluginMenuItem);
              }
            } catch (Exception ex) {
              //ex.printStackTrace();
            }
          }
        } else if (o instanceof String) {
          Vector pluginsVector =
            GenericObjectEditor.getClassnames(TreeVisualizePlugin.class.getName());
          for (int i = 0; i < pluginsVector.size(); i++) {
            String className = (String) (pluginsVector.elementAt(i));
            try {
              TreeVisualizePlugin plugin = (TreeVisualizePlugin) Class.forName(className).newInstance();
              if (plugin == null)
                continue;
              availablePlugins = true;
              JMenuItem pluginMenuItem = plugin.getVisualizeMenuItem((String)o, selectedName);
              // Version version = new Version();
              if (pluginMenuItem != null) {
                /*  if (version.compareTo(plugin.getMinVersion()) < 0)
              pluginMenuItem.setText(pluginMenuItem.getText() + " (weka outdated)");
            if (version.compareTo(plugin.getMaxVersion()) >= 0)
View Full Code Here

TOP

Related Classes of weka.gui.visualize.plugins.AssociationRuleVisualizePlugin

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.