2 // FORESTER -- software libraries and applications
3 // for evolutionary biology research and applications.
5 // Copyright (C) 2008-2009 Christian M. Zmasek
6 // Copyright (C) 2008-2009 Burnham Institute for Medical Research
7 // Copyright (C) 2000-2001 Washington University School of Medicine
8 // and Howard Hughes Medical Institute
9 // Copyright (C) 2003-2007 Ethalinda K.S. Cannon
10 // All rights reserved
12 // This library is free software; you can redistribute it and/or
13 // modify it under the terms of the GNU Lesser General Public
14 // License as published by the Free Software Foundation; either
15 // version 2.1 of the License, or (at your option) any later version.
17 // This library is distributed in the hope that it will be useful,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 // Lesser General Public License for more details.
22 // You should have received a copy of the GNU Lesser General Public
23 // License along with this library; if not, write to the Free Software
24 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
26 // Contact: phylosoft @ gmail . com
27 // WWW: www.phylosoft.org/forester
29 package org.forester.archaeopteryx;
31 import java.awt.Color;
32 import java.awt.Dimension;
34 import org.forester.archaeopteryx.Options.CLADOGRAM_TYPE;
35 import org.forester.util.ForesterConstants;
37 public final class Constants {
39 final static boolean __ALLOW_PHYLOGENETIC_INFERENCE = true;
40 public final static boolean __RELEASE = true; // TODO remove me
41 public final static boolean __SNAPSHOT_RELEASE = true; // TODO remove me
42 public final static String PRG_NAME = "Archaeopteryx";
43 final static String VERSION = "0.962 beta B48";
44 final static String PRG_DATE = "2011.05.27";
45 final static String DEFAULT_CONFIGURATION_FILE_NAME = "_aptx_configuration_file";
46 final static String[] DEFAULT_FONT_CHOICES = { "Verdana", "Tahoma",
47 "Arial", "Helvetica", "Dialog", "Lucida Sans", "SansSerif", "Sans-serif", "Sans" };
48 final static boolean VERBOSE_DEFAULT = false;
49 final static int DOMAIN_STRUCTURE_DEFAULT_WIDTH = 200;
50 final static String AUTHOR_EMAIL = "phylosoft@gmail.com";
51 final static int DOMAIN_STRUCTURE_E_VALUE_THR_DEFAULT_EXP = 0;
52 final static float BUTTON_ZOOM_IN_FACTOR = 1.25f;
53 final static float BUTTON_ZOOM_OUT_FACTOR = 1 / Constants.BUTTON_ZOOM_IN_FACTOR;
54 final static float BUTTON_ZOOM_IN_X_CORRECTION_FACTOR = 1.2f;
55 final static float BUTTON_ZOOM_OUT_X_CORRECTION_FACTOR = 1 / Constants.BUTTON_ZOOM_IN_X_CORRECTION_FACTOR;
56 final static float WHEEL_ZOOM_IN_FACTOR = 1.08f;
57 final static float WHEEL_ZOOM_OUT_FACTOR = 1 / Constants.WHEEL_ZOOM_IN_FACTOR;
58 final static float WHEEL_ZOOM_IN_X_CORRECTION_FACTOR = 1.085f;
59 final static float WHEEL_ZOOM_OUT_X_CORRECTION_FACTOR = 1 / Constants.WHEEL_ZOOM_IN_X_CORRECTION_FACTOR;
60 static final boolean SPECIAL_CUSTOM = false; //TODO remove me
61 static final int EXT_NODE_INFO_LENGTH_MAX = 300;
62 static final Dimension NODE_PANEL_SPLIT_MINIMUM_SIZE = new Dimension( 100, 50 );
63 static final Dimension NODE_PANEL_SIZE = new Dimension( 500, 600 );
64 static final Dimension NODE_FRAME_SIZE = new Dimension( 520, 640 );
65 static final String APPLET_PARAM_NAME_FOR_URL_OF_TREE_TO_LOAD = "url_of_tree_to_load";
66 static final String APPLET_PARAM_NAME_FOR_CONFIG_FILE_URL = "config_file";
67 static final String APPLET_PARAM_NAME_FOR_DEFAULT_QUERY_SEQUENCE = "homology_type_analysis_query_sequence";
68 static final String APPLET_PARAM_NAME_FOR_DEFAULT_SEQUENCE_RELATION_TYPE = "homology_type_analysis_initial_relation_type";
69 static final int MAX_TREES_TO_LOAD = 100;
70 static final int US_LETTER_SIZE_X = 612;
71 static final int US_LETTER_SIZE_Y = 792;
72 static final int A4_SIZE_X = 595;
73 static final int A4_SIZE_Y = 845;
74 final static float PDF_LINE_WIDTH_DEFAULT = 0.5f;
75 final static String APTX_WEB_SITE = "http://www.phylosoft.org/archaeopteryx/";
76 final static String PHYLOXML_WEB_SITE = ForesterConstants.PHYLO_XML_LOCATION;
77 final static String PHYLOXML_REFERENCE_URL = "http://www.biomedcentral.com/1471-2105/10/356/";
78 final static String APTX_REFERENCE_URL = "http://www.biomedcentral.com/bmcbioinformatics/";
79 final static String APTX_REFERENCE = "Zmasek..."; //TODO
80 final static String PHYLOXML_REFERENCE = ForesterConstants.PHYLO_XML_REFERENCE;
81 final static String PHYLOXML_REFERENCE_SHORT = "Han MV and Zmasek CM (2009), BMC Bioinformatics, 10:356";
82 final static short NUMBER_OF_DIGITS_AFTER_COMMA_FOR_BRANCH_LENGTH_VALUES_DEFAULT = 2;
83 final static short NUMBER_OF_DIGITS_AFTER_COMMA_FOR_CONFIDENCE_VALUES_DEFAULT = 1;
84 public static final boolean NH_PARSING_IGNORE_QUOTES_DEFAULT = false;
85 static final CLADOGRAM_TYPE CLADOGRAM_TYPE_DEFAULT = CLADOGRAM_TYPE.EXT_NODE_SUM_DEP;
86 final static boolean VALIDATE_AGAINST_PHYLOXML_XSD_SCJEMA_DEFAULT = true;
87 final static String BACKUP_FILE_SUFFIX = ".BAK";
88 final static double MIN_NOT_COLLAPSE_DEFAULT = 50;
89 final static Color GUI_BACKGROUND_DEFAULT = new Color( 32, 32, 32 );
90 final static Color CHECKBOX_TEXT_COLOR_DEFAULT = new Color( 220,
93 final static Color CHECKBOX_AND_BUTTON_ACTIVE_COLOR_DEFAULT = new Color( 255, 0, 0 );
94 final static Color BUTTON_TEXT_COLOR_DEFAULT = new Color( 255,
97 final static Color BUTTON_BACKGROUND_COLOR_DEFAULT = new Color( 64, 64, 64 );
98 final static Color MENU_BACKGROUND_COLOR_DEFAULT = new Color( 0, 0, 0 );
99 final static Color MENU_TEXT_COLOR_DEFAULT = new Color( 255,
102 final static Color BUTTON_BORDER_COLOR_DEFAULT = new Color( 0, 0, 0 );
103 final static Color TAB_LABEL_FOREGROUND_COLOR_SELECTED = new Color( 0, 0, 0 );
104 final static Color DOMAIN_STRUCTURE_BASE_COLOR_DEFAULT = new Color( 32, 32, 32 );
105 final static Color DOMAIN_STRUCTURE_FONT_COLOR_DEFAULT = new Color( 144,
108 final static String NCBI_ALL_DATABASE_SEARCH = "http://www.ncbi.nlm.nih.gov/gquery/?term=";
109 final static short DEFAULT_NODE_SHAPE_SIZE_DEFAULT = 6;