JAL-2388 Alignment col and row collections with iterators
[jalview.git] / src / jalview / viewmodel / OverviewDimensionsWithHidden.java
index 575167a..63172bf 100644 (file)
  */
 package jalview.viewmodel;
 
-import jalview.datamodel.AlignmentColsCollection;
+import jalview.api.AlignmentColsCollectionI;
+import jalview.api.AlignmentRowsCollectionI;
 import jalview.datamodel.AlignmentI;
-import jalview.datamodel.AlignmentRowsCollection;
+import jalview.datamodel.AllColsCollection;
+import jalview.datamodel.AllRowsCollection;
 import jalview.datamodel.ColumnSelection;
 import jalview.datamodel.HiddenSequences;
 
@@ -208,19 +210,19 @@ public class OverviewDimensionsWithHidden extends OverviewDimensions
   }
 
   @Override
-  public AlignmentColsCollection getColumns(ViewportRanges ranges,
+  public AlignmentColsCollectionI getColumns(ViewportRanges ranges,
           ColumnSelection hiddenCols)
   {
-    return new AlignmentColsCollection(0,
+    return new AllColsCollection(0,
             ranges.getAbsoluteAlignmentWidth() - 1,
             hiddenCols);
   }
 
   @Override
-  public AlignmentRowsCollection getRows(ViewportRanges ranges,
+  public AlignmentRowsCollectionI getRows(ViewportRanges ranges,
           AlignmentI al)
   {
-    return new AlignmentRowsCollection(0,
+    return new AllRowsCollection(0,
             ranges.getAbsoluteAlignmentHeight() - 1,
             al);
   }