int widthx = 1 + endx - startx;
FontMetrics fm = gg.getFontMetrics(av.getFont());
- int y = avCharHeight - fm.getDescent();
-
+ int y = avCharHeight, yOf = fm.getDescent();
+ y -= yOf;
if (av.hasHiddenColumns())
{
// draw any hidden column markers
gg.drawLine(((i - startx - 1) * avCharWidth) + (avCharWidth / 2),
y + 2,
((i - startx - 1) * avCharWidth) + (avCharWidth / 2), y
- + (fm.getDescent() * 2));
+ + (yOf * 2));
}
else
{
gg.drawLine(((i - startx - 1) * avCharWidth) + (avCharWidth / 2), y
- + fm.getDescent(), ((i - startx - 1) * avCharWidth)
- + (avCharWidth / 2), y + (fm.getDescent() * 2));
+ + yOf,
+ ((i - startx - 1) * avCharWidth) + (avCharWidth / 2), y
+ + (yOf * 2));
}
}