author | kleing |
Wed, 07 May 2003 16:38:55 +0200 | |
changeset 13968 | 689868b99bde |
child 13970 | 4aef7117817b |
permissions | -rw-r--r-- |
13968 | 1 |
package GraphBrowser; |
2 |
||
3 |
import java.awt.FontMetrics; |
|
4 |
||
5 |
public class AWTFontMetrics implements AbstractFontMetrics { |
|
6 |
private FontMetrics fontMetrics; |
|
7 |
||
8 |
public AWTFontMetrics(FontMetrics m) { |
|
9 |
fontMetrics = m; |
|
10 |
} |
|
11 |
||
12 |
public int stringWidth(String str) { |
|
13 |
return fontMetrics.stringWidth(str); |
|
14 |
} |
|
15 |
||
16 |
public int getAscent() { |
|
17 |
return fontMetrics.getAscent(); |
|
18 |
} |
|
19 |
||
20 |
public int getDescent() { |
|
21 |
return fontMetrics.getDescent(); |
|
22 |
} |
|
23 |
} |