*/
package jalview.datamodel;
+import jalview.api.AlignmentRowsCollectionI;
+
import java.util.Iterator;
-public class AlignmentRowsCollection implements Iterable<Integer>
+public class AllRowsCollection implements AlignmentRowsCollectionI
{
int start;
HiddenSequences hidden;
- public AlignmentRowsCollection(int s, int e, AlignmentI al)
+ public AllRowsCollection(int s, int e, AlignmentI al)
{
start = s;
end = e;
return new AllRowsIterator(start, end, alignment);
}
- /**
- * Answers if the sequence at the position is hidden.
- */
+ @Override
public boolean isHidden(int seq)
{
return hidden.isHidden(seq);
}
+ @Override
public SequenceI getSequence(int seq)
{
return alignment.getSequenceAtAbsoluteIndex(seq);