public interface IRtfTextContainer
Interface for RtfElements that can contain RtfText elements.
This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch).
Modifier and Type | Method and Description |
---|---|
RtfAttributes |
getTextContainerAttributes()
Text containers usually provide default attributes for all texts that they contain.
|
void |
newLineBreak()
Add a line break
|
RtfText |
newText(String str)
Close current text run, if any, and start a new one with default attributes
|
RtfText |
newText(String str,
RtfAttributes attr)
Close current text element, if any, and start a new one
|
RtfText newText(String str, RtfAttributes attr) throws IOException
str
- if not null, added to the RtfText createdattr
- attributes for textIOException
- for I/O problemsRtfText newText(String str) throws IOException
str
- if not null, added to the RtfText createdIOException
- for I/O problemsvoid newLineBreak() throws IOException
IOException
- for I/O problemsRtfAttributes getTextContainerAttributes() throws FOPException
FOPException
- if attributes cannot be obtainedCopyright © 2025 Apache Software Foundation. All rights reserved.