lib/browser/GraphBrowser/AWTFontMetrics.java
changeset 13968 689868b99bde
child 13970 4aef7117817b
equal deleted inserted replaced
13967:9cdab3186c0b 13968:689868b99bde
       
     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 }