util.ui
Class TextLineBreaker
java.lang.Object
util.ui.TextLineBreaker
Deprecated.
public class TextLineBreaker
- extends Object
Breaks a text into lines.
This class is deprecated. Please use util.misc.TextLineBreakerFontWidth instead
- Author:
- Til Schneider, www.murfman.de
|
Method Summary |
String[] |
breakLines(Reader textReader,
Font font,
int width,
int maxLines)
Deprecated. Returns a splitted Version of the String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextLineBreaker
public TextLineBreaker()
- Deprecated.
breakLines
public String[] breakLines(Reader textReader,
Font font,
int width,
int maxLines)
throws IOException
- Deprecated.
- Returns a splitted Version of the String. The String is splitted if a Line
reaches width. Width is a Pixel-Value. The width of the current String is
calculated using the FontMetrics of the given Font
- Parameters:
textReader - String to breakfont - Font to use for Width-Calculationwidth - max. WidhtmaxLines - Max. of Lines
- Returns:
- Splitted Text
- Throws:
IOException
TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)