Class PdfDiv

    • Field Detail

      • runDirection

        protected int runDirection
      • spacingBefore

        protected float spacingBefore
        The spacing before the table.
      • spacingAfter

        protected float spacingAfter
        The spacing after the table.
    • Constructor Detail

      • PdfDiv

        public PdfDiv()
    • Method Detail

      • getContentWidth

        public float getContentWidth()
      • setContentWidth

        public void setContentWidth​(float contentWidth)
      • getContentHeight

        public float getContentHeight()
      • setContentHeight

        public void setContentHeight​(float contentHeight)
      • getPercentageHeight

        public Float getPercentageHeight()
      • setPercentageHeight

        public void setPercentageHeight​(Float percentageHeight)
      • getPercentageWidth

        public Float getPercentageWidth()
      • setPercentageWidth

        public void setPercentageWidth​(Float percentageWidth)
      • getBackgroundColor

        public BaseColor getBackgroundColor()
      • setBackgroundColor

        public void setBackgroundColor​(BaseColor backgroundColor)
      • setBackgroundImage

        public void setBackgroundImage​(Image image)
        Image will be scaled to fit in the div occupied area.
      • setBackgroundImage

        public void setBackgroundImage​(Image image,
                                       float width,
                                       float height)
        Image will be scaled to fit in the div occupied area.
      • getYLine

        public float getYLine()
      • getRunDirection

        public int getRunDirection()
      • setRunDirection

        public void setRunDirection​(int runDirection)
      • getKeepTogether

        public boolean getKeepTogether()
      • setKeepTogether

        public void setKeepTogether​(boolean keepTogether)
      • getChunks

        public List<Chunk> getChunks()
        Gets all the chunks in this element.
        Specified by:
        getChunks in interface Element
        Returns:
        an ArrayList
      • type

        public int type()
        Gets the type of the text element.
        Specified by:
        type in interface Element
        Returns:
        a type
      • isContent

        public boolean isContent()
        Description copied from interface: Element
        Checks if this element is a content object. If not, it's a metadata object.
        Specified by:
        isContent in interface Element
        Returns:
        true if this is a 'content' element; false if this is a 'metadata' element
        Since:
        iText 2.0.8
        See Also:
        Element.isContent()
      • isNestable

        public boolean isNestable()
        Description copied from interface: Element
        Checks if this element is nestable.
        Specified by:
        isNestable in interface Element
        Returns:
        true if this element can be nested inside other elements.
        Since:
        iText 2.0.8
        See Also:
        Element.isNestable()
      • process

        public boolean process​(ElementListener listener)
        Processes the element by adding it (or the different parts) to an ElementListener.
        Specified by:
        process in interface Element
        Parameters:
        listener - an ElementListener
        Returns:
        true if the element was processed successfully
      • setSpacingBefore

        public void setSpacingBefore​(float spacing)
        Sets the spacing before this table.
        Specified by:
        setSpacingBefore in interface Spaceable
        Parameters:
        spacing - the new spacing
      • setSpacingAfter

        public void setSpacingAfter​(float spacing)
        Sets the spacing after this table.
        Specified by:
        setSpacingAfter in interface Spaceable
        Parameters:
        spacing - the new spacing
      • getSpacingBefore

        public float getSpacingBefore()
        Gets the spacing before this table.
        Specified by:
        getSpacingBefore in interface Spaceable
        Returns:
        the spacing
      • getSpacingAfter

        public float getSpacingAfter()
        Gets the spacing after this table.
        Specified by:
        getSpacingAfter in interface Spaceable
        Returns:
        the spacing
      • getTextAlignment

        public int getTextAlignment()
        Gets the alignment of this paragraph.
        Returns:
        textAlignment
      • setTextAlignment

        public void setTextAlignment​(int textAlignment)
        Sets the alignment of this paragraph.
        Parameters:
        textAlignment - the new alignment
      • addElement

        public void addElement​(Element element)
      • getLeft

        public Float getLeft()
      • setLeft

        public void setLeft​(Float left)
      • getRight

        public Float getRight()
      • setRight

        public void setRight​(Float right)
      • getTop

        public Float getTop()
      • setTop

        public void setTop​(Float top)
      • getBottom

        public Float getBottom()
      • setBottom

        public void setBottom​(Float bottom)
      • getWidth

        public Float getWidth()
      • setWidth

        public void setWidth​(Float width)
      • getHeight

        public Float getHeight()
      • setHeight

        public void setHeight​(Float height)
      • getPaddingLeft

        public float getPaddingLeft()
      • setPaddingLeft

        public void setPaddingLeft​(float paddingLeft)
      • getPaddingRight

        public float getPaddingRight()
      • setPaddingRight

        public void setPaddingRight​(float paddingRight)
      • setPaddingTop

        public void setPaddingTop​(float paddingTop)
        Specified by:
        setPaddingTop in interface Spaceable
      • getPaddingBottom

        public float getPaddingBottom()
      • setPaddingBottom

        public void setPaddingBottom​(float paddingBottom)
      • setRole

        public void setRole​(PdfName role)
        Description copied from interface: IAccessibleElement
        Sets the role of the accessiblee element. Set role to null if you don't want to tag this element. Note that all child elements won't also be tagged.
        Specified by:
        setRole in interface IAccessibleElement