HideSequences
authoramwaterhouse <Andrew Waterhouse>
Thu, 16 Mar 2006 15:31:02 +0000 (15:31 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 16 Mar 2006 15:31:02 +0000 (15:31 +0000)
src/jalview/gui/AlignViewport.java

index cb977d0..23d7612 100755 (executable)
@@ -72,6 +72,7 @@ public class AlignViewport
     boolean scaleLeftWrapped = true;\r
     boolean scaleRightWrapped = true;\r
     boolean hasHiddenColumns = false;\r
+    boolean hasHiddenRows = false;\r
 \r
     // The following vector holds the features which are\r
     // currently visible, in the correct order or rendering\r
@@ -1075,7 +1076,6 @@ public class AlignViewport
       {\r
         globalColourScheme.setThreshold(globalColourScheme.getThreshold(), ignoreGapsInConsensusCalculation);\r
       }\r
-\r
     }\r
 \r
     public boolean getIgnoreGapsConsensus()\r
@@ -1092,4 +1092,23 @@ public class AlignViewport
     {\r
       return isDataset;\r
     }\r
+\r
+    public void hideSequence(SequenceI seq)\r
+    {\r
+      alignment.getHiddenSequences().hideSequence(seq);\r
+      hasHiddenRows = true;\r
+    }\r
+\r
+    public void showSequence(int index)\r
+    {\r
+      alignment.getHiddenSequences().showSequence(index);\r
+\r
+      if(alignment.getHiddenSequences().getSize()<1)\r
+        hasHiddenRows = false;\r
+    }\r
+\r
+    public int adjustForHiddenSeqs(int alignmentIndex)\r
+    {\r
+      return alignment.getHiddenSequences().adjustForHiddenSeqs(alignmentIndex);\r
+    }\r
 }\r