From 0125a426aecc7065538a13f48236dc1e8d268044 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 16 Mar 2006 15:31:02 +0000 Subject: [PATCH] HideSequences --- src/jalview/gui/AlignViewport.java | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) 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); + } } -- 1.7.10.2