|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--superwaba.ext.xplat.io.print.FontMetrics
This class is used to get the text height and width for a given font.
| Field Summary | |
protected Font |
font
|
| Constructor Summary | |
FontMetrics(Font font)
|
|
| Method Summary | |
abstract int |
getHeight()
Returns the height of the current font |
abstract int |
getTextWidth(java.lang.String s)
Returns the text width in the current font |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected Font font
| Constructor Detail |
public FontMetrics(Font font)
| Method Detail |
public abstract int getHeight()
throws PrinterException,
NotSupportedException
public abstract int getTextWidth(java.lang.String s)
throws PrinterException,
NotSupportedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||