Jalview 2.8 Source Header
[jalview.git] / src / jalview / gui / TextColourChooser.java
index 1627ab7..8bc01b8 100644 (file)
@@ -1,13 +1,13 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
- * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8)
+ * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle
  * 
  * This file is part of Jalview.
  * 
  * Jalview is free software: you can redistribute it and/or
  * modify it under the terms of the GNU General Public License 
  * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
- * 
+ *  
  * Jalview is distributed in the hope that it will be useful, but 
  * WITHOUT ANY WARRANTY; without even the implied warranty 
  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
@@ -137,7 +137,7 @@ public class TextColourChooser
     if (sg == null)
     {
       ap.av.textColour = col;
-      if (ap.av.colourAppliesToAllGroups)
+      if (ap.av.getColourAppliesToAllGroups())
       {
         setGroupTextColour();
       }
@@ -155,7 +155,7 @@ public class TextColourChooser
     if (sg == null)
     {
       ap.av.textColour2 = col;
-      if (ap.av.colourAppliesToAllGroups)
+      if (ap.av.getColourAppliesToAllGroups())
       {
         setGroupTextColour();
       }
@@ -173,7 +173,7 @@ public class TextColourChooser
     if (sg == null)
     {
       ap.av.thresholdTextColour = value;
-      if (ap.av.colourAppliesToAllGroups)
+      if (ap.av.getColourAppliesToAllGroups())
       {
         setGroupTextColour();
       }
@@ -193,9 +193,7 @@ public class TextColourChooser
       return;
     }
 
-    
-
-    for (SequenceGroup sg:ap.av.getAlignment().getGroups())
+    for (SequenceGroup sg : ap.av.getAlignment().getGroups())
     {
       sg.textColour = ap.av.textColour;
       sg.textColour2 = ap.av.textColour2;