Class BoundingBox

    • Field Detail

      • pageNumber

        protected Integer pageNumber
      • lastPageNumber

        protected Integer lastPageNumber
      • leftX

        protected double leftX
      • bottomY

        protected double bottomY
      • rightX

        protected double rightX
      • topY

        protected double topY
    • Constructor Detail

      • BoundingBox

        public BoundingBox()
      • BoundingBox

        public BoundingBox​(int pageNumber)
      • BoundingBox

        public BoundingBox​(double[] bbox)
      • BoundingBox

        public BoundingBox​(int pageNumber,
                           double[] bbox)
      • BoundingBox

        public BoundingBox​(int pageNumber,
                           int lastPageNumber,
                           double[] bbox)
      • BoundingBox

        public BoundingBox​(double left,
                           double bottom,
                           double right,
                           double top)
      • BoundingBox

        public BoundingBox​(int pageNumber,
                           double left,
                           double bottom,
                           double right,
                           double top)
      • BoundingBox

        public BoundingBox​(int pageNumber,
                           int lastPageNumber,
                           double left,
                           double bottom,
                           double right,
                           double top)
    • Method Detail

      • setPageNumber

        public void setPageNumber​(int pageNumber)
      • setLastPageNumber

        public void setLastPageNumber​(int lastPageNumber)
      • getPageNumber

        public Integer getPageNumber()
      • getLastPageNumber

        public Integer getLastPageNumber()
      • getWidth

        public double getWidth()
      • getHeight

        public double getHeight()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • overlaps

        public boolean overlaps​(BoundingBox other)
      • overlaps

        public boolean overlaps​(BoundingBox other,
                                double eps)
      • notOverlaps

        public boolean notOverlaps​(BoundingBox other)
      • notOverlaps

        public boolean notOverlaps​(BoundingBox other,
                                   double eps)
      • contains

        public boolean contains​(BoundingBox other)
      • contains

        public boolean contains​(BoundingBox other,
                                double horizontalOffset,
                                double verticalOffset)
      • weaklyContains

        public boolean weaklyContains​(BoundingBox fullRectangle)
      • getArea

        public double getArea()
      • getBottomY

        public double getBottomY()
      • getTopY

        public double getTopY()
      • getLeftX

        public double getLeftX()
      • getRightX

        public double getRightX()
      • getCenterX

        public double getCenterX()
      • getCenterY

        public double getCenterY()
      • isEmpty

        public boolean isEmpty()
      • scale

        public BoundingBox scale​(double coeffX,
                                 double coeffY)
      • move

        public BoundingBox move​(double xShift,
                                double yShift)
      • setSizes

        public void setSizes​(double width,
                             double height)
      • init

        public void init​(double left,
                         double bottom,
                         double right,
                         double top)
      • getLocation

        public String getLocation()