JAL-1640 JAL-966 is for boolean getter on AlignViewportI
authorJim Procter <jprocter@dundee.ac.uk>
Fri, 6 Feb 2015 10:37:52 +0000 (10:37 +0000)
committerJim Procter <jprocter@dundee.ac.uk>
Fri, 6 Feb 2015 10:41:20 +0000 (10:41 +0000)
18 files changed:
src/jalview/api/AlignViewportI.java
src/jalview/appletgui/APopupMenu.java
src/jalview/appletgui/AnnotationLabels.java
src/jalview/appletgui/SliderPanel.java
src/jalview/appletgui/TreeCanvas.java
src/jalview/appletgui/UserDefinedColours.java
src/jalview/gui/AlignFrame.java
src/jalview/gui/AlignViewport.java
src/jalview/gui/AnnotationLabels.java
src/jalview/gui/Jalview2XML.java
src/jalview/gui/PopupMenu.java
src/jalview/gui/SliderPanel.java
src/jalview/gui/TreeCanvas.java
src/jalview/gui/UserDefinedColours.java
src/jalview/renderer/AnnotationRenderer.java
src/jalview/viewmodel/AlignmentViewport.java
src/jalview/workers/ConsensusThread.java
src/jalview/workers/StrucConsensusThread.java

index 5d3f89d..fe49488 100644 (file)
@@ -77,9 +77,9 @@ public interface AlignViewportI
 
   Hashtable[] getRnaStructureConsensusHash();
 
-  boolean getIgnoreGapsConsensus();
 
   boolean getCentreColumnLabels();
+  boolean isIgnoreGapsConsensus();
 
   boolean isCalculationInProgress(AlignmentAnnotation alignmentAnnotation);
 
index e688177..3b37b62 100644 (file)
@@ -1023,7 +1023,7 @@ public class APopupMenu extends java.awt.PopupMenu implements
       int threshold = SliderPanel.setPIDSliderSource(ap, sg.cs, getGroup()
               .getName());
 
-      sg.cs.setThreshold(threshold, ap.av.getIgnoreGapsConsensus());
+      sg.cs.setThreshold(threshold, ap.av.isIgnoreGapsConsensus());
 
       SliderPanel.showPIDSlider();
 
@@ -1031,7 +1031,7 @@ public class APopupMenu extends java.awt.PopupMenu implements
     else
     // remove PIDColouring
     {
-      sg.cs.setThreshold(0, ap.av.getIgnoreGapsConsensus());
+      sg.cs.setThreshold(0, ap.av.isIgnoreGapsConsensus());
     }
 
     refresh();
index 566be33..fdbf1ff 100755 (executable)
@@ -482,7 +482,7 @@ public class AnnotationLabels extends Panel implements ActionListener,
                     MessageManager.getString("label.ignore_gaps_consensus"),
                     (aa[selectedRow].groupRef != null) ? aa[selectedRow].groupRef
                             .getIgnoreGapsConsensus() : ap.av
-                            .getIgnoreGapsConsensus());
+                            .isIgnoreGapsConsensus());
             final AlignmentAnnotation aaa = aa[selectedRow];
             cbmi.addItemListener(new ItemListener()
             {
index 220a7fb..2a4d582 100644 (file)
@@ -215,7 +215,7 @@ public class SliderPanel extends Panel implements ActionListener,
       }
       else
       {
-        toChange.setThreshold(i, ap.av.getIgnoreGapsConsensus());
+        toChange.setThreshold(i, ap.av.isIgnoreGapsConsensus());
       }
       if (allGroups != null && allGroups.hasNext())
       {
index 745520b..da8f91e 100755 (executable)
@@ -639,7 +639,7 @@ public class TreeCanvas extends Panel implements MouseListener,
         if (cs != null)
         {
           cs.setThreshold(av.getGlobalColourScheme().getThreshold(),
-                  av.getIgnoreGapsConsensus());
+                  av.isIgnoreGapsConsensus());
         }
       }
       // TODO: cs used to be initialized with a sequence collection and
index afa6419..6d8933c 100644 (file)
@@ -489,7 +489,7 @@ public class UserDefinedColours extends Panel implements ActionListener,
     UserColourScheme ucs = new UserColourScheme(newColours);
     if (ap != null)
     {
-      ucs.setThreshold(0, ap.av.getIgnoreGapsConsensus());
+      ucs.setThreshold(0, ap.av.isIgnoreGapsConsensus());
     }
 
     if (ap != null)
index 974dbad..2b6795b 100644 (file)
@@ -3361,11 +3361,11 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
       {
         threshold = SliderPanel.setPIDSliderSource(alignPanel, cs,
                 "Background");
-        cs.setThreshold(threshold, viewport.getIgnoreGapsConsensus());
+        cs.setThreshold(threshold, viewport.isIgnoreGapsConsensus());
       }
       else
       {
-        cs.setThreshold(0, viewport.getIgnoreGapsConsensus());
+        cs.setThreshold(0, viewport.isIgnoreGapsConsensus());
       }
 
       if (viewport.getConservationSelected())
@@ -3428,7 +3428,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
                 || cs instanceof PIDColourScheme
                 || cs instanceof Blosum62ColourScheme)
         {
-          sg.cs.setThreshold(threshold, viewport.getIgnoreGapsConsensus());
+          sg.cs.setThreshold(threshold, viewport.isIgnoreGapsConsensus());
 
           sg.cs.setConsensus(AAFrequency.calculate(
                   sg.getSequences(viewport.getHiddenRepSequences()),
@@ -3436,7 +3436,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
         }
         else
         {
-          sg.cs.setThreshold(0, viewport.getIgnoreGapsConsensus());
+          sg.cs.setThreshold(0, viewport.isIgnoreGapsConsensus());
         }
 
         if (viewport.getConservationSelected())
index d6bfaf3..a54f9e8 100644 (file)
@@ -296,7 +296,7 @@ public class AlignViewport extends AlignmentViewport implements
       {
         globalColourScheme = UserDefinedColours.loadDefaultColours();
         ((UserColourScheme) globalColourScheme).setThreshold(0,
-                getIgnoreGapsConsensus());
+                isIgnoreGapsConsensus());
       }
 
       if (globalColourScheme != null)
index 49ff2e0..f9a9e7e 100755 (executable)
@@ -686,7 +686,7 @@ public class AnnotationLabels extends JPanel implements MouseListener,
                        MessageManager.getString("label.ignore_gaps_consensus"),
                 (aa[selectedRow].groupRef != null) ? aa[selectedRow].groupRef
                         .getIgnoreGapsConsensus() : ap.av
-                        .getIgnoreGapsConsensus());
+                        .isIgnoreGapsConsensus());
         final AlignmentAnnotation aaa = aa[selectedRow];
         cbmi.addActionListener(new ActionListener()
         {
index ce2dd81..1d59ce0 100644 (file)
@@ -1119,7 +1119,7 @@ public class Jalview2XML
       view.setShowDbRefTooltip(av.isShowDbRefs());
       view.setFollowHighlight(av.followHighlight);
       view.setFollowSelection(av.followSelection);
-      view.setIgnoreGapsinConsensus(av.getIgnoreGapsConsensus());
+      view.setIgnoreGapsinConsensus(av.isIgnoreGapsConsensus());
       if (av.getFeaturesDisplayed() != null)
       {
         jalview.schemabinding.version2.FeatureSettings fs = new jalview.schemabinding.version2.FeatureSettings();
index 8565f9f..bccbf8c 100644 (file)
@@ -2190,14 +2190,14 @@ public class PopupMenu extends JPopupMenu
       int threshold = SliderPanel.setPIDSliderSource(ap, sg.cs, getGroup()
               .getName());
 
-      sg.cs.setThreshold(threshold, ap.av.getIgnoreGapsConsensus());
+      sg.cs.setThreshold(threshold, ap.av.isIgnoreGapsConsensus());
 
       SliderPanel.showPIDSlider();
     }
     else
     // remove PIDColouring
     {
-      sg.cs.setThreshold(0, ap.av.getIgnoreGapsConsensus());
+      sg.cs.setThreshold(0, ap.av.isIgnoreGapsConsensus());
     }
 
     refresh();
index cbd0d58..f536efc 100755 (executable)
@@ -286,13 +286,15 @@ public class SliderPanel extends GSliderPanel
       }
       else
       {
-        toChange.setThreshold(i, ap.av.getIgnoreGapsConsensus());
+        toChange.setThreshold(i, ap.av.isIgnoreGapsConsensus());
       }
       if (allGroups != null && allGroups.hasNext())
       {
         while ((toChange = allGroups.next().cs) == null
                 && allGroups.hasNext())
+        {
           ;
+        }
       }
       else
       {
index c5650f5..d921ba4 100755 (executable)
@@ -916,7 +916,7 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable,
         if (cs != null)
         {
           cs.setThreshold(av.getGlobalColourScheme().getThreshold(),
-                  av.getIgnoreGapsConsensus());
+                  av.isIgnoreGapsConsensus());
         }
       }
       sg.cs = cs;
index 37824fe..44a633b 100755 (executable)
@@ -556,7 +556,7 @@ public class UserDefinedColours extends GUserDefinedColours implements
 
     if (ap != null)
     {
-      ucs.setThreshold(0, ap.av.getIgnoreGapsConsensus());
+      ucs.setThreshold(0, ap.av.isIgnoreGapsConsensus());
     }
 
     return ucs;
index d5b2f49..f4e9b1f 100644 (file)
@@ -302,7 +302,7 @@ public class AnnotationRenderer
     columnSelection = av.getColumnSelection();
     hconsensus = av.getSequenceConsensusHash();// hconsensus;
     hStrucConsensus = av.getRnaStructureConsensusHash(); // hStrucConsensus;
-    av_ignoreGapsConsensus = av.getIgnoreGapsConsensus();
+    av_ignoreGapsConsensus = av.isIgnoreGapsConsensus();
   }
 
   public int[] getProfileFor(AlignmentAnnotation aa, int column)
index d94fa5d..152f155 100644 (file)
@@ -530,12 +530,12 @@ public abstract class AlignmentViewport implements AlignViewportI,
                 || cs instanceof Blosum62ColourScheme)
         {
           sg.cs.setThreshold(viewStyle.getThreshold(),
-                  getIgnoreGapsConsensus());
+                  isIgnoreGapsConsensus());
           recalc = true;
         }
         else
         {
-          sg.cs.setThreshold(0, getIgnoreGapsConsensus());
+          sg.cs.setThreshold(0, isIgnoreGapsConsensus());
         }
 
         if (getConservationSelected())
@@ -1055,7 +1055,7 @@ public abstract class AlignmentViewport implements AlignViewportI,
   }
 
   @Override
-  public boolean getIgnoreGapsConsensus()
+  public boolean isIgnoreGapsConsensus()
   {
     return ignoreGapsInConsensusCalculation;
   }
index c754ee3..f940450 100644 (file)
@@ -158,7 +158,7 @@ public class ConsensusThread extends AlignCalcWorker implements
             && hconsensus != null)
     {
       AAFrequency.completeConsensus(consensus, hconsensus, 0,
-              hconsensus.length, alignViewport.getIgnoreGapsConsensus(),
+              hconsensus.length, alignViewport.isIgnoreGapsConsensus(),
               alignViewport.isShowSequenceLogo(), nseq);
     }
   }
index 3230a36..2249081 100644 (file)
@@ -166,7 +166,7 @@ public class StrucConsensusThread extends AlignCalcWorker implements
     {
       StructureFrequency.completeConsensus(strucConsensus, hStrucConsensus,
               0, hStrucConsensus.length,
-              alignViewport.getIgnoreGapsConsensus(),
+              alignViewport.isIgnoreGapsConsensus(),
               alignViewport.isShowSequenceLogo(), nseq);
     }
   }