(JAL-969) refactored alignmentViewport base class to own package and pulled up most...
[jalview.git] / src / jalview / appletgui / AnnotationColourChooser.java
index 4ff027b..a3f9fa6 100755 (executable)
@@ -55,10 +55,10 @@ public class AnnotationColourChooser extends Panel implements
     }
 
     oldcs = av.getGlobalColourScheme();
-    if (av.alignment.getGroups() != null)
+    if (av.getAlignment().getGroups() != null)
     {
       oldgroupColours = new Hashtable();
-      Vector allGroups = ap.av.alignment.getGroups();
+      Vector allGroups = ap.av.getAlignment().getGroups();
       SequenceGroup sg;
       for (int g = 0; g < allGroups.size(); g++)
       {
@@ -79,7 +79,7 @@ public class AnnotationColourChooser extends Panel implements
     slider.addAdjustmentListener(this);
     slider.addMouseListener(this);
 
-    if (av.alignment.getAlignmentAnnotation() == null)
+    if (av.getAlignment().getAlignmentAnnotation() == null)
     {
       return;
     }
@@ -100,9 +100,9 @@ public class AnnotationColourChooser extends Panel implements
 
     Vector list = new Vector();
     int index = 1;
-    for (int i = 0; i < av.alignment.getAlignmentAnnotation().length; i++)
+    for (int i = 0; i < av.getAlignment().getAlignmentAnnotation().length; i++)
     {
-      String label = av.alignment.getAlignmentAnnotation()[i].label;
+      String label = av.getAlignment().getAlignmentAnnotation()[i].label;
       if (!list.contains(label))
         list.addElement(label);
       else
@@ -395,7 +395,7 @@ public class AnnotationColourChooser extends Panel implements
       return;
     }
 
-    currentAnnotation = av.alignment.getAlignmentAnnotation()[annotations
+    currentAnnotation = av.getAlignment().getAlignmentAnnotation()[annotations
             .getSelectedIndex()];
 
     int aboveThreshold = -1;
@@ -464,9 +464,9 @@ public class AnnotationColourChooser extends Panel implements
 
     av.setGlobalColourScheme(acg);
 
-    if (av.alignment.getGroups() != null)
+    if (av.getAlignment().getGroups() != null)
     {
-      Vector allGroups = ap.av.alignment.getGroups();
+      Vector allGroups = ap.av.getAlignment().getGroups();
       SequenceGroup sg;
       for (int g = 0; g < allGroups.size(); g++)
       {
@@ -499,9 +499,9 @@ public class AnnotationColourChooser extends Panel implements
   void reset()
   {
     av.setGlobalColourScheme(oldcs);
-    if (av.alignment.getGroups() != null)
+    if (av.getAlignment().getGroups() != null)
     {
-      Vector allGroups = ap.av.alignment.getGroups();
+      Vector allGroups = ap.av.getAlignment().getGroups();
       SequenceGroup sg;
       for (int g = 0; g < allGroups.size(); g++)
       {