padGaps set in preferences
[jalview.git] / src / jalview / gui / AlignViewport.java
index a92517c..3509217 100755 (executable)
@@ -62,7 +62,7 @@ public class AlignViewport
     int charHeight;\r
     int charWidth;\r
     int wrappedWidth;\r
-    Font font = new Font("SansSerif", Font.PLAIN, 10);\r
+    Font font;\r
     AlignmentI alignment;\r
     ColumnSelection colSel = new ColumnSelection();\r
     int threshold;\r
@@ -86,6 +86,7 @@ public class AlignViewport
     AlignmentAnnotation consensus;\r
     AlignmentAnnotation conservation;\r
     AlignmentAnnotation quality;\r
+    boolean autoCalculateConsensus = true;\r
 \r
     /** DOCUMENT ME!! */\r
     public int ConsPercGaps = 25; // JBPNote : This should be a scalable property!\r
@@ -99,6 +100,8 @@ public class AlignViewport
 \r
     boolean antiAlias = false;\r
 \r
+    boolean padGaps = false;\r
+\r
 \r
     public AlignViewport(AlignmentI al, boolean dataset)\r
     {\r
@@ -133,6 +136,10 @@ public class AlignViewport
       showQuality = Cache.getDefault("SHOW_QUALITY", true);\r
       showIdentity = Cache.getDefault("SHOW_IDENTITY", true);\r
 \r
+      autoCalculateConsensus = Cache.getDefault("AUTO_CALC_CONSENSUS", true);\r
+\r
+      padGaps = Cache.getDefault("PAD_GAPS", false);\r
+\r
        String fontName = Cache.getDefault("FONT_NAME", "SansSerif");\r
        String fontStyle = Cache.getDefault("FONT_STYLE", Font.PLAIN + "") ;\r
        String fontSize = Cache.getDefault("FONT_SIZE", "10");\r