final URLConnection url_connection = url.openConnection();
[jalview.git] / forester / java / src / org / forester / archaeopteryx / Configuration.java
index d933682..1914d76 100644 (file)
@@ -93,15 +93,15 @@ public final class Configuration {
             { "Seq Annotations", "nodisplay", "no" }, { "Confidence Values", "display", "?" },
             { "Node Events", "display", "?" }, { "Colorize by Taxonomy", "display", "no" },
             { "Visual Styles/Branch Colors", "display", "no" }, { "Branch Widths", "display", "no" },
-            { "Show Custom Nodes", "display", "yes" }, { "Protein Domains", "nodisplay", "no" },
-            { "Binary Characters", "nodisplay", "no" }, { "Binary Char Counts", "nodisplay", "no" },
-            { "Seq Name", "display", "yes" }, { "Seq Accession", "display", "no" },
-            { "Show Internal Data", "display", "yes" }, { "Dyna Hide", "display", "yes" },
-            { "Taxonomy Scientific", "display", "yes" }, { "Taxonomy Common", "display", "no" },
-            { "Colorize by Annotation", "nodisplay", "no" }, { "Seq Symbol", "display", "yes" },
-            { "Rollover", "display", "yes" }, { "Relation Confidence", "nodisplay", "no" },
-            { "Vector Data", "nodisplay", "no" }, { "Taxonomy Images", "display", "no" },
-            { "Properties", "nodisplay", "no" }, { "Gene Name", "display", "yes" }                };
+            { "Protein Domains", "nodisplay", "no" }, { "Binary Characters", "nodisplay", "no" },
+            { "Binary Char Counts", "nodisplay", "no" }, { "Seq Name", "display", "yes" },
+            { "Seq Accession", "display", "no" }, { "Show Internal Data", "display", "yes" },
+            { "Dyna Hide", "display", "yes" }, { "Taxonomy Scientific", "display", "yes" },
+            { "Taxonomy Common", "display", "no" }, { "Colorize by Annotation", "nodisplay", "no" },
+            { "Seq Symbol", "display", "yes" }, { "Rollover", "display", "yes" },
+            { "Relation Confidence", "nodisplay", "no" }, { "Vector Data", "nodisplay", "no" },
+            { "Taxonomy Images", "display", "no" }, { "Properties", "nodisplay", "no" },
+            { "Gene Name", "display", "yes" }                                                     };
     final static int                        display_as_phylogram                                   = 0;
     final static int                        show_node_names                                        = 1;
     final static int                        show_tax_code                                          = 2;
@@ -111,24 +111,23 @@ public final class Configuration {
     final static int                        color_according_to_species                             = 6;
     final static int                        use_style                                              = 7;
     final static int                        width_branches                                         = 8;
-    final static int                        show_custom_node_shapes                                = 9;
-    final static int                        show_domain_architectures                              = 10;
-    final static int                        show_binary_characters                                 = 11;
-    final static int                        show_binary_character_counts                           = 12;
-    final static int                        show_seq_names                                         = 13;
-    final static int                        show_sequence_acc                                      = 14;
-    final static int                        display_internal_data                                  = 15;
-    final static int                        dynamically_hide_data                                  = 16;
-    final static int                        show_taxonomy_scientific_names                         = 17;
-    final static int                        show_taxonomy_common_names                             = 18;
-    final static int                        color_according_to_annotation                          = 19;
-    final static int                        show_seq_symbols                                       = 20;
-    final static int                        node_data_popup                                        = 21;
-    final static int                        show_relation_confidence                               = 22;
-    final static int                        show_vector_data                                       = 23;
-    final static int                        show_taxonomy_images                                   = 24;
-    final static int                        show_properties                                        = 25;
-    final static int                        show_gene_names                                        = 26;
+    final static int                        show_domain_architectures                              = 9;
+    final static int                        show_binary_characters                                 = 10;
+    final static int                        show_binary_character_counts                           = 11;
+    final static int                        show_seq_names                                         = 12;
+    final static int                        show_sequence_acc                                      = 13;
+    final static int                        display_internal_data                                  = 14;
+    final static int                        dynamically_hide_data                                  = 15;
+    final static int                        show_taxonomy_scientific_names                         = 16;
+    final static int                        show_taxonomy_common_names                             = 17;
+    final static int                        color_according_to_annotation                          = 18;
+    final static int                        show_seq_symbols                                       = 19;
+    final static int                        node_data_popup                                        = 20;
+    final static int                        show_relation_confidence                               = 21;
+    final static int                        show_vector_data                                       = 22;
+    final static int                        show_taxonomy_images                                   = 23;
+    final static int                        show_properties                                        = 24;
+    final static int                        show_gene_names                                        = 25;
     static final String                     VALIDATE_AGAINST_PHYLOXML_XSD_SCHEMA                   = "validate_against_phyloxml_xsd_schema";
     // ----------------
     // Function colors
@@ -401,6 +400,10 @@ public final class Configuration {
         getDisplayColors().put( key, color );
     }
 
+    public void setAddTaxonomyImagesCB( final boolean b ) {
+        display_options[ show_taxonomy_images ][ 1 ] = b ? "yes" : "no";
+    }
+
     public void setAbbreviateScientificTaxonNames( final boolean abbreviate_scientific_names ) {
         _abbreviate_scientific_names = abbreviate_scientific_names;
     }
@@ -441,6 +444,10 @@ public final class Configuration {
         display_options[ display_as_phylogram ][ 2 ] = b ? "yes" : "no";
     }
 
+    public void setUseStyle( final boolean b ) {
+        display_options[ use_style ][ 2 ] = b ? "yes" : "no";
+    }
+
     public void setDisplayColors( final SortedMap<String, Color> display_colors ) {
         _display_colors = display_colors;
     }
@@ -465,6 +472,10 @@ public final class Configuration {
         display_options[ show_seq_names ][ 2 ] = b ? "yes" : "no";
     }
 
+    public void setDisplayGeneNames( final boolean b ) {
+        display_options[ show_gene_names ][ 2 ] = b ? "yes" : "no";
+    }
+
     public void setDisplaySequenceRelations( final boolean display_sequence_relations ) {
         _display_sequence_relations = display_sequence_relations;
     }
@@ -1586,9 +1597,6 @@ public final class Configuration {
             else if ( key.equals( "show_relation_confidence" ) ) {
                 key_index = Configuration.show_relation_confidence;
             }
-            else if ( key.equals( "show_custom_node_shapes" ) ) {
-                key_index = Configuration.show_custom_node_shapes;
-            }
             // If we've found the key, set the values
             if ( key_index >= 0 ) {
                 display_options[ key_index ][ 1 ] = ( String ) st.nextElement();