@param g Graphics context. @return the ascent of the parsed text.
(Graphics g)
| 457 | * @return the ascent of the parsed text. |
| 458 | */ |
| 459 | public int getAscent(Graphics g) { |
| 460 | if(g==null) { |
| 461 | return 0; |
| 462 | } |
| 463 | parseText(g); |
| 464 | return ascent; |
| 465 | } |
| 466 | |
| 467 | /** |
| 468 | * @param g Graphics context. |