TV-Browser 2.7.5 API

util.ui
Class TextLineBreaker

java.lang.Object
  extended by 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

Constructor Summary
TextLineBreaker()
          Deprecated.  
 
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
 

Constructor Detail

TextLineBreaker

public TextLineBreaker()
Deprecated. 
Method Detail

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 break
font - Font to use for Width-Calculation
width - max. Widht
maxLines - Max. of Lines
Returns:
Splitted Text
Throws:
IOException

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)