Class PDFComponent

java.lang.Object
io.keikai.doc.io.schema.pdf.PDFComponent
All Implemented Interfaces:
IPDFElement, PDFInline

public class PDFComponent extends Object implements PDFInline
Internal Use Only.

Represents a zk component in a PDF document.

Author:
Jamson Chan
  • Constructor Details

    • PDFComponent

      public PDFComponent(io.keikai.doc.api.impl.node.ComponentNode componentNode)
      Create a PDFComponent instance.
      Parameters:
      componentNode - the ComponentNode of the PDFComponent
  • Method Details

    • getComponentNode

      public io.keikai.doc.api.impl.node.ComponentNode getComponentNode()
      Returns the ComponentNode of the PDFComponent.
      Returns:
      the ComponentNode of the PDFComponent
    • getHeight

      public float getHeight()
      Returns the height of the PDFComponent.
      Returns:
      the height of the PDFComponent
    • getWidth

      public float getWidth()
      Returns the width of the PDFComponent.
      Specified by:
      getWidth in interface PDFInline
      Returns:
      the width of the PDFComponent
    • isSpace

      public boolean isSpace()
      Description copied from interface: PDFInline
      Returns whether the PDFInline is a space.
      Specified by:
      isSpace in interface PDFInline
      Returns:
      whether the PDFInline is a space