Beispiel #1
0
 private void drawCounters(Graphics2D g2d) {
   if (visualConfig.isShowCounters()) {
     g2d.setFont(Consts.UI.SMALL_FONT);
     String index = "(" + planeIndex + "," + blockIndex + ")";
     String blockCounters = "v=" + block.getValidCounter() + ",e=" + block.getEraseCounter();
     String counters = index + " " + blockCounters + " " + block.getStatusName();
     g2d.setColor(block.getStatusColor());
     g2d.drawString(counters, spacing, spacing + blockHeight + 13);
   }
 }