Class TextChunk
- java.lang.Object
-
- com.itextpdf.kernel.pdf.canvas.parser.listener.TextChunk
-
- Direct Known Subclasses:
CharacterRenderInfo
public class TextChunk extends java.lang.Object
Represents a chunk of text, it's orientation, and location relative to the orientation vector
-
-
Field Summary
Fields Modifier and Type Field Description protected ITextChunkLocation
location
protected java.lang.String
text
the text of the chunk
-
Constructor Summary
Constructors Constructor Description TextChunk(java.lang.String string, ITextChunkLocation loc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ITextChunkLocation
getLocation()
java.lang.String
getText()
(package private) void
printDiagnostics()
(package private) boolean
sameLine(TextChunk lastChunk)
-
-
-
Field Detail
-
text
protected final java.lang.String text
the text of the chunk
-
location
protected final ITextChunkLocation location
-
-
Constructor Detail
-
TextChunk
public TextChunk(java.lang.String string, ITextChunkLocation loc)
-
-
Method Detail
-
getText
public java.lang.String getText()
- Returns:
- the text captured by this chunk
-
getLocation
public ITextChunkLocation getLocation()
-
printDiagnostics
void printDiagnostics()
-
sameLine
boolean sameLine(TextChunk lastChunk)
-
-