JAL-1161 changed signature to allow clipping bounds for panel to be obtained
[jalview.git] / src / jalview / gui / AnnotationPanel.java
index 93647a8..90f4595 100755 (executable)
@@ -950,4 +950,13 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
   {
     return imgWidth;
   }
+  private int[] bounds = new int[2];
+  @Override
+  public int[] getVisibleVRange()
+  {
+    int sOffset=-ap.alabels.scrollOffset;
+    int visHeight = sOffset+ap.annotationSpaceFillerHolder.getHeight();
+    bounds[0] = sOffset; bounds[1]=visHeight;
+    return bounds;
+  }
 }