public class RtfShape extends RtfAddableElement
Modifier and Type | Field and Description |
---|---|
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_PICTURE_FRAME
Constant for a Picture Frame.
|
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 isosceles 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.
|
doc, inHeader, inTable
ACTION, 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, UNDERLINE
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
ALIGN_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 |
---|
RtfShape(int type,
RtfShapePosition position)
Constructs a new RtfShape of a given shape at the given RtfShapePosition.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
writeContent(OutputStream result)
Writes the RtfShape.
|
intToByteArray, isEmpty, setInHeader, setInTable, setRtfDocument
append, 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, type
public static final int SHAPE_PICTURE_FRAME
public static final int SHAPE_FREEFORM
public static final int SHAPE_RECTANGLE
public static final int SHAPE_ROUND_RECTANGLE
public static final int SHAPE_ELLIPSE
public static final int SHAPE_DIAMOND
public static final int SHAPE_TRIANGLE_ISOSCELES
public static final int SHAPE_TRIANGLE_RIGHT
public static final int SHAPE_PARALLELOGRAM
public static final int SHAPE_TRAPEZOID
public static final int SHAPE_HEXAGON
public static final int SHAPE_OCTAGON
public static final int SHAPE_STAR
public static final int SHAPE_ARROW
public static final int SHAPE_ARROR_THICK
public static final int SHAPE_HOME_PLATE
public static final int SHAPE_CUBE
public static final int SHAPE_BALLOON
public static final int SHAPE_SEAL
public static final int SHAPE_ARC
public static final int SHAPE_LINE
public static final int SHAPE_CAN
public static final int SHAPE_DONUT
public static final int SHAPE_WRAP_NONE
public static final int SHAPE_WRAP_TOP_BOTTOM
public static final int SHAPE_WRAP_BOTH
public static final int SHAPE_WRAP_LEFT
public static final int SHAPE_WRAP_RIGHT
public static final int SHAPE_WRAP_LARGEST
public static final int SHAPE_WRAP_TIGHT_BOTH
public static final int SHAPE_WRAP_TIGHT_LEFT
public static final int SHAPE_WRAP_TIGHT_RIGHT
public static final int SHAPE_WRAP_TIGHT_LARGEST
public static final int SHAPE_WRAP_THROUGH
public RtfShape(int type, RtfShapePosition position)
type
- The type of shape to create.position
- The RtfShapePosition to create this RtfShape at.public void setProperty(RtfShapeProperty property)
property
- The property to set for this RtfShape.public void setShapeText(String shapeText)
shapeText
- The text to display.public void setWrapping(int wrapping)
wrapping
- The wrapping mode to use for this RtfShape.public void writeContent(OutputStream result) throws IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfAddableElement
result
- The OutputStream
to write the content toIOException
Copyright © 2015. All rights reserved.