|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.Shape
public class Shape
Represents a shape on a slide.
Method Summary | |
---|---|
Link |
addLink()
Adds new link to a shape. |
TextFrame |
addTextFrame(java.lang.String text)
Adds a new TextFrame to a shape. |
void |
clearLink()
Clears Link. |
java.lang.String |
getAlternativeText()
Returns or sets the alternative text associated with a shape in a Web presentation. |
AnimationSettings |
getAnimationSettings()
Returns the AnimationSettings object that contains animation properties for a shape. |
FillFormat |
getFillFormat()
Returns the FillFormat object that contains fill formatting properties for a shape. |
boolean |
getFlipH()
Deprecated. |
boolean |
getFlipHorizontal()
<b>True</b> if a shape was flipped horizontally. |
boolean |
getFlipV()
Deprecated. |
boolean |
getFlipVertical()
<b>True</b> if a shape was flipped vertically. |
int |
getHeight()
Returns or sets the height of the shape. |
boolean |
getHidden()
Determines whether the shape is hidden. |
LineFormat |
getLineFormat()
Returns the LineFormat object that contains line formatting properties for a shape. |
Link |
getLink()
Return the Link object for a shape. |
int |
getMasterShapeId()
Returns the unique Id of a master shape or 0 in case shape is not inherited from any master shapes. |
java.lang.String |
getName()
Returns or sets the name of a shape. |
Slide |
getParent()
Returns the parent slide. |
BaseSlide |
getParentSlide()
Returns the parent slide. |
Placeholder |
getPlaceholder()
Returns the Placeholder object for a shape in case of shape is a placeholder. |
long |
getProtection()
Returns or sets the bit flags which determine how the shape is protected. |
int |
getRotation()
Returns or sets the number of degrees the specified shape is rotated around the z-axis. |
ShadowFormat |
getShadowFormat()
Returns the ShadowFormat object that contains shadow decoration properties for a shape. |
int |
getShapeId()
Returns the unique Id of a shape. |
TagCollection |
getTags()
Returns the tags for a shape. |
TextFrame |
getTextFrame()
Returns TextFrame object for the Shape. |
ThreeDFormat |
getThreeDFormat()
Returns the ThreeDFormat object that contains 3D decoration properties for a shape. |
int |
getWidth()
Returns or sets the width of the shape. |
int |
getX()
Returns or sets the x-coordinate of the upper-left corner of the shape. |
int |
getY()
Returns or sets the y-coordinate of the upper-left corner of the shape. |
int |
getZOrderPosition()
Returns the position of a shape in the z-order. |
boolean |
hasExternalData()
Determines whether the shape has external referenced data e.g. |
boolean |
isMasterTextHolder()
<b>True</b> if shape is a master text holder. |
boolean |
isTextHolder()
Returns true if shape is a TextHolder. |
void |
serialize(java.io.OutputStream stream)
|
void |
setAlternativeText(java.lang.String value)
|
void |
setFlipH(boolean value)
Deprecated. |
void |
setFlipHorizontal(boolean value)
|
void |
setFlipV(boolean value)
Deprecated. |
void |
setFlipVertical(boolean value)
|
void |
setHeight(int value)
|
void |
setHidden(boolean value)
|
void |
setName(java.lang.String value)
|
void |
setProtection(long value)
|
void |
setRotation(int value)
|
void |
setWidth(int value)
|
void |
setX(int value)
|
void |
setY(int value)
|
void |
zOrder(int cmd)
Moves the shape in front of or behind other shapes in the collection (that is, changes the shape's position in the z-order). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean isTextHolder()
Returns true if shape is a TextHolder.
public Placeholder getPlaceholder()
Returns the Placeholder object for a shape in case of shape is a placeholder.
Read-only Aspose.Slides.Placeholder
.
public boolean isMasterTextHolder()
<b>True</b>
if shape is a master text holder.
Read-only bool
.
public LineFormat getLineFormat()
Returns the LineFormat object that contains line formatting properties for a shape.
Read-only Aspose.Slides.LineFormat
.
public FillFormat getFillFormat()
Returns the FillFormat object that contains fill formatting properties for a shape.
Read-only Aspose.Slides.FillFormat
.
public ShadowFormat getShadowFormat()
Returns the ShadowFormat object that contains shadow decoration properties for a shape.
Read-only Aspose.Slides.ShadowFormat
.
public ThreeDFormat getThreeDFormat()
Returns the ThreeDFormat object that contains 3D decoration properties for a shape.
Read-only Aspose.Slides.ThreeDFormat
.
public AnimationSettings getAnimationSettings()
Returns the AnimationSettings object that contains animation properties for a shape.
Read-only Aspose.Slides.AnimationSettings
.
public Link getLink()
Return the Link object for a shape. Read-only Aspose.Slides.Link
.
public Link addLink()
Adds new link to a shape.
public void clearLink()
Clears Link.
public void serialize(java.io.OutputStream stream)
public BaseSlide getParentSlide()
Returns the parent slide. Read-only BaseSlide
.
public Slide getParent()
Returns the parent slide. Read-only Slide
.
public int getZOrderPosition()
Returns the position of a shape in the z-order.
Shapes[0] returns the shape at the back of the z-order,
and Shapes[Shapes.Count - 1] returns the shape at the front of the z-order.
Read-only int
.
public void zOrder(int cmd)
Moves the shape in front of or behind other shapes in the collection (that is, changes the shape's position in the z-order).
cmd
- Specifies where to move the specified shape relative
to the other shapes. See ZOrderCmd
.public java.lang.String getAlternativeText()
Returns or sets the alternative text associated with a shape in a Web presentation.
Read/write string
.
public void setAlternativeText(java.lang.String value)
public java.lang.String getName()
Returns or sets the name of a shape. Returns real name value only if name was explicitly set.
Read/write string
.
public void setName(java.lang.String value)
public boolean getHidden()
Determines whether the shape is hidden.
Read/write bool
.
public void setHidden(boolean value)
public long getProtection()
Returns or sets the bit flags which determine how the shape is protected.
Read/write ShapeProtection
.
public void setProtection(long value)
public int getRotation()
Returns or sets the number of degrees the specified shape is rotated around
the z-axis. A positive value indicates clockwise rotation; a negative value
indicates counterclockwise rotation. Read/write int
.
public void setRotation(int value)
public int getX()
Returns or sets the x-coordinate of the upper-left corner of the shape.
Read/write int
.
public void setX(int value)
public int getY()
Returns or sets the y-coordinate of the upper-left corner of the shape.
Read/write int
.
public void setY(int value)
public int getWidth()
Returns or sets the width of the shape.
Read/write int
.
public void setWidth(int value)
public int getHeight()
Returns or sets the height of the shape.
Read/write int
.
public void setHeight(int value)
public boolean getFlipHorizontal()
<b>True</b>
if a shape was flipped horizontally.
Read/write bool
.
public void setFlipHorizontal(boolean value)
@Deprecated public boolean getFlipH()
<b>True</b>
if a shape was flipped horizontally.
Read/write bool
.
@Deprecated public void setFlipH(boolean value)
public boolean getFlipVertical()
<b>True</b>
if a shape was flipped vertically.
Read/write bool
.
public void setFlipVertical(boolean value)
@Deprecated public boolean getFlipV()
<b>True</b>
if a shape was flipped vertically.
Read/write bool
.
@Deprecated public void setFlipV(boolean value)
public int getShapeId()
Returns the unique Id of a shape.
Read-only int
.
public int getMasterShapeId()
Returns the unique Id of a master shape or 0 in case shape
is not inherited from any master shapes.
Read-only int
.
public TextFrame getTextFrame()
Returns TextFrame object for the Shape.
Read-only Aspose.Slides.TextFrame
.
public TextFrame addTextFrame(java.lang.String text)
Adds a new TextFrame to a shape. If shape already has TextFrame then do nothing.
text
- Default text for a new TextFrame.public TagCollection getTags()
Returns the tags for a shape.
Read-only Aspose.Slides.TagCollection
.
public boolean hasExternalData()
Determines whether the shape has external referenced data e.g.
OLE object or embedded sound.
Read-only bool
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |