com.lowagie.text.rtf.graphic
public class RtfShapePosition extends RtfAddableElement
Version: $Id: RtfShapePosition.java 3580 2008-08-06 15:52:00Z howard_s $
Field Summary | |
---|---|
int | bottom
The bottom coordinate of this RtfShapePosition. |
boolean | ignoreXRelative
Whether to ignore the horizontal relative position. |
boolean | ignoreYRelative
Whether to ignore the vertical relative position. |
int | left
The left coordinate of this RtfShapePosition. |
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. |
int | right
The right coordinate of this RtfShapePosition. |
boolean | shapeBelowText
Whether the shape is below the text. |
int | top
The top coordinate of this RtfShapePosition. |
int | xRelativePos
The horizontal relative position. |
int | yRelativePos
The vertical relative position. |
int | zOrder
The z order of this RtfShapePosition. |
Constructor Summary | |
---|---|
RtfShapePosition(int top, int left, int right, int bottom)
Constructs a new RtfShapePosition with the four bounding coordinates.
|
Method Summary | |
---|---|
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. |
Parameters: top The top coordinate. left The left coordinate. right The right coordinate. bottom The bottom coordinate.
Returns: True
if the shape is below, false
if the text is below.
Parameters: ignoreXRelative True
to ignore the horizontal relative position, false
otherwise.
Parameters: ignoreYRelative True
to ignore the vertical relative position, false
otherwise.
Parameters: shapeBelowText True
if the shape is below, false
if the text is below.
Parameters: relativePos The relative horizontal position to use.
Parameters: relativePos The relative vertical position to use.
Parameters: order The z order to use.