|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object util.misc.TextLineBreakerStringWidth util.misc.TextLineBreakerFontWidth
public class TextLineBreakerFontWidth
Breaks a text into lines using Font-Metrics.
Field Summary |
---|
Fields inherited from class util.misc.TextLineBreakerStringWidth |
---|
ELLIPSIS |
Constructor Summary | |
---|---|
TextLineBreakerFontWidth(java.awt.Font font)
Create the LineBreaker |
Method Summary | |
---|---|
int |
getStringWidth(java.lang.String str)
Get the width of a String |
void |
setFont(java.awt.Font font)
Set the Font to use for Width-Calculation |
Methods inherited from class util.misc.TextLineBreakerStringWidth |
---|
breakLines, breakLines, resetHyphenator, setMinusWidth, setSpaceWidth |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextLineBreakerFontWidth(java.awt.Font font)
font
- Font to use for Width-CalculationMethod Detail |
---|
public void setFont(java.awt.Font font)
font
- Font to usepublic int getStringWidth(java.lang.String str)
getStringWidth
in class TextLineBreakerStringWidth
str
- Calculate Width of this String
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |