public static class LocationTextExtractionStrategy.TextChunk extends Object implements Comparable<LocationTextExtractionStrategy.TextChunk>
Constructor and Description |
---|
TextChunk(String string, LocationTextExtractionStrategy.TextChunkLocation loc) |
TextChunk(String string, Vector startLocation, Vector endLocation, float charSpaceWidth) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(LocationTextExtractionStrategy.TextChunk rhs)
Compares based on orientation, perpendicular distance, then parallel distance
|
float |
distanceFromEndOf(LocationTextExtractionStrategy.TextChunk other)
Computes the distance between the end of 'other' and the beginning of this chunk in the direction of this chunk's orientation vector.
|
float |
getCharSpaceWidth() |
Vector |
getEndLocation() |
LocationTextExtractionStrategy.TextChunkLocation |
getLocation() |
Vector |
getStartLocation() |
String |
getText() |
public TextChunk(String string, Vector startLocation, Vector endLocation, float charSpaceWidth)
public TextChunk(String string, LocationTextExtractionStrategy.TextChunkLocation loc)
public String getText()
public LocationTextExtractionStrategy.TextChunkLocation getLocation()
public Vector getStartLocation()
public Vector getEndLocation()
public float getCharSpaceWidth()
public float distanceFromEndOf(LocationTextExtractionStrategy.TextChunk other)
other
- the other LocationTextExtractionStrategy.TextChunk
public int compareTo(LocationTextExtractionStrategy.TextChunk rhs)
compareTo
in interface Comparable<LocationTextExtractionStrategy.TextChunk>
rhs
- the other object
Comparable.compareTo(java.lang.Object)
Copyright © 1998–2022. All rights reserved.