Interface IRtfTextContainer
- All Known Subinterfaces:
IRtfHyperLinkContainer
- All Known Implementing Classes:
RtfHyperLink
,RtfParagraph
public interface IRtfTextContainer
Interface for RtfElements that can contain RtfText elements.
This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch).
-
Method Summary
Modifier and TypeMethodDescriptionText containers usually provide default attributes for all texts that they contain.void
Add a line breakClose current text run, if any, and start a new one with default attributesnewText
(String str, RtfAttributes attr) Close current text element, if any, and start a new one
-
Method Details
-
newText
Close current text element, if any, and start a new one- Parameters:
str
- if not null, added to the RtfText createdattr
- attributes for text- Returns:
- new text object
- Throws:
IOException
- for I/O problems
-
newText
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:
IOException
- for I/O problems
-
newLineBreak
Add a line break- Throws:
IOException
- for I/O problems
-
getTextContainerAttributes
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
-