public class RtfShapePosition extends RtfAddableElement
| Modifier and Type | Field and Description |
|---|---|
static int |
POSITION_X_RELATIVE_COLUMN
Constant for horizontal positioning relative to the column.
|
static int |
POSITION_X_RELATIVE_MARGIN
Constant for horizontal positioning relative to the margin.
|
static int |
POSITION_X_RELATIVE_PAGE
Constant for horizontal positioning relative to the page.
|
static int |
POSITION_Y_RELATIVE_MARGIN
Constant for vertical positioning relative to the margin.
|
static int |
POSITION_Y_RELATIVE_PAGE
Constant for vertical positioning relative to the page.
|
static int |
POSITION_Y_RELATIVE_PARAGRAPH
Constant for vertical positioning relative to the paragraph.
|
doc, inHeader, inTableACTION, attributes, BACKGROUND, COLOR, content, ENCODING, font, GENERICTAG, HSCALE, HYPHENATION, CHAR_SPACING, IMAGE, LOCALDESTINATION, LOCALGOTO, NEWLINE, NEWPAGE, NEXTPAGE, OBJECT_REPLACEMENT_CHARACTER, PDFANNOTATION, REMOTEGOTO, SEPARATOR, SKEW, SPLITCHARACTER, SUBSUPSCRIPT, TAB, TEXTRENDERMODE, UNDERLINECLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTORALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CREATIONDATE, CREATOR, HEADER, CHAPTER, CHUNK, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE, YMARK| Constructor and Description |
|---|
RtfShapePosition(int top,
int left,
int right,
int bottom)
Constructs a new RtfShapePosition with the four bounding coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isShapeBelowText()
Gets whether the shape is below the text.
|
protected void |
setIgnoreXRelative(boolean ignoreXRelative)
Set whether to ignore the horizontal relative position.
|
protected void |
setIgnoreYRelative(boolean ignoreYRelative)
Set whether to ignore the vertical relative position.
|
void |
setShapeBelowText(boolean shapeBelowText)
Sets whether the shape is below the text.
|
void |
setXRelativePos(int relativePos)
Sets the relative horizontal position.
|
void |
setYRelativePos(int relativePos)
Sets the relative vertical position.
|
void |
setZOrder(int order)
Sets the z order to use.
|
void |
writeContent(OutputStream result)
Write this RtfShapePosition.
|
intToByteArray, isEmpty, setInHeader, setInTable, setRtfDocumentappend, getAttributes, getContent, getFont, getHorizontalScaling, getHyphenation, getCharacterSpacing, getChunks, getImage, getTextRise, getWidthPoint, hasAttributes, isContent, isNestable, process, setAction, setAnchor, setAnchor, setAnnotation, setAttributes, setBackground, setBackground, setFont, setGenericTag, setHorizontalScaling, setHyphenation, setCharacterSpacing, setLocalDestination, setLocalGoto, setNewPage, setRemoteGoto, setRemoteGoto, setSkew, setSplitCharacter, setTextRenderMode, setTextRise, setUnderline, setUnderline, toString, typepublic static final int POSITION_X_RELATIVE_PAGE
public static final int POSITION_X_RELATIVE_MARGIN
public static final int POSITION_X_RELATIVE_COLUMN
public static final int POSITION_Y_RELATIVE_PAGE
public static final int POSITION_Y_RELATIVE_MARGIN
public static final int POSITION_Y_RELATIVE_PARAGRAPH
public RtfShapePosition(int top,
int left,
int right,
int bottom)
top - The top coordinate.left - The left coordinate.right - The right coordinate.bottom - The bottom coordinate.public boolean isShapeBelowText()
True if the shape is below, false if the text is below.public void setShapeBelowText(boolean shapeBelowText)
shapeBelowText - True if the shape is below, false if the text is below.public void setXRelativePos(int relativePos)
relativePos - The relative horizontal position to use.public void setYRelativePos(int relativePos)
relativePos - The relative vertical position to use.public void setZOrder(int order)
order - The z order to use.protected void setIgnoreXRelative(boolean ignoreXRelative)
ignoreXRelative - True to ignore the horizontal relative position, false otherwise.protected void setIgnoreYRelative(boolean ignoreYRelative)
ignoreYRelative - True to ignore the vertical relative position, false otherwise.public void writeContent(OutputStream result) throws IOException
writeContent in interface RtfBasicElementwriteContent in class RtfAddableElementresult - The OutputStream to write the content toIOExceptionCopyright © 2015. All rights reserved.