| |
|
| com.lowagie.text.rtf.RtfAddableElement com.lowagie.text.rtf.graphic.RtfShapePosition
RtfShapePosition | public class RtfShapePosition extends RtfAddableElement (Code) | | The RtfShapePosition stores position and ordering
information for one RtfShape.
version: $Id: RtfShapePosition.java 2776 2007-05-23 20:01:40Z hallm $ author: Mark Hall (mhall@edu.uni-klu.ac.at) author: Thomas Bickel (tmb99@inode.at) |
Constructor Summary | |
public | RtfShapePosition(int top, int left, int right, int bottom) Constructs a new RtfShapePosition with the four bounding coordinates. |
Method Summary | |
public 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. | public void | setShapeBelowText(boolean shapeBelowText) Sets whether the shape is below the text. | public void | setXRelativePos(int relativePos) Sets the relative horizontal position. | public void | setYRelativePos(int relativePos) Sets the relative vertical position. | public void | setZOrder(int order) Sets the z order to use. | public byte[] | write() Write this RtfShapePosition. | public void | writeContent(OutputStream result) Write this RtfShapePosition. |
POSITION_X_RELATIVE_COLUMN | final public static int POSITION_X_RELATIVE_COLUMN(Code) | | Constant for horizontal positioning relative to the column.
|
POSITION_X_RELATIVE_MARGIN | final public static int POSITION_X_RELATIVE_MARGIN(Code) | | Constant for horizontal positioning relative to the margin.
|
POSITION_X_RELATIVE_PAGE | final public static int POSITION_X_RELATIVE_PAGE(Code) | | Constant for horizontal positioning relative to the page.
|
POSITION_Y_RELATIVE_MARGIN | final public static int POSITION_Y_RELATIVE_MARGIN(Code) | | Constant for vertical positioning relative to the margin.
|
POSITION_Y_RELATIVE_PAGE | final public static int POSITION_Y_RELATIVE_PAGE(Code) | | Constant for vertical positioning relative to the page.
|
POSITION_Y_RELATIVE_PARAGRAPH | final public static int POSITION_Y_RELATIVE_PARAGRAPH(Code) | | Constant for vertical positioning relative to the paragraph.
|
RtfShapePosition | public RtfShapePosition(int top, int left, int right, int bottom)(Code) | | Constructs a new RtfShapePosition with the four bounding coordinates.
Parameters: top - The top coordinate. Parameters: left - The left coordinate. Parameters: right - The right coordinate. Parameters: bottom - The bottom coordinate. |
isShapeBelowText | public boolean isShapeBelowText()(Code) | | Gets whether the shape is below the text.
True if the shape is below, false if the text is below. |
setIgnoreXRelative | protected void setIgnoreXRelative(boolean ignoreXRelative)(Code) | | Set whether to ignore the horizontal relative position.
Parameters: ignoreXRelative - True to ignore the horizontal relative position, false otherwise. |
setIgnoreYRelative | protected void setIgnoreYRelative(boolean ignoreYRelative)(Code) | | Set whether to ignore the vertical relative position.
Parameters: ignoreYRelative - True to ignore the vertical relative position, false otherwise. |
setShapeBelowText | public void setShapeBelowText(boolean shapeBelowText)(Code) | | Sets whether the shape is below the text.
Parameters: shapeBelowText - True if the shape is below, false if the text is below. |
setXRelativePos | public void setXRelativePos(int relativePos)(Code) | | Sets the relative horizontal position. Use one of the constants
provided in this class.
Parameters: relativePos - The relative horizontal position to use. |
setYRelativePos | public void setYRelativePos(int relativePos)(Code) | | Sets the relative vertical position. Use one of the constants
provides in this class.
Parameters: relativePos - The relative vertical position to use. |
setZOrder | public void setZOrder(int order)(Code) | | Sets the z order to use.
Parameters: order - The z order to use. |
|
|
|