Class TextChunkLocationDefaultImp

java.lang.Object
com.itextpdf.kernel.pdf.canvas.parser.listener.TextChunkLocationDefaultImp
All Implemented Interfaces:
ITextChunkLocation

class TextChunkLocationDefaultImp extends Object implements ITextChunkLocation
  • Field Details

    • DIACRITICAL_MARKS_ALLOWED_VERTICAL_DEVIATION

      private static final float DIACRITICAL_MARKS_ALLOWED_VERTICAL_DEVIATION
      See Also:
    • startLocation

      private final Vector startLocation
      The starting location of the chunk.
    • endLocation

      private final Vector endLocation
      The ending location of the chunk.
    • orientationVector

      private final Vector orientationVector
      Unit vector in the orientation of the chunk.
    • orientationMagnitude

      private final int orientationMagnitude
      The orientation as a scalar for quick sorting.
    • distPerpendicular

      private final int distPerpendicular
      Perpendicular distance to the orientation unit vector (i.e. the Y position in an unrotated coordinate system). We round to the nearest integer to handle the fuzziness of comparing floats.
    • distParallelStart

      private final float distParallelStart
      Distance of the start of the chunk parallel to the orientation unit vector (i.e. the X position in an unrotated coordinate system).
    • distParallelEnd

      private final float distParallelEnd
      Distance of the end of the chunk parallel to the orientation unit vector (i.e. the X position in an unrotated coordinate system).
    • charSpaceWidth

      private final float charSpaceWidth
      The width of a single space character in the font of the chunk.
  • Constructor Details

    • TextChunkLocationDefaultImp

      public TextChunkLocationDefaultImp(Vector startLocation, Vector endLocation, float charSpaceWidth)
  • Method Details