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.ITextChunkLocation
public int distPerpendicular()
distPerpendicular in interface LocationTextExtractionStrategy.ITextChunkLocation
public float distParallelStart()
distParallelStart in interface LocationTextExtractionStrategy.ITextChunkLocation
public float distParallelEnd()
distParallelEnd in interface LocationTextExtractionStrategy.ITextChunkLocation
public Vector getStartLocation()
getStartLocation in interface LocationTextExtractionStrategy.ITextChunkLocation
public Vector getEndLocation()
getEndLocation in interface LocationTextExtractionStrategy.ITextChunkLocation
public float getCharSpaceWidth()
getCharSpaceWidth in interface LocationTextExtractionStrategy.ITextChunkLocation
public boolean sameLine(LocationTextExtractionStrategy.ITextChunkLocation as)
sameLine in interface LocationTextExtractionStrategy.ITextChunkLocation
as - the location to compare to
public float distanceFromEndOf(LocationTextExtractionStrategy.ITextChunkLocation other)
distanceFromEndOf in interface LocationTextExtractionStrategy.ITextChunkLocation
other -
public boolean isAtWordBoundary(LocationTextExtractionStrategy.ITextChunkLocation previous)
isAtWordBoundary in interface LocationTextExtractionStrategy.ITextChunkLocation
public int compareTo(LocationTextExtractionStrategy.ITextChunkLocation other)
compareTo in interface Comparable<LocationTextExtractionStrategy.ITextChunkLocation>
Copyright © 1998–2017 iText Group NV. All rights reserved.