Beispiel #1
0
 protected void drawString(String s, float x, float y) {
   if (mpTextSize > 1) {
     double strWidth = getStringWidth(s);
     ((Graphics3D) mG)
         .drawStringNoSlab(
             s, null, (int) (x - strWidth / 2.0), (int) (y + (double) mpTextSize / 3.0), 0);
   }
 }