|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.qswing.graphics.FontMetrics
Font Metrics.
Constructor Summary | |
FontMetrics(Font font)
Constructs new FontMetrics for the specified font. |
Method Summary | |
void |
dispose()
Disposes the object. |
protected void |
finalize()
|
int |
getAscent()
Returns font ascent. |
int |
getDescent()
Returns font descent. |
Font |
getFont()
Returns font. |
int |
getHeight()
Returns font height. |
int |
getLeading()
Returns font leading. |
boolean |
isDisposed()
Returns true if the object is disposed. |
int |
stringWidth(java.lang.String str)
Returns width of the specified string. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FontMetrics(Font font)
font
- the specified font
java.lang.IllegalArgumentException
- if the font is null
java.lang.RuntimeException
- if native font metrics creation failedMethod Detail |
public Font getFont()
public int stringWidth(java.lang.String str)
str
- the string
public int getAscent()
public int getDescent()
public int getHeight()
public int getLeading()
public final boolean isDisposed()
isDisposed
in interface Disposable
public final void dispose()
dispose
in interface Disposable
protected final void finalize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |