com.lowagie.text
Interface SplitCharacter
- PdfChunk
public interface SplitCharacter
Interface for customizing the split character.
- Paulo Soares (psoares@consiste.pt)
boolean | isSplitCharacter(int start, int current, int end, cc[] , ck[] ) - Returns
true if the character can split a line.
|
isSplitCharacter
public boolean isSplitCharacter(int start,
int current,
int end,
cc[] ,
ck[] )
Returns
true
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 = ck[Math.min(current, ck.length - 1)].getUnicodeEquivalent(cc[current]);
if (c <= ' ' || c == '-') {
return true;
}
if (c <320x2e80)
return false;
return ((c >= 0x2e80 && c <320xd7a0)
|| (c >= 0xf900 && c <320xfb00)
|| (c >= 0xfe30 && c <320xfe50)
|| (c >= 0xff61 && c <320xffa0));
}
start
- the lower limit of cc
inclusivecurrent
- the pointer to the character in cc
end
- the upper limit of cc
exclusive
true
if the character(s) can split a line