Merge branch 'feature/JAL-2664' into feature/JAL-2527
authorkiramt <k.mourao@dundee.ac.uk>
Wed, 30 Aug 2017 07:11:40 +0000 (08:11 +0100)
committerkiramt <k.mourao@dundee.ac.uk>
Wed, 30 Aug 2017 07:11:40 +0000 (08:11 +0100)
1  2 
src/jalview/api/AlignmentColsCollectionI.java
src/jalview/api/AlignmentRowsCollectionI.java
src/jalview/datamodel/AllColsCollection.java
src/jalview/datamodel/AllRowsCollection.java
src/jalview/datamodel/VisibleColsCollection.java
src/jalview/datamodel/VisibleRowsCollection.java
src/jalview/renderer/OverviewRenderer.java

@@@ -59,4 -59,11 +59,10 @@@ public class AllRowsCollection implemen
    {
      return alignment.getSequenceAtAbsoluteIndex(seq);
    }
+   @Override
+   public boolean hasHidden()
+   {
+     return (hidden.getSize() > 0);
+   }
  }
 -
@@@ -56,4 -56,11 +56,10 @@@ public class VisibleRowsCollection impl
    {
      return alignment.getSequenceAtAbsoluteIndex(seq);
    }
+   @Override
+   public boolean hasHidden()
+   {
+     return false;
+   }
  }
 -
@@@ -102,11 -106,12 +106,11 @@@ public class OverviewRendere
          {
            break;
          }
+     
          // calculate where this column extends to in pixels
 -        int endCol = Math.min(
 -                Math.round((colIndex + 1) * pixelsPerCol) - 1,
 +        int endCol = Math.min(Math.round((colIndex + 1) * pixelsPerCol) - 1,
                  miniMe.getWidth() - 1);
+     
          // don't do expensive colour determination if we're not going to use it
          // NB this is important to avoid performance issues in the overview
          // panel