org.jfor.jfor.rtflib.rtfdoc
Interface IRtfTextContainer

All Known Subinterfaces:
IRtfHyperLinkContainer
All Known Implementing Classes:
RtfHyperLink, RtfParagraph

public interface IRtfTextContainer

Interface for RtfElements that can contain RtfText elements

Author:
Bertrand Delacretaz bdelacretaz@codeconsult.ch

Method Summary
 RtfAttributes getTextContainerAttributes()
          text containers usually provide default attributes for all texts that they contain.
 void newLineBreak()
          add a line break
 RtfText newText(java.lang.String str)
          close current text run if any and start a new one with default attributes
 RtfText newText(java.lang.String str, RtfAttributes attr)
          close current text run if any and start a new one with specified attributes
 

Method Detail

newText

public RtfText newText(java.lang.String str,
                       RtfAttributes attr)
                throws java.io.IOException
close current text run if any and start a new one with specified attributes

Parameters:
str - if not null, added to the RtfText created
Throws:
java.io.IOException

newText

public 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
Throws:
java.io.IOException

newLineBreak

public void newLineBreak()
                  throws java.io.IOException
add a line break

Throws:
java.io.IOException

getTextContainerAttributes

public RtfAttributes getTextContainerAttributes()
text containers usually provide default attributes for all texts that they contain. This returns a copy of the container's attributes