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