(Graphics g)
| 1028 | } |
| 1029 | |
| 1030 | public int getWidth(Graphics g) { |
| 1031 | if((g==null)||(f==null)||(s.length()==0)) { |
| 1032 | return 0; |
| 1033 | } |
| 1034 | return g.getFontMetrics(f).stringWidth(s.toString()); |
| 1035 | } |
| 1036 | |
| 1037 | public int getHeight(Graphics g) { |
| 1038 | if((g==null)||(f==null)) { |
no test coverage detected