Class LayoutArea

  • All Implemented Interfaces:
    java.lang.Cloneable
    Direct Known Subclasses:
    RootLayoutArea

    public class LayoutArea
    extends java.lang.Object
    implements java.lang.Cloneable
    Represents the area for content layouting.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Rectangle bBox
      The area's bounding box
      protected int pageNumber
      The number of page on which the area is located.
    • Constructor Summary

      Constructors 
      Constructor Description
      LayoutArea​(int pageNumber, Rectangle bBox)
      Creates the area for content layouting.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      LayoutArea clone()
      Creates a "deep copy" of this LayoutArea, meaning the object returned by this method will be independent of the object being cloned.
      boolean equals​(java.lang.Object obj)
      Rectangle getBBox()
      Gets the box which bounds the area.
      int getPageNumber()
      Gets the number of page on which the area is located.
      int hashCode()
      void setBBox​(Rectangle bbox)
      Sets the box which bounds the area.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • pageNumber

        protected int pageNumber
        The number of page on which the area is located.
      • bBox

        protected Rectangle bBox
        The area's bounding box
    • Constructor Detail

      • LayoutArea

        public LayoutArea​(int pageNumber,
                          Rectangle bBox)
        Creates the area for content layouting.
        Parameters:
        pageNumber - the number of page on which the area is located.
        bBox - the area's bounding box
    • Method Detail

      • getPageNumber

        public int getPageNumber()
        Gets the number of page on which the area is located.
        Returns:
        page number
      • getBBox

        public Rectangle getBBox()
        Gets the box which bounds the area.
        Returns:
        the bounding box
      • setBBox

        public void setBBox​(Rectangle bbox)
        Sets the box which bounds the area.
        Parameters:
        bbox - the area's bounding box
      • clone

        public LayoutArea clone()
        Creates a "deep copy" of this LayoutArea, meaning the object returned by this method will be independent of the object being cloned.
        Overrides:
        clone in class java.lang.Object
        Returns:
        the copied LayoutArea.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object