-/*
- * Maintains the color schemes and a set of colors for drawing a tree.
- */
-final class TreeColorSet {
-
- static final String[] SCHEME_NAMES = { "Default", "Black", "Black & White", "Silver", "The Matrix",
- "White & Blue", "Cyan", "Clockwork", "Blue", "Blue & White", "Neon" };
- static final String[] COLOR_FIELDS = { "Background", "Background Gradient Bottom", "Sequence", "Taxonomy",
- "Confidence", "Branch Length", "Branch", "Node Box", "Collapsed", "Matching Nodes", "Duplication",
- "Speciation", "Duplication or Specation", "Domains", "Binary Domain Combinations", "Annotation", "Overview" };
- // All the color sets; better be the same # of sets as there are names!
- private final Color[][] _color_schemes = { { new Color( 0, 0, 0 ), // background_color
+public final class TreeColorSet {
+
+ public static final String ANNOTATION = "Annotation";
+ public static final String BACKGROUND = "Background";
+ public static final String BACKGROUND_GRADIENT_BOTTOM = "Background Gradient Bottom";
+ public static final String BINARY_DOMAIN_COMBINATIONS = "Binary Domain Combinations";
+ public static final String BRANCH = "Branch";
+ public static final String BRANCH_LENGTH = "Branch Length";
+ public static final String COLLAPSED = "Collapsed";
+ public static final String CONFIDENCE = "Confidence";
+ public static final String DOMAIN_LABEL = "Domain Label";
+ public static final String DOMAIN_BASE = "Domain Base";
+ public static final String DUPLICATION = "Duplication";
+ public static final String DUPLICATION_OR_SPECATION = "Duplication or Specation";
+ public static final String MATCHING_NODES_A = "Matching A";
+ public static final String MATCHING_NODES_A_AND_B = "Matching A and B";
+ public static final String MATCHING_NODES_B = "Matching B";
+ public static final String NODE_BOX = "Node Box";
+ public static final String OVERVIEW = "Overview";
+ public static final String SEQUENCE = "Sequence";
+ public static final String SPECIATION = "Speciation";
+ public static final String TAXONOMY = "Taxonomy";
+ static final String[] COLOR_FIELDS = { BACKGROUND, BACKGROUND_GRADIENT_BOTTOM, SEQUENCE,
+ TAXONOMY, CONFIDENCE, BRANCH_LENGTH, BRANCH, NODE_BOX, COLLAPSED, MATCHING_NODES_A, MATCHING_NODES_B,
+ MATCHING_NODES_A_AND_B, DUPLICATION, SPECIATION, DUPLICATION_OR_SPECATION, DOMAIN_LABEL, DOMAIN_BASE,
+ BINARY_DOMAIN_COMBINATIONS, ANNOTATION, OVERVIEW };
+ static final String[] SCHEME_NAMES = { "Default", "Black", "Black & White", "Silver", "Green",
+ "White & Blue", "Cyan", "Orange", "Blue", "Blue & White", "Neon" };
+ private int _color_scheme;
+ private final Color[][] _color_schemes = { { new Color( 0, 0, 0 ), // background_color