// Copyright (C) 2009 Christian M. Zmasek
// Copyright (C) 2009 Burnham Institute for Medical Research
// All rights reserved
-//
+//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
-//
+//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
final public class Options {
static final double MIN_CONFIDENCE_DEFAULT = 0.0;
- private boolean _show_node_boxes;
+ private NodeShape _default_node_shape;
private boolean _show_branch_length_values;
private boolean _internal_number_are_confidence_for_nh_parsing;
private boolean _show_scale;
private boolean _show_domain_labels;
private boolean _color_labels_same_as_parent_branch;
private boolean _abbreviate_scientific_names;
+
+ enum NodeShape {
+ NONE,
+ CIRCLE_WITH_GRADIENT,
+ CIRCLE_SOLID,
+ RECTANGLE_WITH_GRADIENT,
+ RECTANGLE_SOLID;
+ }
private Options() {
init();
}
final private void init() {
- _show_node_boxes = false;
+ _default_node_shape = NodeShape.RECTANGLE_WITH_GRADIENT;
_show_branch_length_values = false;
_internal_number_are_confidence_for_nh_parsing = false;
_show_scale = false;
return _show_branch_length_values;
}
- final boolean isShowNodeBoxes() {
- return _show_node_boxes;
+ final NodeShape getDefaultNodeShape() {
+ return _default_node_shape;
}
final boolean isShowOverview() {
_show_branch_length_values = show_branch_length_values;
}
- final void setShowNodeBoxes( final boolean show_node_boxes ) {
- _show_node_boxes = show_node_boxes;
+ final void setDefaultNodeShape( final NodeShape default_node_shape ) {
+ _default_node_shape = default_node_shape;
}
final void setShowOverview( final boolean show_overview ) {
}
boolean isAllowMagnificationOfTaxonomyImages() {
- // TODO Auto-generated method stub
return true;
}
+
+ int getDefaultNodeBoxSize() {
+ // TODO make variable ~~
+ return 8;
+ }
}