public class TextLineBreakerStringWidth
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELLIPSIS
ellipsis used for shortened titles and descriptions
unicode character representing "..." |
Constructor and Description |
---|
TextLineBreakerStringWidth()
Create the LineBreaker
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
breakLines(java.io.Reader textReader,
int width)
Break a Text into separate Lines
|
java.lang.String[] |
breakLines(java.io.Reader textReader,
int width,
int maxLines)
Break a Text into separate Lines
|
int |
getStringWidth(java.lang.String str)
Get the Width of a String
|
static void |
resetHyphenator()
to be used by Settings.handleChangedSettings()
|
void |
setMinusWidth(int minusWidth)
Set the Width of a Minus Character
|
void |
setSpaceWidth(int spaceWidth)
Set the Width of a Space Character
|
public static final java.lang.String ELLIPSIS
public TextLineBreakerStringWidth()
public void setSpaceWidth(int spaceWidth)
spaceWidth
- new Space-Widthpublic void setMinusWidth(int minusWidth)
minusWidth
- new Minus-Widthpublic java.lang.String[] breakLines(java.io.Reader textReader, int width) throws java.io.IOException
textReader
- Text to separatewidth
- Max-Width of each Linejava.io.IOException
public java.lang.String[] breakLines(java.io.Reader textReader, int width, int maxLines) throws java.io.IOException
textReader
- Text to separatewidth
- Max-Width of each LinemaxLines
- Max. amount of Linesjava.io.IOException
public int getStringWidth(java.lang.String str)
str
- get Width of this Stringpublic static void resetHyphenator()
TV-Browser 3.4.3, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)