+ updateFromPreferences();\r
+\r
+ }\r
+\r
+ public void updateFromPreferences()\r
+ {\r
+ showFullId = Preferences.showFullId;\r
+ showAnnotation = Preferences.showAnnotation;\r
+ showConservation = Preferences.showConservation;\r
+ showQuality = Preferences.showQuality;\r
+ showIdentity = Preferences.showIdentity;\r
+ showFullId = Preferences.showFullId;\r
+ String fontName = Preferences.fontName;\r
+ String fontStyle = Preferences.fontStyle;\r
+ String fontSize = Cache.getProperty("FONT_SIZE");\r
+ if (fontName != null && fontStyle != null && fontSize != null)\r
+ {\r
+ int style = 0;\r
+ if(fontStyle.equals("bold"))\r
+ style = 1;\r
+ else if(fontStyle.equals("italic"))\r
+ style = 2;\r
+ setFont(new Font(fontName, style, Integer.parseInt(fontSize)));\r
+ }\r
+ else\r
+ setFont(font);\r
+\r
+ alignment.setGapCharacter(Preferences.gapSymbol);\r
+\r
+ // We must set conservation and consensus before setting colour,\r
+ // as Blosum and Clustal require this to be done\r
+ updateConservation();\r
+ updateConsensus();\r
+ if(Preferences.defaultColour!=null)\r
+ {\r
+ globalColourScheme = ColourSchemeProperty.getColour(alignment, Preferences.defaultColour);\r
+ if(globalColourScheme!=null)\r
+ globalColourScheme.setConsensus( vconsensus );\r
+ }\r
+\r