protected int alheight;
+ protected int transX;
+
+ protected int transY;
+
/**
* Create an OverviewDimensions object
*
public abstract void updateViewportFromMouse(int mousex, int mousey,
HiddenSequences hiddenSeqs, HiddenColumns hiddenCols);
+ public abstract void adjustViewportFromMouse(int mousex, int mousey,
+ HiddenSequences hiddenSeqs, HiddenColumns hiddenCols);
+
+ public abstract void setDragPoint(int x, int y,
+ HiddenSequences hiddenSeqs, HiddenColumns hiddenCols);
+
+ protected abstract void updateViewportFromTopLeft(int mousex, int mousey,
+ HiddenSequences hiddenSeqs, HiddenColumns hiddenCols);
+
/**
* Set the overview panel's box position to match the viewport
*
// boxHeight is the height in sequences translated to pixels
boxHeight = Math.round((float) vpheight * sequencesHeight / alheight);
+
+ System.out.println("Update box: x: " + boxX);
}
/**
*/
public boolean isPositionInBox(int x, int y)
{
- return (x > boxX && y > boxY && boxX + x < boxWidth
- && boxY + y < boxHeight);
+ return (x > boxX && y > boxY && x < boxX + boxWidth
+ && y < boxY + boxHeight);
}
- public void setMousePosition(int x, int y)
- {
+ protected abstract int getLeftXFromCentreX(int mousex, HiddenColumns hidden);
+
+ protected abstract int getTopYFromCentreY(int mousey,
+ HiddenSequences hidden);
- }
}
\ No newline at end of file