Class PDFParagraph

  • All Implemented Interfaces:
    IPDFElement

    public class PDFParagraph
    extends PDFBlock
    Internal Use Only.

    Represents a paragraph in a PDF document.

    Author:
    Jamson Chan
    • Constructor Summary

      Constructors 
      Constructor Description
      PDFParagraph()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addTextNode​(io.keikai.doc.api.impl.node.TextNode textNode)
      Adds a TextNode to the paragraph.
      float getIndent()
      Returns the indent of the paragraph.
      float getLineHeight()
      Returns the line height of the paragraph.
      java.util.List<io.keikai.doc.api.impl.node.TextNode> getTextNodes()
      Returns the TextNode list of the paragraph.
      void setIndent​(float indent)
      Sets the indent of the paragraph.
      void setLineHeight​(float lineHeight)
      Sets the line height of the paragraph.
      • Methods inherited from class java.lang.Object

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

      • PDFParagraph

        public PDFParagraph()
    • Method Detail

      • getTextNodes

        public java.util.List<io.keikai.doc.api.impl.node.TextNode> getTextNodes()
        Returns the TextNode list of the paragraph.
        Returns:
        the TextNode list of the paragraph.
      • addTextNode

        public void addTextNode​(io.keikai.doc.api.impl.node.TextNode textNode)
        Adds a TextNode to the paragraph.
        Parameters:
        textNode - the TextNode to add.
      • getIndent

        public float getIndent()
        Returns the indent of the paragraph.
        Returns:
        the indent of the paragraph.
      • setIndent

        public void setIndent​(float indent)
        Sets the indent of the paragraph.
        Parameters:
        indent - the indent of the paragraph.
      • getLineHeight

        public float getLineHeight()
        Returns the line height of the paragraph.
        Returns:
        the line height of the paragraph.
      • setLineHeight

        public void setLineHeight​(float lineHeight)
        Sets the line height of the paragraph.
        Parameters:
        lineHeight - the line height of the paragraph.