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