+ boxHeight = Math.round((float) vpheight * sequencesHeight / alheight);
+ }
+
+ /**
+ * Answers if a mouse position is in the overview's red box
+ *
+ * @param x
+ * mouse x position
+ * @param y
+ * mouse y position
+ * @return true if (x,y) is inside the box
+ */
+ protected boolean isPositionInBox(int x, int y)
+ {
+ return (x > boxX && y > boxY && boxX + x < boxWidth
+ && boxY + y < boxHeight);