maxX = (i - startx + 1) * avcharWidth + fm.stringWidth(string);
}
- gg.drawLine(
-((i - startx - 1) * avcharWidth) + (avcharWidth / 2),
+ gg.drawLine(((i - startx - 1) * avcharWidth) + (avcharWidth / 2),
y + 2,
- ((i - startx - 1) * avcharWidth) + (avcharWidth / 2),
- y + (fm.getDescent() * 2));
+ ((i - startx - 1) * avcharWidth) + (avcharWidth / 2), y
+ + (fm.getDescent() * 2));
}
else
{
- gg.drawLine(
-((i - startx - 1) * avcharWidth) + (avcharWidth / 2),
- y + fm.getDescent(),
- ((i - startx - 1) * avcharWidth)
- + (avcharWidth / 2),
- y + (fm.getDescent() * 2));
+ gg.drawLine(((i - startx - 1) * avcharWidth) + (avcharWidth / 2), y
+ + fm.getDescent(), ((i - startx - 1) * avcharWidth)
+ + (avcharWidth / 2), y + (fm.getDescent() * 2));
}
}
continue;
}
- gg.fillPolygon(new int[]
- { res * avcharWidth - avcharHeight / 4,
+ gg.fillPolygon(new int[] { res * avcharWidth - avcharHeight / 4,
res * avcharWidth + avcharHeight / 4, res * avcharWidth },
- new int[]
- { y - avcharHeight / 2, y - avcharHeight / 2, y + 8 },
- 3);
+ new int[] { y - avcharHeight / 2, y - avcharHeight / 2,
+ y + 8 }, 3);
}
}