예제 #1
0
 /**
  * Draws a string using baseline coordinates.
  *
  * @param str The string to be drawn.
  * @param x The x-coordinate of the start of left edge of the text block.
  * @param y The y-coordinate of the baseline of the text.
  * @param textDecoration Text decoration bitmask (See Style's TEXT_DECORATION_* constants)
  * @see #drawString(java.lang.String, int, int, int)
  */
 public void drawStringBaseline(String str, int x, int y, int textDecoration) {
   drawString(str, x, y - current.getAscent(), textDecoration);
 }
예제 #2
0
 /**
  * Draws a string using baseline coordinates.
  *
  * @param str The string to be drawn.
  * @param x The x-coordinate of the start of left edge of the text block.
  * @param y The y-coordinate of the baseline of the text.
  * @see #drawString(java.lang.String, int, int)
  */
 public void drawStringBaseline(String str, int x, int y) {
   drawString(str, x, y - current.getAscent());
 }