gnu.awt.xlib

Class XFontMetrics

Implemented Interfaces:
Serializable

public class XFontMetrics
extends FontMetrics

See Also:
Serialized Form

Field Summary

Fields inherited from class java.awt.FontMetrics

font

Constructor Summary

XFontMetrics(Font xfont, Font awtFont)

Method Summary

int
getAscent()
int
getDescent()
int
getMaxAscent()
int
getMaxDescent()
int
stringWidth(String str)

Methods inherited from class java.awt.FontMetrics

bytesWidth, charWidth, charWidth, charsWidth, getAscent, getDescent, getFont, getHeight, getLeading, getLineMetrics, getLineMetrics, getLineMetrics, getLineMetrics, getMaxAdvance, getMaxAscent, getMaxCharBounds, getMaxDecent, getMaxDescent, getStringBounds, getStringBounds, getStringBounds, getStringBounds, getWidths, hasUniformLineMetrics, stringWidth, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

XFontMetrics

public XFontMetrics(Font xfont,
                    Font awtFont)

Method Details

getAscent

public int getAscent()
Overrides:
getAscent in interface FontMetrics

getDescent

public int getDescent()
Overrides:
getDescent in interface FontMetrics

getMaxAscent

public int getMaxAscent()
Overrides:
getMaxAscent in interface FontMetrics

getMaxDescent

public int getMaxDescent()
Overrides:
getMaxDescent in interface FontMetrics

stringWidth

public int stringWidth(String str)
Overrides:
stringWidth in interface FontMetrics

Copyright (C) 2000 Free Software Foundation This file is part of libgcj. This software is copyrighted work licensed under the terms of the Libgcj License. Please consult the file "LIBGCJ_LICENSE" for details.