Package com.itextpdf.text
Class TabSplitCharacter
- java.lang.Object
-
- com.itextpdf.text.TabSplitCharacter
-
- All Implemented Interfaces:
SplitCharacter
public class TabSplitCharacter extends java.lang.Object implements SplitCharacter
-
-
Field Summary
Fields Modifier and Type Field Description static SplitCharacter
TAB
-
Constructor Summary
Constructors Constructor Description TabSplitCharacter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSplitCharacter(int start, int current, int end, char[] cc, PdfChunk[] ck)
Returnstrue
if the character can split a line.
-
-
-
Field Detail
-
TAB
public static final SplitCharacter TAB
-
-
Method Detail
-
isSplitCharacter
public boolean isSplitCharacter(int start, int current, int end, char[] cc, PdfChunk[] ck)
Description copied from interface:SplitCharacter
Returnstrue
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)); }
- Specified by:
isSplitCharacter
in interfaceSplitCharacter
- Parameters:
start
- the lower limit ofcc
inclusivecurrent
- the pointer to the character incc
end
- the upper limit ofcc
exclusivecc
- an array of characters at leastend
sizedck
- an array ofPdfChunk
. The main use is to be able to callPdfChunk.getUnicodeEquivalent(int)
. It may benull
or shorter thanend
. Ifnull
no conversion takes place. If shorter thanend
the last element is used- Returns:
true
if the character(s) can split a line
-
-