JAL-2388 New rendering code, extensions to support hiding hidden cols
[jalview.git] / src / jalview / viewmodel / ViewportRanges.java
index c91d2d9..18703b4 100644 (file)
@@ -79,6 +79,23 @@ public class ViewportRanges extends ViewportProperties
   }
 
   /**
+   * Get alignment width in cols, excluding hidden cols
+   */
+  public int getVisibleAlignmentWidth()
+  {
+    // TODO need access to hidden columns here
+    return al.getWidth(); // - hidden columns
+  }
+
+  /**
+   * Get alignment height in rows, excluding hidden rows
+   */
+  public int getVisibleAlignmentHeight()
+  {
+    return al.getHeight();
+  }
+
+  /**
    * Set first residue visible in the viewport
    * 
    * @param res