|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object util.misc.TextLineBreakerStringWidth
public class TextLineBreakerStringWidth
Breaks a text into lines.
Field Summary | |
---|---|
static java.lang.String |
ELLIPSIS
ellipsis used for shortened titles and descriptions unicode character representing "..." |
Constructor Summary | |
---|---|
TextLineBreakerStringWidth()
Create the LineBreaker |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ELLIPSIS
Constructor Detail |
---|
public TextLineBreakerStringWidth()
Method Detail |
---|
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 Line
java.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 Lines
java.io.IOException
public int getStringWidth(java.lang.String str)
str
- get Width of this String
public static void resetHyphenator()
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |