public abstract class ShapeBase extends CompositeNode
This is an abstract class. The two derived classes that you can instantiate are Shape and GroupShape.
A shape is a node in the document tree.
If the shape is a child of a Paragraph object, then the shape is said to be "top-level". Top-level shapes are measured and positioned in points.
A shape can also occur as a child of a GroupShape object when several shapes are grouped. Child shapes of a group shape are positioned in the coordinate space and units defined by the getCoordSize() / setCoordSize(java.awt.Dimension) and getCoordOrigin() / setCoordOrigin(java.awt.Point) properties of the parent group shape.
A shape can be positioned inline with text or floating. The positioning method is controlled using the getWrapType() / setWrapType(int) property.
When a shape is floating, it is positioned relative to something (e.g the current paragraph, the margin or the page). The relative positioning of the shape is specified using the getRelativeHorizontalPosition() / setRelativeHorizontalPosition(int) and getRelativeVerticalPosition() / setRelativeVerticalPosition(int) properties.
A floating shape be positioned explicitly using the getLeft() / setLeft(double) and getTop() / setTop(double) properties or aligned relative to some other object using the getHorizontalAlignment() / setHorizontalAlignment(int) and getVerticalAlignment() / setVerticalAlignment(int) properties.
Shape,
GroupShape| Modifier | Constructor and Description |
|---|---|
protected |
ShapeBase(DocumentBase doc,
byte markupLanguage)
Initializes a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Rectangle2D.Float |
adjustWithEffects(java.awt.geom.Rectangle2D.Float source)
Adds to the source rectangle values of the effect extent and returns the final rectangle.
|
boolean |
canHaveImage()
Returns true if the shape type allows the shape to have an image.
|
void |
clearRunAttrs() |
java.lang.Object |
fetchInheritedRunAttr(int fontAttr) |
java.lang.Object |
fetchInheritedShapeAttr(int key)
Reserved for system use.
|
java.lang.Object |
fetchShapeAttr(int key)
Reserved for system use.
|
boolean |
getAllowOverlap()
Gets a value that specifies whether this shape can overlap other shapes.
|
java.lang.String |
getAlternativeText()
Defines alternative text to be displayed instead of a graphic.
|
boolean |
getAnchorLocked()
Specifies whether the shape's anchor is locked.
|
boolean |
getAspectRatioLocked()
Specifies whether the shape's aspect ratio is locked.
|
boolean |
getBehindText()
Specifies whether the shape is below or above text.
|
double |
getBottom()
Gets the position of the bottom edge of the containing block of the shape.
|
java.awt.geom.Rectangle2D.Float |
getBounds()
Gets the location and size of the containing block of the shape.
|
java.awt.geom.Rectangle2D.Float |
getBoundsInPoints()
Gets the location and size of the containing block of the shape in points, relative to the anchor of the topmost shape.
|
java.awt.geom.Rectangle2D.Float |
getBoundsWithEffects()
Gets final extent that this shape object has after applying drawing effects.
|
java.awt.Point |
getCoordOrigin()
The coordinates at the top-left corner of the containing block of this shape.
|
java.awt.Dimension |
getCoordSize()
The width and height of the coordinate space inside the containing block of this shape.
|
java.lang.Object |
getDirectRunAttr(int fontAttr) |
java.lang.Object |
getDirectShapeAttr(int key)
Reserved for system use.
|
double |
getDistanceBottom()
Gets the distance (in points) between the document text and the bottom edge of the shape.
|
double |
getDistanceLeft()
Gets the distance (in points) between the document text and the left edge of the shape.
|
double |
getDistanceRight()
Gets the distance (in points) between the document text and the right edge of the shape.
|
double |
getDistanceTop()
Gets the distance (in points) between the document text and the top edge of the shape.
|
DocumentBase |
getDocument_IInline() |
Fill |
getFill()
Gets fill formatting for the shape.
|
java.awt.Color |
getFillableBackColor() |
java.awt.Color |
getFillableForeColor() |
byte[] |
getFillableImageBytes() |
double |
getFillableTransparency() |
boolean |
getFillableVisible() |
java.awt.Color |
getFilledColor() |
int |
getFillType() |
int |
getFlipOrientation()
Switches the orientation of a shape.
|
Font |
getFont()
Provides access to the font formatting of this object.
|
double |
getGradientAngle() |
GradientStopCollection |
getGradientStops() |
int |
getGradientStyle() |
int |
getGradientVariant() |
double |
getHeight()
Gets the height of the containing block of the shape.
|
int |
getHorizontalAlignment()
Specifies how the shape is positioned horizontally.
|
java.lang.String |
getHRef()
Gets the full hyperlink address for a shape.
|
double |
getLeft()
Gets the position of the left edge of the containing block of the shape.
|
byte |
getMarkupLanguage()
Gets MarkupLanguage used for this graphic object.
|
java.lang.String |
getName()
Gets the optional shape name.
|
boolean |
getOn() |
double |
getOpacity() |
Paragraph |
getParentParagraph_IInline() |
Paragraph |
getParentParagraph()
Returns the immediate parent paragraph.
|
int |
getPatternType() |
int |
getPresetTexture() |
int |
getRelativeHorizontalPosition()
Specifies relative to what the shape is positioned horizontally.
|
int |
getRelativeVerticalPosition()
Specifies relative to what the shape is positioned vertically.
|
double |
getRight()
Gets the position of the right edge of the containing block of the shape.
|
boolean |
getRotateWithObject() |
double |
getRotation()
Defines the angle (in degrees) that a shape is rotated.
|
java.lang.String |
getScreenTip()
Defines the text displayed when the mouse pointer moves over the shape.
|
ShadowFormat |
getShadowFormat()
Gets shadow formatting for the shape.
|
ShapeRenderer |
getShapeRenderer()
Creates and returns an object that can be used to render this shape into an image.
|
int |
getShapeType()
Gets the shape type.
|
java.awt.geom.Point2D.Float |
getSizeInPoints()
Gets the size of the shape in points.
|
java.lang.String |
getTarget()
Gets the target frame for the shape hyperlink.
|
int |
getTextureAlignment() |
java.lang.String |
getTitle()
Gets the title (caption) of the current shape object.
|
double |
getTop()
Gets the position of the top edge of the containing block of the shape.
|
int |
getVerticalAlignment()
Specifies how the shape is positioned vertically.
|
double |
getWidth()
Gets the width of the containing block of the shape.
|
int |
getWrapSide()
Specifies how the text is wrapped around the shape.
|
int |
getWrapType()
Defines whether the shape is inline or floating.
|
int |
getZOrder_IShape() |
int |
getZOrder()
Determines the display order of overlapping shapes.
|
boolean |
isDecorative()
Gets the flag that specifies whether the shape is decorative in the document.
|
void |
isDecorative(boolean value)
Sets the flag that specifies whether the shape is decorative in the document.
|
boolean |
isDeleteRevision()
Returns true if this object was deleted in Microsoft Word while change tracking was enabled.
|
boolean |
isGroup()
Returns true if this is a group shape.
|
boolean |
isHorizontalRule()
Returns true if this shape is a horizontal rule.
|
boolean |
isImage()
Returns true if this shape is an image shape.
|
boolean |
isInline()
A quick way to determine if this shape is positioned inline with text.
|
boolean |
isInsertRevision()
Returns true if this object was inserted in Microsoft Word while change tracking was enabled.
|
boolean |
isLayoutInCell()
Gets a flag indicating whether the shape is displayed inside a table or outside of it.
|
void |
isLayoutInCell(boolean value)
Sets a flag indicating whether the shape is displayed inside a table or outside of it.
|
boolean |
isMoveFromRevision()
Returns true if this object was moved (deleted) in Microsoft Word while change tracking was enabled.
|
boolean |
isMoveToRevision()
Returns true if this object was moved (inserted) in Microsoft Word while change tracking was enabled.
|
boolean |
isSignatureLine()
Indicates that shape is a SignatureLine.
|
boolean |
isTopLevel()
Returns true if this shape is not a child of a group shape.
|
boolean |
isWordArt()
Returns true if this shape is a WordArt object.
|
java.awt.geom.Point2D.Float |
localToParent(java.awt.geom.Point2D.Float value)
Converts a value from the local coordinate space into the coordinate space of the parent shape.
|
void |
oneColorGradient(int style,
int variant,
double degree) |
void |
patterned(int patternType) |
void |
presetTextured(int presetTexture) |
void |
removeMoveRevisions() |
void |
removeRunAttr(int key) |
void |
removeShapeAttr(int key)
Reserved for system use.
|
void |
setAllowOverlap(boolean value)
Sets a value that specifies whether this shape can overlap other shapes.
|
void |
setAlternativeText(java.lang.String value)
Defines alternative text to be displayed instead of a graphic.
|
void |
setAnchorLocked(boolean value)
Specifies whether the shape's anchor is locked.
|
void |
setAspectRatioLocked(boolean value)
Specifies whether the shape's aspect ratio is locked.
|
void |
setBehindText(boolean value)
Specifies whether the shape is below or above text.
|
void |
setBounds(java.awt.geom.Rectangle2D.Float value)
Sets the location and size of the containing block of the shape.
|
void |
setCoordOrigin(java.awt.Point value)
The coordinates at the top-left corner of the containing block of this shape.
|
void |
setCoordSize(java.awt.Dimension value)
The width and height of the coordinate space inside the containing block of this shape.
|
void |
setDistanceBottom(double value)
Sets the distance (in points) between the document text and the bottom edge of the shape.
|
void |
setDistanceLeft(double value)
Sets the distance (in points) between the document text and the left edge of the shape.
|
void |
setDistanceRight(double value)
Sets the distance (in points) between the document text and the right edge of the shape.
|
void |
setDistanceTop(double value)
Sets the distance (in points) between the document text and the top edge of the shape.
|
void |
setFillableBackColor(java.awt.Color value) |
void |
setFillableForeColor(java.awt.Color value) |
void |
setFillableTransparency(double value) |
void |
setFillableVisible(boolean value) |
void |
setFilledColor(java.awt.Color value) |
void |
setFlipOrientation(int value)
Switches the orientation of a shape.
|
void |
setGradientAngle(double value) |
void |
setHeight(double value)
Sets the height of the containing block of the shape.
|
void |
setHorizontalAlignment(int value)
Specifies how the shape is positioned horizontally.
|
void |
setHRef(java.lang.String value)
Sets the full hyperlink address for a shape.
|
void |
setImage(byte[] imageBytes) |
void |
setLeft(double value)
Sets the position of the left edge of the containing block of the shape.
|
void |
setName(java.lang.String value)
Sets the optional shape name.
|
void |
setOn(boolean value) |
void |
setOpacity(double value) |
void |
setRelativeHorizontalPosition(int value)
Specifies relative to what the shape is positioned horizontally.
|
void |
setRelativeVerticalPosition(int value)
Specifies relative to what the shape is positioned vertically.
|
void |
setRotateWithObject(boolean value) |
void |
setRotation(double value)
Defines the angle (in degrees) that a shape is rotated.
|
void |
setRunAttr(int fontAttr,
java.lang.Object value) |
void |
setScreenTip(java.lang.String value)
Defines the text displayed when the mouse pointer moves over the shape.
|
void |
setShapeAttr(int key,
java.lang.Object value)
Reserved for system use.
|
void |
setTarget(java.lang.String value)
Sets the target frame for the shape hyperlink.
|
void |
setTextureAlignment(int value) |
void |
setTitle(java.lang.String value)
Sets the title (caption) of the current shape object.
|
void |
setTop(double value)
Sets the position of the top edge of the containing block of the shape.
|
void |
setVerticalAlignment(int value)
Specifies how the shape is positioned vertically.
|
void |
setWidth(double value)
Sets the width of the containing block of the shape.
|
void |
setWrapSide(int value)
Specifies how the text is wrapped around the shape.
|
void |
setWrapType(int value)
Defines whether the shape is inline or floating.
|
void |
setZOrder_IShape(int value) |
void |
setZOrder(int value)
Determines the display order of overlapping shapes.
|
void |
solid() |
void |
twoColorGradient(int style,
int variant) |
acceptChildren, acceptCore, appendChild, coreRemoveSelfOnly, getChild, getChildNodes, getChildNodes, getContainer, getCount, getCurrentNode, getFirstChild, getLastChild, getNextMatchingNode, getText, hasChildNodes, indexOf, insertAfter, insertBefore, isComposite, iterator, prependChild, removeAllChildren, removeChild, removeSmartTags, selectNodes, selectSingleNodeaccept, dd, deepClone, getAncestor, getAncestor, getCustomNodeId, getDocument, getNextSibling, getNodeType, getParentNode, getPreviousSibling, getRange, memberwiseClone, nextPreOrder, nodeTypeToString, previousPreOrder, remove, setCustomNodeId, toString, toString, toString, visitorActionToBoolprotected ShapeBase(DocumentBase doc, byte markupLanguage)
public ShapeRenderer getShapeRenderer() throws java.lang.Exception
This method just invokes the ShapeRenderer constructor and passes this object as a parameter.
java.lang.Exceptionpublic Paragraph getParentParagraph_IInline()
public DocumentBase getDocument_IInline()
public int getZOrder_IShape()
public void setZOrder_IShape(int value)
public java.lang.Object getDirectShapeAttr(int key)
public java.lang.Object fetchInheritedShapeAttr(int key)
public java.lang.Object fetchShapeAttr(int key)
public void setShapeAttr(int key,
java.lang.Object value)
public void removeShapeAttr(int key)
public void removeMoveRevisions()
public java.lang.Object getDirectRunAttr(int fontAttr)
public java.lang.Object fetchInheritedRunAttr(int fontAttr)
public void setRunAttr(int fontAttr,
java.lang.Object value)
public void removeRunAttr(int key)
public void clearRunAttrs()
public void solid()
public int getPresetTexture()
throws java.lang.Exception
java.lang.Exceptionpublic int getPatternType()
throws java.lang.Exception
java.lang.Exceptionpublic void presetTextured(int presetTexture)
public void patterned(int patternType)
public void twoColorGradient(int style,
int variant)
public void oneColorGradient(int style,
int variant,
double degree)
public void setImage(byte[] imageBytes)
public java.awt.Color getFilledColor()
public void setFilledColor(java.awt.Color value)
public boolean getOn()
public void setOn(boolean value)
public double getOpacity()
public void setOpacity(double value)
public byte[] getFillableImageBytes()
throws java.lang.Exception
java.lang.Exceptionpublic java.awt.Color getFillableForeColor()
public void setFillableForeColor(java.awt.Color value)
public java.awt.Color getFillableBackColor()
public void setFillableBackColor(java.awt.Color value)
public boolean getFillableVisible()
public void setFillableVisible(boolean value)
public double getFillableTransparency()
public void setFillableTransparency(double value)
public boolean getRotateWithObject()
public void setRotateWithObject(boolean value)
public int getFillType()
public int getTextureAlignment()
public void setTextureAlignment(int value)
public double getGradientAngle()
public void setGradientAngle(double value)
public int getGradientVariant()
public int getGradientStyle()
public GradientStopCollection getGradientStops()
public java.awt.geom.Point2D.Float localToParent(java.awt.geom.Point2D.Float value)
public Fill getFill()
public ShadowFormat getShadowFormat()
public java.lang.String getScreenTip()
The default value is an empty string.
String value.public void setScreenTip(java.lang.String value)
The default value is an empty string.
value - The corresponding String value.public java.lang.String getHRef()
The default value is an empty string.
Below are examples of valid values for this property:
Full URI: https://www.aspose.com/.
Full file name: C:\\My Documents\\SalesReport.doc.
Relative URI: ../../../resource.txt
Relative file name: ..\\My Documents\\SalesReport.doc.
Bookmark within another document: https://www.aspose.com/Products/Default.aspx#Suites
Bookmark within this document: #BookmakName.
public void setHRef(java.lang.String value)
The default value is an empty string.
Below are examples of valid values for this property:
Full URI: https://www.aspose.com/.
Full file name: C:\\My Documents\\SalesReport.doc.
Relative URI: ../../../resource.txt
Relative file name: ..\\My Documents\\SalesReport.doc.
Bookmark within another document: https://www.aspose.com/Products/Default.aspx#Suites
Bookmark within this document: #BookmakName.
value - The full hyperlink address for a shape.public java.lang.String getTarget()
The default value is an empty string.
public void setTarget(java.lang.String value)
The default value is an empty string.
value - The target frame for the shape hyperlink.public java.lang.String getAlternativeText()
The default value is an empty string.
String value.public void setAlternativeText(java.lang.String value)
The default value is an empty string.
value - The corresponding String value.public boolean isDecorative()
getAlternativeText() / setAlternativeText(java.lang.String) cannot be decorative.public void isDecorative(boolean value)
getAlternativeText() / setAlternativeText(java.lang.String) cannot be decorative.value - The flag that specifies whether the shape is decorative in the document.public java.lang.String getTitle()
Default is empty string.
Cannot be null, but can be an empty string.
public void setTitle(java.lang.String value)
Default is empty string.
Cannot be null, but can be an empty string.
value - The title (caption) of the current shape object.public java.lang.String getName()
Default is empty string.
Cannot be null, but can be an empty string.
public void setName(java.lang.String value)
Default is empty string.
Cannot be null, but can be an empty string.
value - The optional shape name.public boolean isInsertRevision()
public boolean isDeleteRevision()
public boolean isMoveFromRevision()
public boolean isMoveToRevision()
public boolean isTopLevel()
public boolean isGroup()
public boolean isImage()
public boolean isHorizontalRule()
public boolean isWordArt()
public boolean canHaveImage()
Although Microsoft Word has a special shape type for images, it appears that in Microsoft Word documents any shape except a group shape can have an image, therefore this property returns true for all shapes except GroupShape.
public boolean getAnchorLocked()
The default value is false.
Has effect only for top level shapes.
This property affects behavior of the shape's anchor in Microsoft Word. When the anchor is not locked, moving the shape in Microsoft Word can move the shape's anchor too.
boolean value.public void setAnchorLocked(boolean value)
The default value is false.
Has effect only for top level shapes.
This property affects behavior of the shape's anchor in Microsoft Word. When the anchor is not locked, moving the shape in Microsoft Word can move the shape's anchor too.
value - The corresponding boolean value.public boolean getAspectRatioLocked()
The default value depends on the getShapeType(), for the ShapeType.Image it is true but for the other shape types it is false.
Has effect for top level shapes only.
boolean value.public void setAspectRatioLocked(boolean value)
The default value depends on the getShapeType(), for the ShapeType.Image it is true but for the other shape types it is false.
Has effect for top level shapes only.
value - The corresponding boolean value.public boolean getAllowOverlap()
This property affects behavior of the shape in Microsoft Word. Aspose.Words ignores the value of this property.
This property is applicable only to top level shapes.
The default value is true.
public void setAllowOverlap(boolean value)
This property affects behavior of the shape in Microsoft Word. Aspose.Words ignores the value of this property.
This property is applicable only to top level shapes.
The default value is true.
value - A value that specifies whether this shape can overlap other shapes.public boolean getBehindText()
Has effect only for top level shapes.
The default value is false.
boolean value.getZOrder(),
setZOrder(int)public void setBehindText(boolean value)
Has effect only for top level shapes.
The default value is false.
value - The corresponding boolean value.getZOrder(),
setZOrder(int)public boolean isInline()
Has effect only for top level shapes.
boolean value.public double getLeft()
For a top-level shape, the value is in points and relative to the shape anchor.
For shapes in a group, the value is in the coordinate space and units of the parent group.
The default value is 0.
Has effect only for floating shapes.
public void setLeft(double value)
For a top-level shape, the value is in points and relative to the shape anchor.
For shapes in a group, the value is in the coordinate space and units of the parent group.
The default value is 0.
Has effect only for floating shapes.
value - The position of the left edge of the containing block of the shape.public double getTop()
For a top-level shape, the value is in points and relative to the shape anchor.
For shapes in a group, the value is in the coordinate space and units of the parent group.
The default value is 0.
Has effect only for floating shapes.
public void setTop(double value)
For a top-level shape, the value is in points and relative to the shape anchor.
For shapes in a group, the value is in the coordinate space and units of the parent group.
The default value is 0.
Has effect only for floating shapes.
value - The position of the top edge of the containing block of the shape.public double getRight()
For a top-level shape, the value is in points and relative to the shape anchor.
For shapes in a group, the value is in the coordinate space and units of the parent group.
public double getBottom()
For a top-level shape, the value is in points and relative to the shape anchor.
For shapes in a group, the value is in the coordinate space and units of the parent group.
public double getWidth()
For a top-level shape, the value is in points.
For shapes in a group, the value is in the coordinate space and units of the parent group.
The default value is 0.
public void setWidth(double value)
throws java.lang.Exception
For a top-level shape, the value is in points.
For shapes in a group, the value is in the coordinate space and units of the parent group.
The default value is 0.
value - The width of the containing block of the shape.java.lang.Exceptionpublic double getHeight()
For a top-level shape, the value is in points.
For shapes in a group, the value is in the coordinate space and units of the parent group.
The default value is 0.
public void setHeight(double value)
throws java.lang.Exception
For a top-level shape, the value is in points.
For shapes in a group, the value is in the coordinate space and units of the parent group.
The default value is 0.
value - The height of the containing block of the shape.java.lang.Exceptionpublic double getDistanceTop()
The default value is 0.
Has effect only for top level shapes.
public void setDistanceTop(double value)
The default value is 0.
Has effect only for top level shapes.
value - The distance (in points) between the document text and the top edge of the shape.public double getDistanceBottom()
The default value is 0.
Has effect only for top level shapes.
public void setDistanceBottom(double value)
The default value is 0.
Has effect only for top level shapes.
value - The distance (in points) between the document text and the bottom edge of the shape.public double getDistanceLeft()
The default value is 1/8 inch.
Has effect only for top level shapes.
public void setDistanceLeft(double value)
The default value is 1/8 inch.
Has effect only for top level shapes.
value - The distance (in points) between the document text and the left edge of the shape.public double getDistanceRight()
The default value is 1/8 inch.
Has effect only for top level shapes.
public void setDistanceRight(double value)
The default value is 1/8 inch.
Has effect only for top level shapes.
value - The distance (in points) between the document text and the right edge of the shape.public double getRotation()
The default value is 0.
double value.public void setRotation(double value)
The default value is 0.
value - The corresponding double value.public int getZOrder()
Has effect only for top level shapes.
The default value is 0.
The number represents the stacking precedence. A shape with a higher number will be displayed as if it were overlapping (in "front" of) a shape with a lower number.
The order of overlapping shapes is independent for shapes in the header and in the main text of the document.
The display order of child shapes in a group shape is determined by their order inside the group shape.
int value.getBehindText(),
setBehindText(boolean)public void setZOrder(int value)
Has effect only for top level shapes.
The default value is 0.
The number represents the stacking precedence. A shape with a higher number will be displayed as if it were overlapping (in "front" of) a shape with a lower number.
The order of overlapping shapes is independent for shapes in the header and in the main text of the document.
The display order of child shapes in a group shape is determined by their order inside the group shape.
value - The corresponding int value.getBehindText(),
setBehindText(boolean)public Paragraph getParentParagraph()
public java.awt.geom.Rectangle2D.Float getBounds()
For a top-level shape, the value is in points and relative to the shape anchor.
For shapes in a group, the value is in the coordinate space and units of the parent group.
public void setBounds(java.awt.geom.Rectangle2D.Float value)
For a top-level shape, the value is in points and relative to the shape anchor.
For shapes in a group, the value is in the coordinate space and units of the parent group.
value - The location and size of the containing block of the shape.public java.awt.geom.Rectangle2D.Float getBoundsInPoints()
public java.awt.geom.Rectangle2D.Float getBoundsWithEffects()
public java.awt.geom.Rectangle2D.Float adjustWithEffects(java.awt.geom.Rectangle2D.Float source)
public int getShapeType()
ShapeType constants.public byte getMarkupLanguage()
ShapeMarkupLanguage constants.public java.awt.geom.Point2D.Float getSizeInPoints()
Point2D.Float is used as return type because we need in float dimension values here. One should to assume that Point2D's x == width and y == height.
public int getFlipOrientation()
The default value is FlipOrientation.NONE.
int value. The returned value is a bitwise combination of FlipOrientation constants.public void setFlipOrientation(int value)
The default value is FlipOrientation.NONE.
value - The corresponding int value. The value must be a bitwise combination of FlipOrientation constants.public int getRelativeHorizontalPosition()
The default value is RelativeHorizontalPosition.COLUMN.
Has effect only for top level floating shapes.
int value. The returned value is one of RelativeHorizontalPosition constants.public void setRelativeHorizontalPosition(int value)
The default value is RelativeHorizontalPosition.COLUMN.
Has effect only for top level floating shapes.
value - The corresponding int value. The value must be one of RelativeHorizontalPosition constants.public int getRelativeVerticalPosition()
The default value is RelativeVerticalPosition.PARAGRAPH.
Has effect only for top level floating shapes.
int value. The returned value is one of RelativeVerticalPosition constants.public void setRelativeVerticalPosition(int value)
The default value is RelativeVerticalPosition.PARAGRAPH.
Has effect only for top level floating shapes.
value - The corresponding int value. The value must be one of RelativeVerticalPosition constants.public int getHorizontalAlignment()
The default value is HorizontalAlignment.NONE.
Has effect only for top level floating shapes.
int value. The returned value is one of HorizontalAlignment constants.public void setHorizontalAlignment(int value)
The default value is HorizontalAlignment.NONE.
Has effect only for top level floating shapes.
value - The corresponding int value. The value must be one of HorizontalAlignment constants.public int getVerticalAlignment()
The default value is VerticalAlignment.NONE.
Has effect only for top level floating shapes.
int value. The returned value is one of VerticalAlignment constants.public void setVerticalAlignment(int value)
The default value is VerticalAlignment.NONE.
Has effect only for top level floating shapes.
value - The corresponding int value. The value must be one of VerticalAlignment constants.public int getWrapType()
The default value is WrapType.NONE.
Has effect only for top level shapes.
int value. The returned value is one of WrapType constants.public void setWrapType(int value)
The default value is WrapType.NONE.
Has effect only for top level shapes.
value - The corresponding int value. The value must be one of WrapType constants.public int getWrapSide()
The default value is WrapSide.BOTH.
Has effect only for top level shapes.
int value. The returned value is one of WrapSide constants.public void setWrapSide(int value)
The default value is WrapSide.BOTH.
Has effect only for top level shapes.
value - The corresponding int value. The value must be one of WrapSide constants.public java.awt.Point getCoordOrigin()
The default value is (0,0).
Point value.public void setCoordOrigin(java.awt.Point value)
The default value is (0,0).
value - The corresponding Point value.public java.awt.Dimension getCoordSize()
The default value is (1000, 1000).
Dimension value.public void setCoordSize(java.awt.Dimension value)
The default value is (1000, 1000).
value - The corresponding Dimension value.public Font getFont()
Font value.public boolean isSignatureLine()
boolean value.public boolean isLayoutInCell()
The default value is true.
Has effect only for top level shapes, the property getWrapType() / setWrapType(int) of which is set to value other than Inline.
public void isLayoutInCell(boolean value)
The default value is true.
Has effect only for top level shapes, the property getWrapType() / setWrapType(int) of which is set to value other than Inline.
value - A flag indicating whether the shape is displayed inside a table or outside of it.