Class PDFParagraph

java.lang.Object
io.keikai.doc.io.schema.pdf.PDFBlock
io.keikai.doc.io.schema.pdf.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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addInlineNode(io.keikai.doc.api.impl.node.InlineNode<?> inlineNode)
    Adds a InlineNode to the paragraph.
    float
    Returns the indent of the paragraph.
    List<io.keikai.doc.api.impl.node.InlineNode<?>>
    Returns the InlineNode list of the paragraph.
    float
    Returns the line height of the paragraph.
    io.keikai.doc.api.impl.node.style.ParagraphStyle.Type
    Returns the ParagraphStyle.Type of the paragraph.
    void
    setIndent(float indent)
    Sets the indent of the paragraph.
    void
    setLineHeight(float lineHeight)
    Sets the line height of the paragraph.
    void
    setType(io.keikai.doc.api.impl.node.style.ParagraphStyle.Type type)
    Sets the ParagraphStyle.Type of the paragraph.

    Methods inherited from class io.keikai.doc.io.schema.pdf.PDFBlock

    getAlign, setAlign

    Methods inherited from class java.lang.Object

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

    • PDFParagraph

      public PDFParagraph()
  • Method Details

    • getInlineNodes

      public List<io.keikai.doc.api.impl.node.InlineNode<?>> getInlineNodes()
      Returns the InlineNode list of the paragraph.
      Returns:
      the InlineNode list of the paragraph.
    • addInlineNode

      public void addInlineNode(io.keikai.doc.api.impl.node.InlineNode<?> inlineNode)
      Adds a InlineNode to the paragraph.
      Parameters:
      inlineNode - the InlineNode to add.
    • getType

      public io.keikai.doc.api.impl.node.style.ParagraphStyle.Type getType()
      Returns the ParagraphStyle.Type of the paragraph.
      Returns:
      the ParagraphStyle.Type of the paragraph.
    • setType

      public void setType(io.keikai.doc.api.impl.node.style.ParagraphStyle.Type type)
      Sets the ParagraphStyle.Type of the paragraph.
      Parameters:
      type - the ParagraphStyle.Type of the paragraph.
    • 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.