Comparable<LocationTextExtractionStrategy.TextChunk>
public static class LocationTextExtractionStrategy.TextChunk extends Object implements Comparable<LocationTextExtractionStrategy.TextChunk>
Constructor | Description |
---|---|
TextChunk(String string,
Vector startLocation,
Vector endLocation,
float charSpaceWidth) |
Modifier and Type | Method | 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() |
|
Vector |
getStartLocation() |
|
String |
getText() |
|
boolean |
sameLine(LocationTextExtractionStrategy.TextChunk as) |
public Vector getStartLocation()
public Vector getEndLocation()
public String getText()
public float getCharSpaceWidth()
public boolean sameLine(LocationTextExtractionStrategy.TextChunk as)
as
- the location to compare topublic float distanceFromEndOf(LocationTextExtractionStrategy.TextChunk other)
other
- public int compareTo(LocationTextExtractionStrategy.TextChunk rhs)
compareTo
in interface Comparable<LocationTextExtractionStrategy.TextChunk>
Comparable.compareTo(java.lang.Object)
Copyright © 2018. All rights reserved.