public class RtfPage extends RtfContainer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MARGIN_BOTTOM |
static java.lang.String |
MARGIN_LEFT |
static java.lang.String |
MARGIN_RIGHT |
static java.lang.String |
MARGIN_TOP |
static java.lang.String[] |
PAGE_ATTR |
static java.lang.String |
PAGE_HEIGHT |
static java.lang.String |
PAGE_WIDTH
RtfPage attributes
|
m_parent, m_writer
Constructor and Description |
---|
RtfPage(RtfPageArea parent,
java.io.Writer w,
RtfAttributes attrs)
RtfPage creates new page attributes with the parent container, the writer
and the attributes
|
Modifier and Type | Method and Description |
---|---|
RtfAttributes |
getAttributes()
RtfPage - attributes accessor
|
protected boolean |
okToWriteRtf()
RtfPage - is overwritten here because page attributes have no content
only attributes.
|
protected void |
writeRtfContent()
RtfPage writes the attributes the attributes contained in the string
PAGE_ATTR, if not null
|
addChild, containsText, dump, getChildCount, getChildren, getOptions, isEmpty, setChildren, setOptions, toString
close, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
public static final java.lang.String PAGE_WIDTH
public static final java.lang.String PAGE_HEIGHT
public static final java.lang.String MARGIN_TOP
public static final java.lang.String MARGIN_BOTTOM
public static final java.lang.String MARGIN_LEFT
public static final java.lang.String MARGIN_RIGHT
public static final java.lang.String[] PAGE_ATTR
RtfPage(RtfPageArea parent, java.io.Writer w, RtfAttributes attrs) throws java.io.IOException
java.io.IOException
protected void writeRtfContent() throws java.io.IOException
writeRtfContent
in class RtfContainer
java.io.IOException
public RtfAttributes getAttributes()
protected boolean okToWriteRtf()
okToWriteRtf
in class RtfContainer