|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.text.TabSplitCharacter
public class TabSplitCharacter
| Field Summary | |
|---|---|
static SplitCharacter |
TAB
|
| Constructor Summary | |
|---|---|
TabSplitCharacter()
|
|
| Method Summary | |
|---|---|
boolean |
isSplitCharacter(int start,
int current,
int end,
char[] cc,
PdfChunk[] ck)
Returns true if the character can split a line. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SplitCharacter TAB
| Constructor Detail |
|---|
public TabSplitCharacter()
| Method Detail |
|---|
public boolean isSplitCharacter(int start,
int current,
int end,
char[] cc,
PdfChunk[] ck)
SplitCharactertrue if the character can split a line. The splitting implementation
is free to look ahead or look behind characters to make a decision.
The default implementation is:
public boolean isSplitCharacter(int start, int current, int end, char[] cc, PdfChunk[] ck) {
char c;
if (ck == null)
c = cc[current];
else
c = (char) ck[Math.min(current, ck.length - 1)].getUnicodeEquivalent(cc[current]);
if (c <= ' ' || c == '-') {
return true;
}
if (c < 0x2e80)
return false;
return ((c >= 0x2e80 && c < 0xd7a0)
|| (c >= 0xf900 && c < 0xfb00)
|| (c >= 0xfe30 && c < 0xfe50)
|| (c >= 0xff61 && c < 0xffa0));
}
isSplitCharacter in interface SplitCharacterstart - the lower limit of cc inclusivecurrent - the pointer to the character in ccend - the upper limit of cc exclusivecc - an array of characters at least end sizedck - an array of PdfChunk. The main use is to be able to call
PdfChunk.getUnicodeEquivalent(int). It may be null
or shorter than end. If null no conversion takes place.
If shorter than end the last element is used
true if the character(s) can split a line
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||