Class DocumentElementImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getId()
      Gets the Id of this element.
      double getSizeAbsolute()
      Gets the size of this element.
      java.lang.String getSizeRelative()
      Gets the size of this element.
      double getVisibleSizeAbsolute()
      Gets the visible size of this element.
      java.lang.String getVisibleSizeRelative()
      Gets the visible size of this element.
      void setId​(int id)
      Sets the Id of the element.
      void setSizeAbsolute​(double sizeAbsolute)
      Sets the size of this element.
      void setSizeRelative​(java.lang.String sizeRelative)
      Sets the size of this element.
      void setVisibleSizeAbsolute​(double visibleSizeAbsolute)
      Sets the visible size of this element.
      void setVisibleSizeRelative​(java.lang.String visibleSizeRelative)
      Sets the visible size of this element.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DocumentElementImpl

        public DocumentElementImpl()
    • Method Detail

      • getId

        public int getId()
        Description copied from interface: DocumentElement

        Gets the Id of this element.

        Gets the Id of this element.
        This Id is guaranteed to be unique within a particular document. Unless the document content changes, the Id is also guaranteed to be persistent.
        For certain element types (such as Group), the Id is also guaranteed to be persistent as long as a (semantically) identical element exists in the document.

        Specified by:
        getId in interface DocumentElement
        Returns:
        the Id of this element
      • getVisibleSizeRelative

        public java.lang.String getVisibleSizeRelative()
        Description copied from interface: DocumentElement

        Gets the visible size of this element.

        Gets the visible size relative to the page (not the spread!) size of this element.
        Calculation of the size is based on the area of the element, which is not covered, overlapped or whatsoever by any other element on that page.

        Specified by:
        getVisibleSizeRelative in interface DocumentElement
        Returns:
        relative visible size of this element
      • getVisibleSizeAbsolute

        public double getVisibleSizeAbsolute()
        Description copied from interface: DocumentElement

        Gets the visible size of this element.

        Gets the absolute visible size of this element.
        As all absolute size specifications are based on pt, the size is given in "squarepoints". Calculation of the size is based on the area of the element, which is not covered, overlapped or whatsoever by any other element on that page.

        Specified by:
        getVisibleSizeAbsolute in interface DocumentElement
        Returns:
        absolute visible size of this element
      • getSizeRelative

        public java.lang.String getSizeRelative()
        Description copied from interface: DocumentElement

        Gets the size of this element.

        Gets the size relative to the page (not the spread!) size of this element.
        Calculation of the size is based on the entire area covered by this element.

        Specified by:
        getSizeRelative in interface DocumentElement
        Returns:
        relative size of this element
      • getSizeAbsolute

        public double getSizeAbsolute()
        Description copied from interface: DocumentElement

        Gets the size of this element.

        Gets the absolute size of this element.
        As all absolute size specifications are based on pt, the size is given in "squarepoints". Calculation of the size is based on the entire area covered by this element.

        Specified by:
        getSizeAbsolute in interface DocumentElement
        Returns:
        absolute size of this element