Package edu.stanford.genetics.treeview

Examples of edu.stanford.genetics.treeview.ConfigNode


    }
    PluginManager.getPluginManager().pluginAssignConfigNodes(getGlobalConfig().getNode("Plugins"));
  }
 
  private void dealWithRegistration() {
    ConfigNode node = getGlobalConfig().getNode("Registration");
    if (node != null) {
      try {
        edu.stanford.genetics.treeview.reg.RegEngine.verify(node);
        getGlobalConfig().store();
      } catch (Exception e) {
View Full Code Here


    /**
     * returns String [] of preset names for display
     */
    public String[] getPresetNames()
    {
        ConfigNode aconfigNode[] = root.fetch("KaryoColorSet");
        String astring[] = new String[aconfigNode.length];
    KaryoColorSet temp = new KaryoColorSet("TempColorSet");
    for (int i = 0; i < aconfigNode.length; i++) {
      temp.bindConfig(aconfigNode[i]);
            astring[i] = temp.getName();
View Full Code Here

            astring[i] = temp.getName();
    }
    return astring;
    }
  public int getNumPresets() {
        ConfigNode aconfigNode[] = root.fetch("KaryoColorSet");
    return aconfigNode.length;
  }
View Full Code Here

  public int getNumPresets() {
        ConfigNode aconfigNode[] = root.fetch("KaryoColorSet");
    return aconfigNode.length;
  }
  public String toString() {
        ConfigNode aconfigNode[] = root.fetch("KaryoColorSet");
    KaryoColorSet tmp = new KaryoColorSet();
    String ret = "Default is " + getPresetNames() [getDefaultIndex()] + " index " + getDefaultIndex() + "\n";
    for (int index = 0; index < aconfigNode.length; index++) {
      tmp.bindConfig(aconfigNode[index]);
      ret += tmp.toString() +"\n";
View Full Code Here

    /**
     * returns the color set for the ith preset
     * or null, if any exceptions are thrown.
     */
    public KaryoColorSet getColorSet(int index) {
        ConfigNode aconfigNode[] = root.fetch("KaryoColorSet");
    try {
      KaryoColorSet ret = new KaryoColorSet();
      ret.bindConfig(aconfigNode[index]);
      return ret;
    } catch (Exception e) {
View Full Code Here

    /**
     * returns the color set for this name
     * or null, if name not found in kids
     */
   public KaryoColorSet getColorSet(String name) {
     ConfigNode aconfigNode[] = root.fetch("KaryoColorSet");
     KaryoColorSet ret = new KaryoColorSet();
     for (int i = 0; i < aconfigNode.length; i++) {
     ret.bindConfig(aconfigNode[i]);
     if (name.equals(ret.getName()))  {
       return ret;
View Full Code Here

    }

    }

  public void removeColorSet(int i) {
     ConfigNode aconfigNode[] = root.fetch("KaryoColorSet");
     root.remove(aconfigNode[i]);
  }
View Full Code Here

    /**
     * returns String [] of preset names for display
     */
    public String[] getPresetNames()
    {
        ConfigNode aconfigNode[] = root.fetch("ScatterColorSet");
        String astring[] = new String[aconfigNode.length];
    ScatterColorSet temp = new ScatterColorSet("TempColorSet");
    for (int i = 0; i < aconfigNode.length; i++) {
      temp.bindConfig(aconfigNode[i]);
            astring[i] = temp.getName();
View Full Code Here

            astring[i] = temp.getName();
    }
    return astring;
    }
  public int getNumPresets() {
        ConfigNode aconfigNode[] = root.fetch("ScatterColorSet");
    return aconfigNode.length;
  }
View Full Code Here

  public int getNumPresets() {
        ConfigNode aconfigNode[] = root.fetch("ScatterColorSet");
    return aconfigNode.length;
  }
  public String toString() {
        ConfigNode aconfigNode[] = root.fetch("ScatterColorSet");
    ScatterColorSet tmp = new ScatterColorSet();
    String ret = "Default is " + getPresetNames() [getDefaultIndex()] + " index " + getDefaultIndex() + "\n";
    for (int index = 0; index < aconfigNode.length; index++) {
      tmp.bindConfig(aconfigNode[index]);
      ret += tmp.toString() +"\n";
View Full Code Here

TOP

Related Classes of edu.stanford.genetics.treeview.ConfigNode

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.