import jalview.structure.VamsasSource;
import jalview.util.MessageManager;
import jalview.viewmodel.AlignmentViewport;
+import jalview.viewmodel.ViewportRanges;
import jalview.ws.params.AutoCalcSetting;
import java.awt.Container;
if (setGrid)
{
FontMetrics fm = c.getFontMetrics(font);
+ ViewportRanges.sTest += ("AlignViewport.setFont " + fm.getHeight()
+ + " "
+ + font + "\n");
int ww = fm.charWidth('M');
setCharHeight(fm.getHeight());
setCharWidth(ww);
ranges.setViewportWidth(widthInRes);
ranges.setViewportHeight(heightInSeq);
+ ViewportRanges.sTest += "AP.resize chht=" + av.getCharHeight()
+ + "canvHt=" + getSeqPanel().seqCanvas.getHeight() + " "
+ + heightInSeq + "\n";
}
}
int y = vscroll.getValue();
int height = getSeqPanel().seqCanvas.getHeight() / av.getCharHeight();
+
// if we're scrolling to the position we're already at, stop
// this prevents infinite recursion of events when the scroll/viewport
// ranges values are the same
{
return;
}
+
+ ViewportRanges.sTest += "AP.valChanged chht=" + av.getCharHeight()
+ + "canvHt=" + getSeqPanel().seqCanvas.getHeight() + " "
+ + height + "\n";
+
ranges.setViewportStartAndHeight(y, height);
}
repaint();