AbstractFontMetrics.java 581 B

1234567891011121314151617181920
  1. /***************************************************************************
  2. Title: GraphBrowser/AWTFontMetrics.java
  3. ID: $Id$
  4. Author: Gerwin Klein, TU Muenchen
  5. Copyright 2003 TU Muenchen
  6. License: GPL (GNU GENERAL PUBLIC LICENSE)
  7. AbstractFontMetrics avoids dependency on java.awt.FontMetrics in
  8. batch mode.
  9. ***************************************************************************/
  10. package GraphBrowser;
  11. public interface AbstractFontMetrics {
  12. public int stringWidth(String str);
  13. public int getAscent();
  14. public int getDescent();
  15. }