Interface IRtfTextContainer

    • Method Detail

      • newText

        RtfText newText​(java.lang.String str,
                        RtfAttributes attr)
                 throws java.io.IOException
        Close current text element, if any, and start a new one
        Parameters:
        str - if not null, added to the RtfText created
        attr - attributes for text
        Returns:
        new text object
        Throws:
        java.io.IOException - for I/O problems
      • newText

        RtfText newText​(java.lang.String str)
                 throws java.io.IOException
        Close current text run, if any, and start a new one with default attributes
        Parameters:
        str - if not null, added to the RtfText created
        Returns:
        a new text object
        Throws:
        java.io.IOException - for I/O problems
      • newLineBreak

        void newLineBreak()
                   throws java.io.IOException
        Add a line break
        Throws:
        java.io.IOException - for I/O problems
      • getTextContainerAttributes

        RtfAttributes getTextContainerAttributes()
                                          throws FOPException
        Text containers usually provide default attributes for all texts that they contain.
        Returns:
        a copy of the container's attributes.
        Throws:
        FOPException - if attributes cannot be obtained