Package weka.gui.visualize.plugins

Examples of weka.gui.visualize.plugins.TreeVisualizePlugin


      // trees
      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(grph, 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)
        pluginMenuItem.setText(pluginMenuItem.getText() + " (plugin outdated)");
      visPlugins.add(pluginMenuItem);
    }
  }
  catch (Exception e) {
View Full Code Here


      if (((Drawable) temp_classifier).graphType() == Drawable.TREE) {
  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(grph, 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)
    pluginMenuItem.setText(pluginMenuItem.getText() + " (plugin outdated)"); */
        visPlugins.add(pluginMenuItem);
      }
    }
    catch (Exception e) {
      //e.printStackTrace();
    }
  }
      }
      // graphs
      else {
  pluginsVector = GenericObjectEditor.getClassnames(GraphVisualizePlugin.class.getName());
  for (int i = 0; i < pluginsVector.size(); i++) {
    String className = (String) (pluginsVector.elementAt(i));
    try {
      GraphVisualizePlugin plugin = (GraphVisualizePlugin) Class.forName(className).newInstance();
      if (plugin == null)
        continue;
      availablePlugins = true;
      JMenuItem pluginMenuItem = plugin.getVisualizeMenuItem(grph, 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

          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

      // trees
      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(grph, 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)
        pluginMenuItem.setText(pluginMenuItem.getText() + " (plugin outdated)");
      visPlugins.add(pluginMenuItem);
    }
  }
  catch (Exception e) {
View Full Code Here

      if (((Drawable) temp_classifier).graphType() == Drawable.TREE) {
  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(grph, 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)
    pluginMenuItem.setText(pluginMenuItem.getText() + " (plugin outdated)"); */
        visPlugins.add(pluginMenuItem);
      }
    }
    catch (Exception e) {
      //e.printStackTrace();
    }
  }
      }
      // graphs
      else {
  pluginsVector = GenericObjectEditor.getClassnames(GraphVisualizePlugin.class.getName());
  for (int i = 0; i < pluginsVector.size(); i++) {
    String className = (String) (pluginsVector.elementAt(i));
    try {
      GraphVisualizePlugin plugin = (GraphVisualizePlugin) Class.forName(className).newInstance();
      if (plugin == null)
        continue;
      availablePlugins = true;
      JMenuItem pluginMenuItem = plugin.getVisualizeMenuItem(grph, 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.TreeVisualizePlugin

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.