public class TextLineBreakerFontWidth extends TextLineBreakerStringWidth
Constructor and Description |
---|
TextLineBreakerFontWidth(Font font)
Create the LineBreaker
|
Modifier and Type | Method and Description |
---|---|
int |
getStringWidth(String str)
Get the width of a String
|
void |
setFont(Font font)
Set the Font to use for Width-Calculation
|
breakLines, breakLines, setMinusWidth, setSpaceWidth
public TextLineBreakerFontWidth(Font font)
font
- Font to use for Width-Calculationpublic void setFont(Font font)
font
- Font to usepublic int getStringWidth(String str)
getStringWidth
in class TextLineBreakerStringWidth
str
- Calculate Width of this StringTV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)