public void fastPaint(int vertical)
{
- if (gg == null)
+ if (gg == null || av.getWrapAlignment())
{
repaint();
return;
int cHeight = alheight * avcharHeight + hgap + annotationHeight;
- int rowSize = av.getRanges().getEndRes()
- - av.getRanges().getStartRes();
+ int rowSize = av.getRanges().getViewportWidth();
// hardwired italic IDs in applet currently
Font italic = new Font(av.getFont().getName(), Font.ITALIC, av
* draw repeating sequence ids until out of sequence data or
* out of visible space, whichever comes first
*/
- for (int ypos = hgap, row = av.getRanges().getStartRes(); (ypos <= getSize().height)
- && (row < maxwidth); ypos += cHeight, row += rowSize)
+ int ypos = hgap;
+ int row = av.getRanges().getStartRes();
+ while ((ypos <= getHeight()) && (row < maxwidth))
{
for (int i = starty; i < alheight; i++)
{
labels.drawComponent(gg, getSize().width);
gg.translate(0, -ypos - (alheight * avcharHeight));
}
+ ypos += cHeight;
+ row += rowSize;
}
}
ViewportRanges ranges = av.getRanges();
- int rowSize = ranges.getEndRes() - ranges.getStartRes();
+ int rowSize = ranges.getViewportWidth();
/*
* draw repeating sequence ids until out of sequence data or
* out of visible space, whichever comes first
*/
int ypos = hgap;
- for (int row = ranges.getStartRes(); (ypos <= getHeight())
- && (row < maxwidth);)
+ int row = ranges.getStartRes();
+ while ((ypos <= getHeight()) && (row < maxwidth))
{
for (int i = starty; i < alheight; i++)
{