util.misc
Class TextLineBreakerFontWidth
java.lang.Object
util.misc.TextLineBreakerStringWidth
util.misc.TextLineBreakerFontWidth
public class TextLineBreakerFontWidth
- extends TextLineBreakerStringWidth
Breaks a text into lines using Font-Metrics.
- Author:
- Til Schneider, www.murfman.de
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextLineBreakerFontWidth
public TextLineBreakerFontWidth(Font font)
- Create the LineBreaker
- Parameters:
font - Font to use for Width-Calculation
setFont
public void setFont(Font font)
- Set the Font to use for Width-Calculation
- Parameters:
font - Font to use
getStringWidth
public int getStringWidth(String str)
- Get the width of a String
- Overrides:
getStringWidth in class TextLineBreakerStringWidth
- Parameters:
str - Calculate Width of this String
- Returns:
- Width of String
TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)