All Implemented Interfaces:
IChunk, IObject

public class LineChunk extends InfoChunk
  • Field Details

    • BUTT_CAP_STYLE

      public static int BUTT_CAP_STYLE
    • ROUND_CAP_STYLE

      public static int ROUND_CAP_STYLE
    • PROJECTING_SQUARE_CAP_STYLE

      public static int PROJECTING_SQUARE_CAP_STYLE
  • Constructor Details

    • LineChunk

      public LineChunk(Integer pageNumber, double startX, double startY, double endX, double endY)
    • LineChunk

      public LineChunk(Integer pageNumber, double startX, double startY, double endX, double endY, double width)
  • Method Details

    • getStartX

      public double getStartX()
    • getStartY

      public double getStartY()
    • getStart

      public Vertex getStart()
    • getEndX

      public double getEndX()
    • getEndY

      public double getEndY()
    • getEnd

      public Vertex getEnd()
    • isHorizontalLine

      public boolean isHorizontalLine()
    • isVerticalLine

      public boolean isVerticalLine()
    • isSquare

      public boolean isSquare()
    • getWidth

      public double getWidth()
      Specified by:
      getWidth in interface IObject
      Overrides:
      getWidth in class BaseObject
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class InfoChunk
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class InfoChunk
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getIntersectionVertex

      public static Vertex getIntersectionVertex(LineChunk horizontalLine, LineChunk verticalLine)
    • haveIntersection

      public static boolean haveIntersection(LineChunk horizontalLine, LineChunk verticalLine)
    • createLineChunk

      public static LineChunk createLineChunk(Integer pageNumber, double startX, double startY, double endX, double endY, double width, int cap)