protected static class DefaultLineWrapper.CellBuffer extends Object
column).| Modifier and Type | Field and Description |
|---|---|
private StringBuilder |
buffer |
private int |
maxLength |
private int |
rest |
| Modifier | Constructor and Description |
|---|---|
protected |
CellBuffer()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
append(char c) |
protected int |
append(CharSequence text) |
protected int |
append(CharSequence text,
int start,
int end) |
int |
getMaxLength()
This method gets the maximum length of this buffer and the according cell.
|
int |
getRest()
This method gets the rest, which is the number of characters available until the buffer has
reached its end.
|
protected int |
length()
This method gets the
length of this buffer. |
protected void |
reset(int maximumLength)
This method clears this buffer.
|
String |
toString() |
private final StringBuilder buffer
private int maxLength
private int rest
protected void reset(int maximumLength)
maximumLength - is the maximum length this buffer should reach. It should therefore be set to the
space available for the current cell (column-width potentially
reduced by indent, etc.).public int getMaxLength()
reseted.public int getRest()
append(CharSequence)protected int append(CharSequence text)
text - is the text to append.rest.Appendable.append(CharSequence)protected int append(CharSequence text, int start, int end)
text - is the CharSequence from which a subsequence will be appended.start - is the index of the first character in the subsequence.end - is the index of the character following the last character in the subsequence.rest.Appendable.append(CharSequence, int, int)protected int append(char c)
c - is the character to append.rest.Appendable.append(char)protected int length()
length of this buffer.Copyright © 2001–2016 mmm-Team. All rights reserved.