|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectutil.misc.TextLineBreakerStringWidth
public class TextLineBreakerStringWidth
Breaks a text into lines.
| Constructor Summary | |
|---|---|
TextLineBreakerStringWidth()
Create the LineBreaker |
|
| Method Summary | |
|---|---|
String[] |
breakLines(Reader textReader,
int width)
Break a Text into separate Lines |
String[] |
breakLines(Reader textReader,
int width,
int maxLines)
Break a Text into separate Lines |
int |
getStringWidth(String str)
Get the Width of a String |
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 |
| Constructor Detail |
|---|
public TextLineBreakerStringWidth()
| Method Detail |
|---|
public void setSpaceWidth(int spaceWidth)
spaceWidth - new Space-Widthpublic void setMinusWidth(int minusWidth)
minusWidth - new Minus-Width
public String[] breakLines(Reader textReader,
int width)
throws IOException
textReader - Text to separatewidth - Max-Width of each Line
IOException
public String[] breakLines(Reader textReader,
int width,
int maxLines)
throws IOException
textReader - Text to separatewidth - Max-Width of each LinemaxLines - Max. amount of Lines
IOExceptionpublic int getStringWidth(String str)
str - get Width of this String
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||