public static class LocationTextExtractionStrategy.TextChunkLocationDefaultImp extends Object implements LocationTextExtractionStrategy.TextChunkLocation
| Constructor and Description |
|---|
TextChunkLocationDefaultImp(Vector startLocation,
Vector endLocation,
float charSpaceWidth) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(LocationTextExtractionStrategy.TextChunkLocation other) |
float |
distanceFromEndOf(LocationTextExtractionStrategy.TextChunkLocation 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 |
distParallelEnd() |
float |
distParallelStart() |
int |
distPerpendicular() |
float |
getCharSpaceWidth() |
Vector |
getEndLocation() |
Vector |
getStartLocation() |
boolean |
isAtWordBoundary(LocationTextExtractionStrategy.TextChunkLocation previous) |
int |
orientationMagnitude() |
boolean |
sameLine(LocationTextExtractionStrategy.TextChunkLocation as) |
public int orientationMagnitude()
orientationMagnitude in interface LocationTextExtractionStrategy.TextChunkLocationpublic int distPerpendicular()
distPerpendicular in interface LocationTextExtractionStrategy.TextChunkLocationpublic float distParallelStart()
distParallelStart in interface LocationTextExtractionStrategy.TextChunkLocationpublic float distParallelEnd()
distParallelEnd in interface LocationTextExtractionStrategy.TextChunkLocationpublic Vector getStartLocation()
getStartLocation in interface LocationTextExtractionStrategy.TextChunkLocationpublic Vector getEndLocation()
getEndLocation in interface LocationTextExtractionStrategy.TextChunkLocationpublic float getCharSpaceWidth()
getCharSpaceWidth in interface LocationTextExtractionStrategy.TextChunkLocationpublic boolean sameLine(LocationTextExtractionStrategy.TextChunkLocation as)
sameLine in interface LocationTextExtractionStrategy.TextChunkLocationas - the location to compare topublic float distanceFromEndOf(LocationTextExtractionStrategy.TextChunkLocation other)
distanceFromEndOf in interface LocationTextExtractionStrategy.TextChunkLocationother - public boolean isAtWordBoundary(LocationTextExtractionStrategy.TextChunkLocation previous)
isAtWordBoundary in interface LocationTextExtractionStrategy.TextChunkLocationpublic int compareTo(LocationTextExtractionStrategy.TextChunkLocation other)
compareTo in interface Comparable<LocationTextExtractionStrategy.TextChunkLocation>Copyright © 2022. All rights reserved.