public class RtfPageSetting extends RtfElement implements RtfExtendedElement
document, inHeader, inTable
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
Constructor and Description |
---|
RtfPageSetting(RtfDocument doc)
Constructs a new RtfPageSetting object belonging to a RtfDocument.
|
Modifier and Type | Method and Description |
---|---|
int |
getMarginBottom()
Gets the bottom margin
|
int |
getMarginLeft()
Gets the left margin
|
int |
getMarginRight()
Gets the right margin
|
int |
getMarginTop()
Gets the top margin
|
int |
getPageHeight()
Gets the page height
|
int |
getPageWidth()
Gets the page width
|
void |
setMarginBottom(int marginBottom)
Sets the bottom margin
|
void |
setMarginLeft(int marginLeft)
Sets the left margin to use
|
void |
setMarginRight(int marginRight)
Sets the right margin to use
|
void |
setMarginTop(int marginTop)
Sets the top margin to use
|
void |
setPageHeight(int pageHeight)
Sets the page height to use
|
void |
setPageSize(Rectangle pageSize)
Set the page size to use.
|
void |
setPageWidth(int pageWidth)
Sets the page width to use
|
void |
writeContent(OutputStream out)
unused
|
void |
writeDefinition(OutputStream result)
Writes the page size / page margin definition
|
void |
writeSectionDefinition(OutputStream result)
Writes the definition part for a new section
|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setInHeader, setInTable, setRtfDocument
public RtfPageSetting(RtfDocument doc)
doc
- The RtfDocument this RtfPageSetting belongs topublic void writeContent(OutputStream out) throws IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfElement
out
- The OutputStream
to write the content toIOException
public void writeDefinition(OutputStream result) throws IOException
writeDefinition
in interface RtfExtendedElement
result
- The OutputStream
to write the element definition toIOException
public void writeSectionDefinition(OutputStream result) throws IOException
IOException
public int getMarginBottom()
public void setMarginBottom(int marginBottom)
marginBottom
- The bottom margin to usepublic int getMarginLeft()
public void setMarginLeft(int marginLeft)
marginLeft
- The left margin to usepublic int getMarginRight()
public void setMarginRight(int marginRight)
marginRight
- The right margin to usepublic int getMarginTop()
public void setMarginTop(int marginTop)
marginTop
- The top margin to usepublic int getPageHeight()
public void setPageHeight(int pageHeight)
pageHeight
- The page height to usepublic int getPageWidth()
public void setPageWidth(int pageWidth)
pageWidth
- The page width to usepublic void setPageSize(Rectangle pageSize)
pageSize
- The pageSize to useCopyright © 2015. All rights reserved.