Beispiel #1
0
  private void doDrawing(Graphics g) {
    Graphics2D g2d = (Graphics2D) g;
    g2d.setFont(Consts.UI.FONT);

    drawBG(g2d);
    drawCounters(g2d);
    drawFrame(g2d, block);

    int x = spacing;
    int y = spacing;
    if (visualConfig.isShowCounters()) {
      g2d.setFont(Consts.UI.TINY_FONT);
    } else {
      g2d.setFont(Consts.UI.INVISIBLE_FONT);
    }
    int pageIndex = 0;
    for (Page page : block.getPages()) {
      drawPage(g2d, x, y, pageIndex++, page);
    }
  }