ViewportRanges to AlignmentPanel from trying to set the ranges to
invalid values.
*/
public void setScrollValues(int xpos, int ypos)
{
+
+ System.out.println("AlignmentPanel.setScrollValues " + xpos + "_" + ypos);
int x = xpos;
int y = ypos;
hextent = getSeqPanel().seqCanvas.getWidth() / av.getCharWidth();
vextent = getSeqPanel().seqCanvas.getHeight() / av.getCharHeight();
+ System.out.println("AlignmentPanel.setScrollValues found hext=" + hextent + " vext=" + vextent + " width=" + width + " height=" + height
+ );
+
+
if (hextent > width)
{
hextent = width;
vextent = height;
}
+
+
if ((hextent + x) > width)
{
x = width - hextent;
y = height - vextent;
}
+
+ System.out.println("AlignmentPanel.setScrollValues resetting these to " + x + "_" + y
+ + " based on hext=" + hextent + " vext=" + vextent + " width=" + width + " height=" + height
+ );
+
if (y < 0)
{
y = 0;
{
if (end == 3 && this.endSeq == 14 || end == 13 && this.endSeq == 3) {
- new NullPointerException().printStackTrace();
+ new NullPointerException().printStackTrace(System.out);
System.out.println("ViewportRange updateStartEndSeq " + start + " " + end + " " + Thread.currentThread());
}
int oldstartseq = this.startSeq;