예제 #1
0
 protected void drawAbsoluteString(
     LGraphics g, String value, int row, int col, int rowNum, int colNum) {
   int cellWidth = (scaledWidth - 2 * PADDING_X) / colNum;
   int cellHeight = (scaledHeight - 2 * PADDING_Y) / rowNum;
   int absoluteX = x + PADDING_X + col * cellWidth;
   int absoluteY = y + PADDING_Y + row * cellHeight + (cellHeight - g.getFont().getSize()) / 2;
   if (getCurWidth(row) > 0) absoluteX = getCurWidth(row) + 5;
   g.drawString(value, absoluteX, absoluteY + g.getFont().getSize());
   setCurWidth(row, absoluteX + g.getFont().stringWidth(value));
 }
예제 #2
0
 protected void drawString(LGraphics g, String message, int x, int y) {
   g.drawString(message, x + this.x, y + this.y + g.getFont().getSize());
 }
예제 #3
0
 protected void drawAbsoluteStringEx(LGraphics g, String value, int x, int y) {
   g.drawString(value, x + this.x, y + this.y + g.getFont().getSize());
 }