make PH, aPH, CL selection
[jalview.git] / forester / java / src / org / forester / archaeopteryx / Options.java
1 // $Id:
2 // FORESTER -- software libraries and applications
3 // for evolutionary biology research and applications.
4 //
5 // Copyright (C) 2009 Christian M. Zmasek
6 // Copyright (C) 2009 Burnham Institute for Medical Research
7 // All rights reserved
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the GNU Lesser General Public
11 // License as published by the Free Software Foundation; either
12 // version 2.1 of the License, or (at your option) any later version.
13 //
14 // This library is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 // Lesser General Public License for more details.
18 //
19 // You should have received a copy of the GNU Lesser General Public
20 // License along with this library; if not, write to the Free Software
21 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 //
23 // Contact: phylosoft @ gmail . com
24 // WWW: https://sites.google.com/site/cmzmasek/home/software/forester
25
26 package org.forester.archaeopteryx;
27
28 import java.awt.Font;
29
30 import org.forester.io.parsers.nhx.NHXParser.TAXONOMY_EXTRACTION;
31 import org.forester.phylogeny.PhylogenyNode.NH_CONVERSION_SUPPORT_VALUE_STYLE;
32 import org.forester.phylogeny.data.NodeDataField;
33 import org.forester.phylogeny.data.NodeVisualData;
34 import org.forester.phylogeny.data.NodeVisualData.NodeFill;
35 import org.forester.phylogeny.data.NodeVisualData.NodeShape;
36 import org.forester.util.ForesterUtil;
37
38 /*
39  * This is to hold changeable options.
40  */
41 final public class Options {
42
43     public static enum CLADOGRAM_TYPE {
44         LINED_UP, NON_LINED_UP;
45     }
46
47     public static enum NODE_LABEL_DIRECTION {
48         HORIZONTAL, RADIAL;
49     }
50
51     public static enum PHYLOGENY_GRAPHICS_TYPE {
52         CIRCULAR, CONVEX, CURVED, EURO_STYLE, RECTANGULAR, ROUNDED, TRIANGULAR, UNROOTED;
53     }
54
55     static enum OVERVIEW_PLACEMENT_TYPE {
56         LOWER_LEFT( "lower left" ),
57         LOWER_RIGHT( "lower right" ),
58         UPPER_LEFT( "upper left" ),
59         UPPER_RIGHT( "upper right" );
60
61         private final String _name;
62
63         private OVERVIEW_PLACEMENT_TYPE( final String name ) {
64             _name = name;
65         }
66
67         @Override
68         public String toString() {
69             return _name;
70         }
71
72         public String toTag() {
73             return toString().replaceAll( " ", "_" );
74         }
75     }
76     static final double                       MIN_CONFIDENCE_DEFAULT = 0.0;
77     private boolean                           _abbreviate_scientific_names;
78     private boolean                           _allow_errors_in_distance_to_parent;
79     private boolean                           _antialias_print;
80     private boolean                           _antialias_screen;
81     private boolean                           _background_color_gradient;
82     private Font                              _base_font;
83     private CLADOGRAM_TYPE                    _cladogram_type;
84     private boolean                           _color_by_taxonomic_group;
85     private boolean                           _color_labels_same_as_parent_branch;
86     private NodeVisualData.NodeFill           _default_node_fill;
87     private NodeVisualData.NodeShape          _default_node_shape;
88     private short                             _default_node_shape_size;
89     private boolean                           _editable;
90     private NodeDataField                     _ext_desc_data_to_return;
91     private final boolean                     _graphics_export_using_actual_size = true;
92     private boolean                           _graphics_export_visible_only;
93     private boolean                           _internal_number_are_confidence_for_nh_parsing;
94     private boolean                           _inverse_search_result;
95     private boolean                           _match_whole_terms_only;
96     private boolean                           _search_with_regex;
97     private double                            _min_confidence_value;
98     private NH_CONVERSION_SUPPORT_VALUE_STYLE _nh_conversion_support_value_style;
99     private boolean                           _nh_parsing_replace_underscores;
100     private NODE_LABEL_DIRECTION              _node_label_direction;
101     private short                             _number_of_digits_after_comma_for_branch_length_values;
102     private short                             _number_of_digits_after_comma_for_confidence_values;
103     private OVERVIEW_PLACEMENT_TYPE           _ov_placement;
104     private PHYLOGENY_GRAPHICS_TYPE           _phylogeny_graphics_type;
105     private boolean                           _print_black_and_white;
106     private float                             _print_line_width;
107     private final boolean                     _print_using_actual_size = true;
108     private double                            _scale_bar_length;
109     private boolean                           _search_case_sensitive;
110     private boolean                           _show_annotation_ref_source;
111     private boolean                           _show_confidence_stddev;
112     private boolean                           _show_default_node_shapes_for_marked_nodes;
113     private boolean                           _show_default_node_shapes_external;
114     private boolean                           _show_default_node_shapes_internal;
115     private boolean                           _show_domain_labels;
116     private boolean                           _show_overview;
117     private boolean                           _show_scale;
118     private TAXONOMY_EXTRACTION               _taxonomy_extraction;
119     private boolean                           _line_up_renderable_node_data;
120     private boolean                           _right_align_domains;
121     private boolean                           _color_all_found_nodes_when_coloring_subtree;
122     private boolean                           _parse_beast_style_extended_nexus_tags;
123     private boolean                           _collapsed_with_average_height;
124     private boolean                           _show_abbreviated_labels_for_collapsed_nodes;
125     
126     private Options() {
127         init();
128     }
129
130     public NodeDataField getExtDescNodeDataToReturn() {
131         return _ext_desc_data_to_return;
132     }
133
134     public boolean isAllowErrorsInDistanceToParent() {
135         return _allow_errors_in_distance_to_parent;
136     }
137
138     final public boolean isLineUpRendarableNodeData() {
139         return _line_up_renderable_node_data;
140     }
141
142     final public boolean isRightLineUpDomains() {
143         return _right_align_domains;
144     }
145
146     public final boolean isShowAnnotationRefSource() {
147         return _show_annotation_ref_source;
148     }
149
150     public final boolean isShowDomainLabels() {
151         return _show_domain_labels;
152     }
153
154     public final void setAllowErrorsInDistanceToParent( final boolean allow_errors_in_distance_to_parent ) {
155         _allow_errors_in_distance_to_parent = allow_errors_in_distance_to_parent;
156     }
157
158     public void setBackgroundColorGradient( final boolean background_color_gradient ) {
159         _background_color_gradient = background_color_gradient;
160     }
161
162     public void setColorLabelsSameAsParentBranch( final boolean color_labels_same_as_parent_branch ) {
163         _color_labels_same_as_parent_branch = color_labels_same_as_parent_branch;
164     }
165
166     public void setExtDescNodeDataToReturn( final NodeDataField ext_desc_data_to_return ) {
167         _ext_desc_data_to_return = ext_desc_data_to_return;
168     }
169
170     final public void setLineUpRendarableNodeData( final boolean line_up_renderable_node_data ) {
171         _line_up_renderable_node_data = line_up_renderable_node_data;
172     }
173
174     final public void setRightLineUpDomains( final boolean right_align_domains ) {
175         _right_align_domains = right_align_domains;
176     }
177
178     public final void setShowAnnotationRefSource( final boolean show_annotation_ref_source ) {
179         _show_annotation_ref_source = show_annotation_ref_source;
180     }
181
182     public void setShowDomainLabels( final boolean show_domain_labels ) {
183         _show_domain_labels = show_domain_labels;
184     }
185
186     final private void init() {
187         _default_node_shape = NodeShape.CIRCLE;
188         _default_node_fill = NodeFill.GRADIENT;
189         _default_node_shape_size = AptxConstants.DEFAULT_NODE_SHAPE_SIZE_DEFAULT;
190         _internal_number_are_confidence_for_nh_parsing = false;
191         _show_scale = false;
192         _antialias_screen = true;
193         _antialias_print = true;
194         _graphics_export_visible_only = false;
195         _editable = true;
196         _background_color_gradient = false;
197         _show_default_node_shapes_internal = false;
198         _show_default_node_shapes_external = false;
199         _show_default_node_shapes_for_marked_nodes = false;
200         _color_all_found_nodes_when_coloring_subtree = false;
201         _parse_beast_style_extended_nexus_tags= true;
202         _min_confidence_value = MIN_CONFIDENCE_DEFAULT;
203         _print_black_and_white = false;
204         _phylogeny_graphics_type = PHYLOGENY_GRAPHICS_TYPE.RECTANGULAR;
205         _base_font = new Font( Configuration.getDefaultFontFamilyName(), Font.PLAIN, 10 );
206         _match_whole_terms_only = false;
207         _search_with_regex = false;
208         _search_case_sensitive = false;
209         _print_line_width = AptxConstants.PDF_LINE_WIDTH_DEFAULT;
210         _show_overview = true;
211         _ov_placement = OVERVIEW_PLACEMENT_TYPE.UPPER_LEFT;
212         _node_label_direction = NODE_LABEL_DIRECTION.HORIZONTAL;
213         _inverse_search_result = false;
214         _scale_bar_length = 0.0;
215         _number_of_digits_after_comma_for_branch_length_values = AptxConstants.NUMBER_OF_DIGITS_AFTER_COMMA_FOR_BRANCH_LENGTH_VALUES_DEFAULT;
216         _number_of_digits_after_comma_for_confidence_values = AptxConstants.NUMBER_OF_DIGITS_AFTER_COMMA_FOR_CONFIDENCE_VALUES_DEFAULT;
217         _nh_parsing_replace_underscores = false;
218         _taxonomy_extraction = TAXONOMY_EXTRACTION.NO;
219         _cladogram_type = AptxConstants.CLADOGRAM_TYPE_DEFAULT;
220         _show_domain_labels = true;
221         _show_annotation_ref_source = true;
222         setAbbreviateScientificTaxonNames( false );
223         _color_labels_same_as_parent_branch = false;
224         _show_confidence_stddev = false;
225         _nh_conversion_support_value_style = NH_CONVERSION_SUPPORT_VALUE_STYLE.NONE;
226         _ext_desc_data_to_return = NodeDataField.UNKNOWN;
227         _line_up_renderable_node_data = true;
228         _right_align_domains = false;
229         _collapsed_with_average_height = true;
230         _show_abbreviated_labels_for_collapsed_nodes = true;
231     }
232
233     final private void setNumberOfDigitsAfterCommaForBranchLength( final short number_of_digits_after_comma_for_branch_length_values ) {
234         _number_of_digits_after_comma_for_branch_length_values = number_of_digits_after_comma_for_branch_length_values;
235     }
236
237     final private void setNumberOfDigitsAfterCommaForConfidenceValues( final short number_of_digits_after_comma_for_confidence_values ) {
238         _number_of_digits_after_comma_for_confidence_values = number_of_digits_after_comma_for_confidence_values;
239     }
240
241     final Font getBaseFont() {
242         return _base_font;
243     }
244
245     final CLADOGRAM_TYPE getCladogramType() {
246         return _cladogram_type;
247     }
248
249     final NodeFill getDefaultNodeFill() {
250         return _default_node_fill;
251     }
252
253     final NodeShape getDefaultNodeShape() {
254         return _default_node_shape;
255     }
256
257     final short getDefaultNodeShapeSize() {
258         return _default_node_shape_size;
259     }
260
261     final double getMinConfidenceValue() {
262         return _min_confidence_value;
263     }
264
265     NH_CONVERSION_SUPPORT_VALUE_STYLE getNhConversionSupportValueStyle() {
266         return _nh_conversion_support_value_style;
267     }
268
269     final NODE_LABEL_DIRECTION getNodeLabelDirection() {
270         return _node_label_direction;
271     }
272
273     final short getNumberOfDigitsAfterCommaForBranchLengthValues() {
274         return _number_of_digits_after_comma_for_branch_length_values;
275     }
276
277     final short getNumberOfDigitsAfterCommaForConfidenceValues() {
278         return _number_of_digits_after_comma_for_confidence_values;
279     }
280
281     final OVERVIEW_PLACEMENT_TYPE getOvPlacement() {
282         return _ov_placement;
283     }
284
285     final PHYLOGENY_GRAPHICS_TYPE getPhylogenyGraphicsType() {
286         return _phylogeny_graphics_type;
287     }
288
289     final float getPrintLineWidth() {
290         return _print_line_width;
291     }
292
293     final double getScaleBarLength() {
294         return _scale_bar_length;
295     }
296
297     final TAXONOMY_EXTRACTION getTaxonomyExtraction() {
298         return _taxonomy_extraction;
299     }
300
301     final boolean isAbbreviateScientificTaxonNames() {
302         return _abbreviate_scientific_names;
303     }
304
305     boolean isAllowMagnificationOfTaxonomyImages() {
306         return true;
307     }
308
309     final boolean isAntialiasPrint() {
310         return _antialias_print;
311     }
312
313     final boolean isAntialiasScreen() {
314         return _antialias_screen;
315     }
316
317     final boolean isBackgroundColorGradient() {
318         return _background_color_gradient;
319     }
320
321     final boolean isColorByTaxonomicGroup() {
322         return _color_by_taxonomic_group;
323     }
324
325     final boolean isColorLabelsSameAsParentBranch() {
326         return _color_labels_same_as_parent_branch;
327     }
328
329     final boolean isEditable() {
330         return _editable;
331     }
332
333     final boolean isGraphicsExportUsingActualSize() {
334         return _graphics_export_using_actual_size;
335     }
336
337     final boolean isGraphicsExportVisibleOnly() {
338         return _graphics_export_visible_only;
339     }
340
341     final boolean isInternalNumberAreConfidenceForNhParsing() {
342         return _internal_number_are_confidence_for_nh_parsing;
343     }
344
345     final boolean isInverseSearchResult() {
346         return _inverse_search_result;
347     }
348
349     final boolean isMatchWholeTermsOnly() {
350         return _match_whole_terms_only;
351     }
352
353     final boolean isPrintBlackAndWhite() {
354         return _print_black_and_white;
355     }
356
357     final boolean isPrintUsingActualSize() {
358         return _print_using_actual_size;
359     }
360
361     final boolean isReplaceUnderscoresInNhParsing() {
362         return _nh_parsing_replace_underscores;
363     }
364
365     final boolean isSearchCaseSensitive() {
366         return _search_case_sensitive;
367     }
368
369     final boolean isSearchWithRegex() {
370         return _search_with_regex;
371     }
372
373     boolean isShowConfidenceStddev() {
374         return _show_confidence_stddev;
375     }
376
377     boolean isShowDefaultNodeShapesExternal() {
378         return _show_default_node_shapes_external;
379     }
380
381     boolean isShowDefaultNodeShapesForMarkedNodes() {
382         return _show_default_node_shapes_for_marked_nodes;
383     }
384
385     boolean isShowDefaultNodeShapesInternal() {
386         return _show_default_node_shapes_internal;
387     }
388
389     final boolean isShowOverview() {
390         return _show_overview;
391     }
392
393     final boolean isShowScale() {
394         return _show_scale;
395     }
396
397     final void setAbbreviateScientificTaxonNames( final boolean abbreviate_scientific_names ) {
398         _abbreviate_scientific_names = abbreviate_scientific_names;
399     }
400
401     final void setAntialiasPrint( final boolean antialias_print ) {
402         _antialias_print = antialias_print;
403     }
404
405     final void setAntialiasScreen( final boolean antialias_screen ) {
406         _antialias_screen = antialias_screen;
407     }
408
409     final void setBaseFont( final Font base_font ) {
410         _base_font = base_font;
411     }
412
413     final void setCladogramType( final CLADOGRAM_TYPE cladogram_type ) {
414         _cladogram_type = cladogram_type;
415     }
416
417     final void setColorByTaxonomicGroup( final boolean color_by_taxonomic_group ) {
418         _color_by_taxonomic_group = color_by_taxonomic_group;
419     }
420
421     final void setDefaultNodeFill( final NodeFill default_node_fill ) {
422         _default_node_fill = default_node_fill;
423     }
424
425     final void setDefaultNodeShape( final NodeShape default_node_shape ) {
426         _default_node_shape = default_node_shape;
427     }
428
429     final void setDefaultNodeShapeSize( final short default_node_shape_size ) {
430         _default_node_shape_size = default_node_shape_size;
431     }
432
433     final void setEditable( final boolean editable ) {
434         _editable = editable;
435     }
436
437     final void setGraphicsExportVisibleOnly( final boolean graphics_export_visible_only ) {
438         _graphics_export_visible_only = graphics_export_visible_only;
439     }
440
441     final void setInternalNumberAreConfidenceForNhParsing( final boolean internal_number_are_confidence_for_nh_parsing ) {
442         _internal_number_are_confidence_for_nh_parsing = internal_number_are_confidence_for_nh_parsing;
443     }
444
445     final void setInverseSearchResult( final boolean inverse_search_result ) {
446         _inverse_search_result = inverse_search_result;
447     }
448
449     final void setMatchWholeTermsOnly( final boolean search_whole_words_only ) {
450         _match_whole_terms_only = search_whole_words_only;
451     }
452
453     final void setMinConfidenceValue( final double min_confidence_value ) {
454         _min_confidence_value = min_confidence_value;
455     }
456
457     void setNhConversionSupportValueStyle( final NH_CONVERSION_SUPPORT_VALUE_STYLE nh_conversion_support_value_style ) {
458         _nh_conversion_support_value_style = nh_conversion_support_value_style;
459     }
460
461     final void setNodeLabelDirection( final NODE_LABEL_DIRECTION node_label_direction ) {
462         _node_label_direction = node_label_direction;
463     }
464
465     final void setOvPlacement( final OVERVIEW_PLACEMENT_TYPE ov_placement ) {
466         _ov_placement = ov_placement;
467     }
468
469     final void setPhylogenyGraphicsType( final PHYLOGENY_GRAPHICS_TYPE phylogeny_graphics_type ) {
470         _phylogeny_graphics_type = phylogeny_graphics_type;
471     }
472
473     final void setPrintBlackAndWhite( final boolean print_black_and_white ) {
474         _print_black_and_white = print_black_and_white;
475     }
476
477     final void setPrintLineWidth( final float print_line_width ) {
478         _print_line_width = print_line_width;
479     }
480     
481     final void setReplaceUnderscoresInNhParsing( final boolean nh_parsing_replace_underscores ) {
482         _nh_parsing_replace_underscores = nh_parsing_replace_underscores;
483     }
484
485     final void setScaleBarLength( final double scale_bar_length ) {
486         _scale_bar_length = scale_bar_length;
487     }
488
489     final void setSearchCaseSensitive( final boolean search_case_sensitive ) {
490         _search_case_sensitive = search_case_sensitive;
491     }
492
493     final void setSearchWithRegex( final boolean search_with_regex ) {
494         _search_with_regex = search_with_regex;
495     }
496
497     void setShowConfidenceStddev( final boolean show_confidence_stddev ) {
498         _show_confidence_stddev = show_confidence_stddev;
499     }
500
501     void setShowDefaultNodeShapesExternal( final boolean show_default_node_shapes_external ) {
502         _show_default_node_shapes_external = show_default_node_shapes_external;
503     }
504
505     void setShowDefaultNodeShapesForMarkedNodes( final boolean show_default_node_shapes_for_marked_nodes ) {
506         _show_default_node_shapes_for_marked_nodes = show_default_node_shapes_for_marked_nodes;
507     }
508
509     void setShowDefaultNodeShapesInternal( final boolean show_default_node_shapes_internal ) {
510         _show_default_node_shapes_internal = show_default_node_shapes_internal;
511     }
512
513     final void setShowOverview( final boolean show_overview ) {
514         _show_overview = show_overview;
515     }
516
517     final void setShowScale( final boolean show_scale ) {
518         _show_scale = show_scale;
519     }
520
521     final void setTaxonomyExtraction( final TAXONOMY_EXTRACTION taxonomy_extraction ) {
522         _taxonomy_extraction = taxonomy_extraction;
523     }
524
525     public final static Options createInstance( final Configuration configuration ) {
526         final Options instance = createDefaultInstance();
527         if ( configuration != null ) {
528             instance.setAntialiasScreen( configuration.isAntialiasScreen() );
529             instance.setShowScale( configuration.isShowScale() );
530             instance.setShowOverview( configuration.isShowOverview() );
531             instance.setColorByTaxonomicGroup( configuration.isColorByTaxonomicGroup() );
532             instance.setCladogramType( configuration.getCladogramType() );
533             instance.setOvPlacement( configuration.getOvPlacement() );
534             instance.setPrintLineWidth( configuration.getPrintLineWidth() );
535             instance.setNodeLabelDirection( configuration.getNodeLabelDirection() );
536             instance.setBackgroundColorGradient( configuration.isBackgroundColorGradient() );
537             if ( configuration.getNumberOfDigitsAfterCommaForBranchLengthValues() >= 0 ) {
538                 instance.setNumberOfDigitsAfterCommaForBranchLength( configuration
539                         .getNumberOfDigitsAfterCommaForBranchLengthValues() );
540             }
541             if ( configuration.getNumberOfDigitsAfterCommaForConfidenceValues() >= 0 ) {
542                 instance.setNumberOfDigitsAfterCommaForConfidenceValues( configuration
543                         .getNumberOfDigitsAfterCommaForConfidenceValues() );
544             }
545             instance.setTaxonomyExtraction( configuration.getTaxonomyExtraction() );
546             instance.setReplaceUnderscoresInNhParsing( configuration.isReplaceUnderscoresInNhParsing() );
547             instance.setInternalNumberAreConfidenceForNhParsing( configuration
548                     .isInternalNumberAreConfidenceForNhParsing() );
549             instance.setEditable( configuration.isEditable() );
550             instance.setColorLabelsSameAsParentBranch( configuration.isColorLabelsSameAsParentBranch() );
551             instance.setShowDomainLabels( configuration.isShowDomainLabels() );
552             instance.setShowAnnotationRefSource( configuration.isShowAnnotationRefSource() );
553             instance.setAbbreviateScientificTaxonNames( configuration.isAbbreviateScientificTaxonNames() );
554             if ( configuration.getMinConfidenceValue() != MIN_CONFIDENCE_DEFAULT ) {
555                 instance.setMinConfidenceValue( configuration.getMinConfidenceValue() );
556             }
557             if ( configuration.getBaseFontSize() > 0 ) {
558                 instance.setBaseFont( instance.getBaseFont().deriveFont( ( float ) configuration.getBaseFontSize() ) );
559             }
560             if ( !ForesterUtil.isEmpty( configuration.getBaseFontFamilyName() ) ) {
561                 instance.setBaseFont( new Font( configuration.getBaseFontFamilyName(), Font.PLAIN, instance
562                         .getBaseFont().getSize() ) );
563             }
564             if ( configuration.getPhylogenyGraphicsType() != null ) {
565                 instance.setPhylogenyGraphicsType( configuration.getPhylogenyGraphicsType() );
566             }
567             if ( configuration.getDefaultNodeFill() != null ) {
568                 instance.setDefaultNodeFill( configuration.getDefaultNodeFill() );
569             }
570             if ( configuration.getDefaultNodeShape() != null ) {
571                 instance.setDefaultNodeShape( configuration.getDefaultNodeShape() );
572             }
573             if ( configuration.getDefaultNodeShapeSize() >= 0 ) {
574                 instance.setDefaultNodeShapeSize( configuration.getDefaultNodeShapeSize() );
575             }
576             instance.setShowDefaultNodeShapesInternal( configuration.isShowDefaultNodeShapesInternal() );
577             instance.setShowDefaultNodeShapesExternal( configuration.isShowDefaultNodeShapesExternal() );
578             instance.setShowDefaultNodeShapesForMarkedNodes( configuration.isShowDefaultNodeShapesForMarkedNodes() );
579             if ( configuration.getExtDescNodeDataToReturn() != null ) {
580                 instance.setExtDescNodeDataToReturn( configuration.getExtDescNodeDataToReturn() );
581             }
582             instance.setRightLineUpDomains( configuration.isRightLineUpDomains() );
583             instance.setLineUpRendarableNodeData( configuration.isLineUpRendarableNodeData() );
584             instance.setAllowErrorsInDistanceToParent( false );
585         }
586         return instance;
587     }
588
589     final static Options createDefaultInstance() {
590         return new Options();
591     }
592
593     final boolean isColorAllFoundNodesWhenColoringSubtree() {
594         return _color_all_found_nodes_when_coloring_subtree;
595     }
596     
597     final void setColorAllFoundNodesWhenColoringSubtree( final boolean color_all_found_nodes_when_coloring_subtree ) {
598         _color_all_found_nodes_when_coloring_subtree = color_all_found_nodes_when_coloring_subtree;
599     }
600
601     final boolean isParseBeastStyleExtendedNexusTags() {
602         return _parse_beast_style_extended_nexus_tags;
603     }
604
605     final void setParseBeastStyleExtendedNexusTags( final boolean parse_beast_style_extended_nexus_tags ) {
606         _parse_beast_style_extended_nexus_tags = parse_beast_style_extended_nexus_tags;
607     }
608     
609     final boolean isCollapsedWithAverageHeigh() {
610         return _collapsed_with_average_height;
611     }
612
613     final void setCollapsedWithAverageHeigh( final boolean collapsed_with_average_height ) {
614         _collapsed_with_average_height = collapsed_with_average_height;
615     }
616
617     final boolean isShowAbbreviatedLabelsForCollapsedNodes() {
618         return _show_abbreviated_labels_for_collapsed_nodes;
619     }
620     
621     final void setShowAbbreviatedLabelsForCollapsedNodes(final boolean show_abbreviated_labels_for_collapsed_nodes) {
622         _show_abbreviated_labels_for_collapsed_nodes =  show_abbreviated_labels_for_collapsed_nodes;
623     }
624     
625    
626     
627 }