JAL-2388 Alignment col and row collections with iterators
[jalview.git] / src / jalview / viewmodel / OverviewDimensionsAllVisible.java
index 21f0be6..02f3e17 100644 (file)
@@ -1,8 +1,10 @@
 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;
 
@@ -136,18 +138,18 @@ public class OverviewDimensionsAllVisible extends OverviewDimensions
   }
 
   @Override
-  public AlignmentColsCollection getColumns(ViewportRanges ranges,
+  public AlignmentColsCollectionI getColumns(ViewportRanges ranges,
           ColumnSelection hiddenCols)
   {
-    return new AlignmentColsCollection(0,
+    return new AllColsCollection(0,
             ranges.getVisibleAlignmentWidth() - 1, hiddenCols);
   }
 
   @Override
-  public AlignmentRowsCollection getRows(ViewportRanges ranges,
+  public AlignmentRowsCollectionI getRows(ViewportRanges ranges,
           AlignmentI al)
   {
-    return new AlignmentRowsCollection(0,
+    return new AllRowsCollection(0,
             ranges.getVisibleAlignmentHeight() - 1, al);
   }