JAL-1161 changed signature to allow clipping bounds for panel to be obtained
[jalview.git] / src / jalview / appletgui / AnnotationPanel.java
index 540a0e0..f4b2212 100755 (executable)
@@ -653,4 +653,14 @@ public class AnnotationPanel extends Panel implements AwtRenderPanelI,
   {
     return imgWidth;
   }
+  private int[] bounds = new int[2];
+  @Override
+  public int[] getVisibleVRange()
+  {
+    int sOffset=-ap.alabels.scrollOffset;
+    int visHeight = sOffset+ap.annotationPanelHolder.getHeight();
+    bounds[0] = sOffset; bounds[1]=visHeight;
+    return bounds;
+  }
+
 }