X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FVisibleColsCollection.java;h=c3d0ab420ea07fcf01b67a80e66a2cd2cb6d0676;hb=fa5b03518dd51a47066670e6782ca81c792b6a29;hp=8b6c2a4e549850f20a5c85482a1d19f4c57fedc7;hpb=536a4a9c407a4c07b71e86e75135eaa2ba5e8850;p=jalview.git diff --git a/src/jalview/datamodel/VisibleColsCollection.java b/src/jalview/datamodel/VisibleColsCollection.java index 8b6c2a4e..c3d0ab4 100644 --- a/src/jalview/datamodel/VisibleColsCollection.java +++ b/src/jalview/datamodel/VisibleColsCollection.java @@ -27,21 +27,22 @@ import java.util.Iterator; public class VisibleColsCollection implements AlignmentColsCollectionI { int start; + int end; HiddenColumns hidden; - public VisibleColsCollection(int s, int e, HiddenColumns hiddenCols) + public VisibleColsCollection(int s, int e, AlignmentI al) { start = s; end = e; - hidden = hiddenCols; + hidden = al.getHiddenColumns(); } @Override public Iterator iterator() { - return new VisibleColsIterator(start, end, hidden); + return hidden.getVisibleColsIterator(start, end); } @Override @@ -50,4 +51,10 @@ public class VisibleColsCollection implements AlignmentColsCollectionI return false; } + @Override + public boolean hasHidden() + { + return false; + } + }