Class DocumentElementImpl

java.lang.Object
com.priint.pubserver.metadata.xml.base.DocumentElementImpl
All Implemented Interfaces:
DocumentElement, Serializable
Direct Known Subclasses:
ElementImpl, FrameImpl, FrameImpl, GroupImpl, ParagraphImpl, PlaceholderImpl

public class DocumentElementImpl extends Object implements Serializable, DocumentElement
See Also:
  • Constructor Details

    • DocumentElementImpl

      public DocumentElementImpl()
  • Method Details

    • 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
    • setId

      public void setId(int id)
      Description copied from interface: DocumentElement

      Sets the Id of the element.

      Sets the Id of this element. For further information see DocumentElement.getId()

      Specified by:
      setId in interface DocumentElement
      Parameters:
      id - Id of the element
    • getVisibleSizeRelative

      public 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
    • setVisibleSizeRelative

      public void setVisibleSizeRelative(String visibleSizeRelative)
      Description copied from interface: DocumentElement

      Sets the visible size of this element.

      Sets the visible size of this element. For further information see DocumentElement.getVisibleSizeRelative()

      Specified by:
      setVisibleSizeRelative in interface DocumentElement
      Parameters:
      visibleSizeRelative - 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
    • setVisibleSizeAbsolute

      public void setVisibleSizeAbsolute(double visibleSizeAbsolute)
      Description copied from interface: DocumentElement

      Sets the visible size of this element.

      Sets the visible size of this element. For further information see DocumentElement.getVisibleSizeAbsolute()

      Specified by:
      setVisibleSizeAbsolute in interface DocumentElement
      Parameters:
      visibleSizeAbsolute - absolute visible size of this element
    • getSizeRelative

      public 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
    • setSizeRelative

      public void setSizeRelative(String sizeRelative)
      Description copied from interface: DocumentElement

      Sets the size of this element.

      Sets the size of this element. For further information see DocumentElement.getSizeRelative()

      Specified by:
      setSizeRelative in interface DocumentElement
      Parameters:
      sizeRelative - 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
    • setSizeAbsolute

      public void setSizeAbsolute(double sizeAbsolute)
      Description copied from interface: DocumentElement

      Sets the size of this element.

      Sets the size of this element. For further information see DocumentElement.getSizeAbsolute()

      Specified by:
      setSizeAbsolute in interface DocumentElement
      Parameters:
      sizeAbsolute - absolute size of this element