- static final String USE_MOUSEWHEEL_SHIFT_TO_ROTATE = "In this display type, use mousewheel + Shift to rotate [or A and S]";
- static final String PHYLOXML_REF_TOOL_TIP = Constants.PHYLOXML_REFERENCE; //TODO //FIXME
- static final String APTX_REF_TOOL_TIP = Constants.APTX_REFERENCE;
- private static final long serialVersionUID = 3655000897845508358L;
- final static Font menu_font = new Font( Configuration.getDefaultFontFamilyName(),
- Font.PLAIN,
- 10 );
- static final String TYPE_MENU_HEADER = "Type";
- static final String RECTANGULAR_TYPE_CBMI_LABEL = "Rectangular";
- static final String EURO_TYPE_CBMI_LABEL = "Euro Type";
- static final String CURVED_TYPE_CBMI_LABEL = "Curved";
- static final String TRIANGULAR_TYPE_CBMI_LABEL = "Triangular";
- static final String CONVEX_TYPE_CBMI_LABEL = "Convex";
- static final String ROUNDED_TYPE_CBMI_LABEL = "Rounded";
- static final String UNROOTED_TYPE_CBMI_LABEL = "Unrooted (alpha)"; //TODO
- static final String CIRCULAR_TYPE_CBMI_LABEL = "Circular (alpha)"; //TODO
- static final String OPTIONS_HEADER = "Options";
- static final String SEARCH_SUBHEADER = "Search:";
- static final String DISPLAY_SUBHEADER = "Display:";
- static final String SEARCH_TERMS_ONLY_LABEL = "Match Complete Terms Only";
- static final String SEARCH_CASE_SENSITIVE_LABEL = "Case Sensitive";
- static final String INVERSE_SEARCH_RESULT_LABEL = "Negate Result";
- static final String DISPLAY_BRANCH_LENGTH_VALUES_LABEL = "Display Branch Length Values";
- static final String DISPLAY_SCALE_LABEL = "Display Scale";
- static final String NON_LINED_UP_CLADOGRAMS_LABEL = "Non-Lined Up Cladograms";
- static final String UNIFORM_CLADOGRAMS_LABEL = "Total Node Sum Dependent Cladograms";
- static final String LABEL_DIRECTION_LABEL = "Radial Labels";
- static final String LABEL_DIRECTION_TIP = "To use radial node labels in radial and unrooted display types";
- static final String SCREEN_ANTIALIAS_LABEL = "Antialias";
- static final String COLOR_LABELS_LABEL = "Colorize Labels Same as Parent Branch";
- static final String BG_GRAD_LABEL = "Background Color Gradient";
- static final String DISPLAY_NODE_BOXES_LABEL = "Display Node Shapes";
- static final String SHOW_OVERVIEW_LABEL = "Show Overview";
- static final String FONT_SIZE_MENU_LABEL = "Font Size";
- static final String NONUNIFORM_CLADOGRAMS_LABEL = "External Node Sum Dependent Cladograms";
- static final String SHOW_DOMAIN_LABELS_LABEL = "Show Domain Labels";
- static final String COLOR_LABELS_TIP = "To use parent branch colors for node labels as well, need to turn off taxonomy dependent colorization and turn on branch colorization for this to become apparent";
- static final String ABBREV_SN_LABEL = "Abbreviate Scientific Taxonomic Names";
- static final String TAXONOMY_COLORIZE_NODE_SHAPES_LABEL = "Colorize Node Shapes According to Taxonomy";
- static final String CYCLE_NODE_SHAPE_LABEL = "Cycle Node Shapes";
- static final String CYCLE_NODE_FILL_LABEL = "Cycle Node Fill Type";
- static final String CHOOSE_NODE_SIZE_LABEL = "Choose Node Shape Size";
+ static final String USE_MOUSEWHEEL_SHIFT_TO_ROTATE = "In this display type, use mousewheel + Shift to rotate [or A and S]";
+ static final String PHYLOXML_REF_TOOL_TIP = Constants.PHYLOXML_REFERENCE; //TODO //FIXME
+ static final String APTX_REF_TOOL_TIP = Constants.APTX_REFERENCE;
+ private static final long serialVersionUID = 3655000897845508358L;
+ final static Font menu_font = new Font( Configuration.getDefaultFontFamilyName(),
+ Font.PLAIN,
+ 10 );
+ static final String TYPE_MENU_HEADER = "Type";
+ static final String RECTANGULAR_TYPE_CBMI_LABEL = "Rectangular";
+ static final String EURO_TYPE_CBMI_LABEL = "Euro Type";
+ static final String CURVED_TYPE_CBMI_LABEL = "Curved";
+ static final String TRIANGULAR_TYPE_CBMI_LABEL = "Triangular";
+ static final String CONVEX_TYPE_CBMI_LABEL = "Convex";
+ static final String ROUNDED_TYPE_CBMI_LABEL = "Rounded";
+ static final String UNROOTED_TYPE_CBMI_LABEL = "Unrooted (alpha)"; //TODO
+ static final String CIRCULAR_TYPE_CBMI_LABEL = "Circular (alpha)"; //TODO
+ static final String OPTIONS_HEADER = "Options";
+ static final String SEARCH_SUBHEADER = "Search:";
+ static final String DISPLAY_SUBHEADER = "Display:";
+ static final String SEARCH_TERMS_ONLY_LABEL = "Match Complete Terms Only";
+ static final String SEARCH_CASE_SENSITIVE_LABEL = "Case Sensitive";
+ static final String INVERSE_SEARCH_RESULT_LABEL = "Negate Result";
+ static final String DISPLAY_BRANCH_LENGTH_VALUES_LABEL = "Display Branch Length Values";
+ static final String DISPLAY_SCALE_LABEL = "Display Scale";
+ static final String NON_LINED_UP_CLADOGRAMS_LABEL = "Non-Lined Up Cladograms";
+ static final String UNIFORM_CLADOGRAMS_LABEL = "Total Node Sum Dependent Cladograms";
+ static final String LABEL_DIRECTION_LABEL = "Radial Labels";
+ static final String LABEL_DIRECTION_TIP = "To use radial node labels in radial and unrooted display types";
+ static final String SCREEN_ANTIALIAS_LABEL = "Antialias";
+ static final String COLOR_LABELS_LABEL = "Colorize Labels Same as Parent Branch";
+ static final String BG_GRAD_LABEL = "Background Color Gradient";
+ static final String DISPLAY_NODE_BOXES_LABEL = "Display Node Shapes";
+ static final String SHOW_OVERVIEW_LABEL = "Show Overview";
+ static final String FONT_SIZE_MENU_LABEL = "Font Size";
+ static final String NONUNIFORM_CLADOGRAMS_LABEL = "External Node Sum Dependent Cladograms";
+ static final String SHOW_DOMAIN_LABELS_LABEL = "Show Domain Labels";
+ static final String COLOR_LABELS_TIP = "To use parent branch colors for node labels as well, need to turn off taxonomy dependent colorization and turn on branch colorization for this to become apparent";
+ static final String ABBREV_SN_LABEL = "Abbreviate Scientific Taxonomic Names";
+ static final String TAXONOMY_COLORIZE_NODE_SHAPES_LABEL = "Colorize Node Shapes According to Taxonomy";
+ static final String CYCLE_NODE_SHAPE_LABEL = "Cycle Node Shapes";
+ static final String CYCLE_NODE_FILL_LABEL = "Cycle Node Fill Type";
+ static final String CHOOSE_NODE_SIZE_LABEL = "Choose Node Shape Size";
+ static void chooseNodeSize( final Options options, final Component parent ) {
+ final String s = ( String ) JOptionPane.showInputDialog( parent,
+ "Please enter the default size for node shapes.\n"
+ + "[current value: "
+ + options.getDefaultNodeShapeSize() + "]\n",
+ "Node Shape Size",
+ JOptionPane.QUESTION_MESSAGE,
+ null,
+ null,
+ options.getDefaultNodeShapeSize() );
+ if ( !ForesterUtil.isEmpty( s ) ) {
+ boolean success = true;
+ double m = 0.0;
+ final String m_str = s.trim();
+ if ( !ForesterUtil.isEmpty( m_str ) ) {
+ try {
+ m = Double.parseDouble( m_str );
+ }
+ catch ( final Exception ex ) {
+ success = false;
+ }
+ }
+ else {
+ success = false;
+ }
+ if ( success && ( m >= 0.0 ) ) {
+ final short size = ForesterUtil.roundToShort( m );
+ if ( size >= 0.0 ) {
+ options.setDefaultNodeShapeSize( size );
+ }
+ }
+ }
+ }
+