com.lowagie.text.rtf.graphic
public class RtfShape extends RtfAddableElement
Version: $Id: RtfShape.java 2776 2007-05-23 20:01:40Z hallm $
Field Summary | |
---|---|
RtfShapePosition | position
The RtfShapePosition that defines position settings for this RtfShape. |
HashMap | properties
A HashMap with RtfShapePropertys that define further shape properties. |
int | shapeNr
The shape nr is a random unique id. |
String | shapeText
Text that is contained in the shape. |
static int | SHAPE_ARC
Constant for an arc shape. |
static int | SHAPE_ARROR_THICK
Constant for a thick arrow. |
static int | SHAPE_ARROW
Constant for an arrow. |
static int | SHAPE_BALLOON
Constant for a balloon shape. |
static int | SHAPE_CAN
Constant for a can shape. |
static int | SHAPE_CUBE
Constant for a cube shape. |
static int | SHAPE_DIAMOND
Constant for a diamond. |
static int | SHAPE_DONUT
Constant for a donut shape. |
static int | SHAPE_ELLIPSE
Constant for an ellipse. |
static int | SHAPE_FREEFORM
Constant for a free form shape. |
static int | SHAPE_HEXAGON
Constant for a hexagon. |
static int | SHAPE_HOME_PLATE
Constant for a home plate style shape. |
static int | SHAPE_LINE
Constant for a line shape. |
static int | SHAPE_OCTAGON
Constant for an ocatagon. |
static int | SHAPE_PARALLELOGRAM
Constant for a parallelogram. |
static int | SHAPE_RECTANGLE
Constant for a rectangle. |
static int | SHAPE_ROUND_RECTANGLE
Constant for a rounded rectangle. |
static int | SHAPE_SEAL
Constant for a seal shape. |
static int | SHAPE_STAR
Constant for a star. |
static int | SHAPE_TRAPEZOID
Constant for a trapezoid. |
static int | SHAPE_TRIANGLE_ISOSCELES
Constant for a isoscelle triangle. |
static int | SHAPE_TRIANGLE_RIGHT
Constant for a right triangle. |
static int | SHAPE_WRAP_BOTH
Text is wrapped on the left and right side. |
static int | SHAPE_WRAP_LARGEST
Text is wrapped on the largest side. |
static int | SHAPE_WRAP_LEFT
Text is wrapped on the left side. |
static int | SHAPE_WRAP_NONE
Text is not wrapped around the shape. |
static int | SHAPE_WRAP_RIGHT
Text is wrapped on the right side. |
static int | SHAPE_WRAP_THROUGH
Text is wrapped through the shape. |
static int | SHAPE_WRAP_TIGHT_BOTH
Text is tightly wrapped on the left and right side. |
static int | SHAPE_WRAP_TIGHT_LARGEST
Text is tightly wrapped on the largest side. |
static int | SHAPE_WRAP_TIGHT_LEFT
Text is tightly wrapped on the left side. |
static int | SHAPE_WRAP_TIGHT_RIGHT
Text is tightly wrapped on the right side. |
static int | SHAPE_WRAP_TOP_BOTTOM
Text is wrapped to the top and bottom. |
int | type
The shape type. |
int | wrapping
The wrapping mode. |
Constructor Summary | |
---|---|
RtfShape(int type, RtfShapePosition position)
Constructs a new RtfShape of a given shape at the given RtfShapePosition.
|
Method Summary | |
---|---|
void | setProperty(RtfShapeProperty property)
Sets a property.
|
void | setShapeText(String shapeText)
Sets the text to display in this RtfShape.
|
void | setWrapping(int wrapping)
Set the wrapping mode.
|
byte[] | write()
Writes the RtfShape. |
void | writeContent(OutputStream result)
Writes the RtfShape. |
Parameters: type The type of shape to create. position The RtfShapePosition to create this RtfShape at.
Parameters: property The property to set for this RtfShape.
Parameters: shapeText The text to display.
Parameters: wrapping The wrapping mode to use for this RtfShape.
Deprecated: replaced by writeContent
Writes the RtfShape. Some settings are automatically translated into or require other properties and these are set first.