From: amwaterhouse Date: Thu, 16 Mar 2006 15:31:02 +0000 (+0000) Subject: HideSequences X-Git-Tag: Root_VamJalview_2_07b+~36 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0125a426aecc7065538a13f48236dc1e8d268044;p=jalview.git HideSequences --- diff --git a/src/jalview/gui/AlignViewport.java b/src/jalview/gui/AlignViewport.java index cb977d0..23d7612 100755 --- a/src/jalview/gui/AlignViewport.java +++ b/src/jalview/gui/AlignViewport.java @@ -72,6 +72,7 @@ public class AlignViewport boolean scaleLeftWrapped = true; boolean scaleRightWrapped = true; boolean hasHiddenColumns = false; + boolean hasHiddenRows = false; // The following vector holds the features which are // currently visible, in the correct order or rendering @@ -1075,7 +1076,6 @@ public class AlignViewport { globalColourScheme.setThreshold(globalColourScheme.getThreshold(), ignoreGapsInConsensusCalculation); } - } public boolean getIgnoreGapsConsensus() @@ -1092,4 +1092,23 @@ public class AlignViewport { return isDataset; } + + public void hideSequence(SequenceI seq) + { + alignment.getHiddenSequences().hideSequence(seq); + hasHiddenRows = true; + } + + public void showSequence(int index) + { + alignment.getHiddenSequences().showSequence(index); + + if(alignment.getHiddenSequences().getSize()<1) + hasHiddenRows = false; + } + + public int adjustForHiddenSeqs(int alignmentIndex) + { + return alignment.getHiddenSequences().adjustForHiddenSeqs(alignmentIndex); + } }