public static class LocationTextExtractionStrategy.TextChunk extends Object implements Comparable<LocationTextExtractionStrategy.TextChunk>
Modifier and Type | Field and Description |
---|---|
protected LocationTextExtractionStrategy.ITextChunkLocation |
location |
protected String |
text
the text of the chunk
|
Constructor and Description |
---|
TextChunk(String string, LocationTextExtractionStrategy.ITextChunkLocation loc) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(LocationTextExtractionStrategy.TextChunk rhs)
Compares based on orientation, perpendicular distance, then parallel distance
|
LocationTextExtractionStrategy.ITextChunkLocation |
getLocation() |
String |
getText() |
protected final String text
protected final LocationTextExtractionStrategy.ITextChunkLocation location
public TextChunk(String string, LocationTextExtractionStrategy.ITextChunkLocation loc)
public String getText()
public LocationTextExtractionStrategy.ITextChunkLocation getLocation()
public int compareTo(LocationTextExtractionStrategy.TextChunk rhs)
compareTo
in interface Comparable<LocationTextExtractionStrategy.TextChunk>
Comparable.compareTo(java.lang.Object)
Copyright © 1998–2017 iText Group NV. All rights reserved.