|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.spire.doc.OwnerHolder
com.spire.doc.documents.xml.DocumentSerializable
com.spire.doc.DocumentObject
com.spire.doc.DocumentBase
com.spire.doc.fields.ParagraphBase
com.spire.doc.fields.shapes.ShapeBase
public abstract class ShapeBase
Base class for objects in the Psawing layer, such as an AutoShape, freeform, OLE object, ActiveX control, or picture.
This is an abstract class. The two derived classes that you can instantiate
are
A shape is a node in the document tree.
If the shape is a child of a
A shape can also occur as a child of a
A shape can be positioned inline with text or floating. The positioning method is controlled
using the
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
A floating shape be positioned explicitly using the
Method Summary | |
---|---|
com.spire.ms.System.Drawing.RectangleF |
adjustWithEffects(com.spire.ms.System.Drawing.RectangleF source)
|
boolean |
getAllowOverlap()
Gets or sets the boolean a value. |
java.lang.String |
getAlternativeText()
Gets or sets the alternative text. |
boolean |
getAspectRatioLocked()
Gets the boolean valut. |
boolean |
getBehindText()
Gets or sets the boolean a valut. |
double |
getBottom()
Gets the position of the bottom edge of the containing block of the shape. |
DocumentObjectCollection |
getChildObjects()
Gets the child objects of the entity. |
com.spire.ms.System.Drawing.Point |
getCoordOrigin()
|
com.spire.ms.System.Drawing.Size |
getCoordSize()
|
double |
getDistanceBottom()
|
double |
getDistanceLeft()
|
double |
getDistanceRight()
|
double |
getDistanceTop()
|
Fill |
getFill()
Gets the fill of the shape. |
float |
getHeight()
Gets the height of the containing block of the shape. |
ShapeHorizontalAlignment |
getHorizontalAlignment()
Specifies how the shape is positioned horizontally. |
HorizontalOrigin |
getHorizontalOrigin()
Specifies relative to what the shape is positioned horizontally. |
float |
getHorizontalPosition()
|
double |
getRight()
Gets the position of the right edge of the containing block of the shape. |
double |
getRotation()
|
ShapeType |
getShapeType()
Gets the shape type. |
com.spire.ms.System.Drawing.SizeF |
getSize()
Gets the size of the shape in its native units. |
TextWrappingStyle |
getTextWrappingStyle()
Defines whether the shape is inline or floating. |
TextWrappingType |
getTextWrappingType()
Specifies how the text is wrapped around the shape. |
ShapeVerticalAlignment |
getVerticalAlignment()
Specifies how the shape is positioned vertically. |
VerticalOrigin |
getVerticalOrigin()
Specifies relative to what the shape is positioned vertically. |
float |
getVerticalPosition()
|
float |
getWidth()
Gets the width of the containing block of the shape. |
TextWrappingStyle |
getWrapType()
|
int |
getZOrder()
|
boolean |
hasImage()
Returns true if the shape has image bytes or links an image. |
boolean |
isHidden()
Gets the flag the specifies whether the shape is visible in the document or not. |
void |
isHidden(boolean value)
sets the flag the specifies whether the shape is visible in the document or not. |
boolean |
isSignatureLine()
|
com.spire.ms.System.Drawing.PointF |
localToParent(com.spire.ms.System.Drawing.PointF value)
|
void |
setAllowOverlap(boolean value)
Gets or sets the boolean a value. |
void |
setAlternativeText(java.lang.String value)
Gets or sets the alternative text. |
void |
setAspectRatioLocked(boolean value)
Sets the boolean valut. |
void |
setBehindText(boolean value)
Gets or sets the boolean a valut. |
void |
setCoordOrigin(com.spire.ms.System.Drawing.Point value)
|
void |
setCoordSize(com.spire.ms.System.Drawing.Size value)
|
void |
setDistanceBottom(double value)
|
void |
setDistanceLeft(double value)
|
void |
setDistanceRight(double value)
|
void |
setDistanceTop(double value)
|
void |
setHeight(float value)
Sets the height of the containing block of the shape. |
void |
setHorizontalAlignment(ShapeHorizontalAlignment value)
Specifies how the shape is positioned horizontally. |
void |
setHorizontalOrigin(HorizontalOrigin value)
Specifies relative to what the shape is positioned horizontally. |
void |
setHorizontalPosition(float value)
|
void |
setRotation(double value)
|
void |
setShapeType(ShapeType shapeType)
Sets the shape type. |
void |
setTextWrappingStyle(TextWrappingStyle value)
Defines whether the shape is inline or floating. |
void |
setTextWrappingType(TextWrappingType value)
Specifies how the text is wrapped around the shape. |
void |
setVerticalAlignment(ShapeVerticalAlignment value)
Specifies how the shape is positioned vertically. |
void |
setVerticalOrigin(VerticalOrigin value)
Specifies relative to what the shape is positioned vertically. |
void |
setVerticalPosition(float value)
|
void |
setWidth(float value)
Sets the width of the containing block of the shape. |
void |
setWrapType(TextWrappingStyle value)
|
void |
setZOrder(int value)
|
Methods inherited from class com.spire.doc.fields.ParagraphBase |
---|
applyCharacterFormat, applyStyle, getCharacterFormat, getDeleteRevision, getInsertRevision, getNextWidgetSibling, getOwnerParagraph, getPreviousWidgetSibling, getStyleName, isDeleteRevision, isInsertRevision |
Methods inherited from class com.spire.doc.DocumentObject |
---|
deepClone, getDocumentObjectType, getFirstChild, getLastChild, getNextSibling, getOwner, getPreviousSibling, isComposite, prependChild, toString |
Methods inherited from class com.spire.doc.OwnerHolder |
---|
getDocument |
Methods inherited from interface com.spire.doc.interfaces.IDocumentObject |
---|
deepClone, getDocument, getDocumentObjectType, getNextSibling, getOwner, getPreviousSibling, isComposite |
Method Detail |
---|
public com.spire.ms.System.Drawing.PointF localToParent(com.spire.ms.System.Drawing.PointF value)
public void setShapeType(ShapeType shapeType)
public DocumentObjectCollection getChildObjects()
getChildObjects
in class ParagraphBase
public java.lang.String getAlternativeText()
The default value is an empty string.
public void setAlternativeText(java.lang.String value)
The default value is an empty string.
public boolean isHidden()
Default is
public void isHidden(boolean value)
value
- public boolean getAspectRatioLocked()
public void setAspectRatioLocked(boolean value)
public boolean getAllowOverlap()
public void setAllowOverlap(boolean value)
public boolean getBehindText()
public void setBehindText(boolean value)
public float getHorizontalPosition()
public void setHorizontalPosition(float value)
public float getVerticalPosition()
public void setVerticalPosition(float value)
public double getRight()
public double getBottom()
public float getWidth()
The default value is 0.
public void setWidth(float value)
The default value is 0.
public float getHeight()
The default value is 0.
public void setHeight(float value)
The default value is 0.
public double getDistanceTop()
public void setDistanceTop(double value)
public double getDistanceBottom()
public void setDistanceBottom(double value)
public double getDistanceLeft()
public void setDistanceLeft(double value)
public double getDistanceRight()
public void setDistanceRight(double value)
public double getRotation()
public void setRotation(double value)
public int getZOrder()
public void setZOrder(int value)
public com.spire.ms.System.Drawing.RectangleF adjustWithEffects(com.spire.ms.System.Drawing.RectangleF source)
public ShapeType getShapeType()
public HorizontalOrigin getHorizontalOrigin()
Has effect only for top level floating shapes.
public virtual RelativeHorizontalPosition RelativeHorizontalPosition
public void setHorizontalOrigin(HorizontalOrigin value)
Has effect only for top level floating shapes.
public virtual RelativeHorizontalPosition RelativeHorizontalPosition
public VerticalOrigin getVerticalOrigin()
Has effect only for top level floating shapes.
public virtual RelativeVerticalPosition RelativeVerticalPosition
public void setVerticalOrigin(VerticalOrigin value)
Has effect only for top level floating shapes.
public virtual RelativeVerticalPosition RelativeVerticalPosition
public ShapeHorizontalAlignment getHorizontalAlignment()
Has effect only for top level floating shapes.
public void setHorizontalAlignment(ShapeHorizontalAlignment value)
Has effect only for top level floating shapes.
public ShapeVerticalAlignment getVerticalAlignment()
Has effect only for top level floating shapes.
public void setVerticalAlignment(ShapeVerticalAlignment value)
Has effect only for top level floating shapes.
public TextWrappingStyle getWrapType()
public void setWrapType(TextWrappingStyle value)
public TextWrappingStyle getTextWrappingStyle()
Has effect only for top level shapes.
public void setTextWrappingStyle(TextWrappingStyle value)
Has effect only for top level shapes.
public TextWrappingType getTextWrappingType()
Has effect only for top level shapes.
public void setTextWrappingType(TextWrappingType value)
Has effect only for top level shapes.
public com.spire.ms.System.Drawing.Point getCoordOrigin()
public void setCoordOrigin(com.spire.ms.System.Drawing.Point value)
public com.spire.ms.System.Drawing.Size getCoordSize()
public void setCoordSize(com.spire.ms.System.Drawing.Size value)
public boolean isSignatureLine()
public com.spire.ms.System.Drawing.SizeF getSize()
public Fill getFill()
public boolean hasImage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |