|
||||||||
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 the abstract shape on a slide.
Method Summary | |
---|---|
Link |
addLink()
Adds the new link to a shape. |
void |
addTextFrame(java.lang.String text)
Adds a new TextFrame to a shape. |
void |
clearLink()
Clears the Link. |
ShapeElement[] |
createShapeElements()
Creates and returns array of shape elements. |
ShapeElement[] |
createShapeElements(ShapeDrawingOptions shapeDrawingOptions)
Creates array of shape's elements. |
java.lang.String |
getAlternativeText()
Returns the alternative text associated with a shape in a Web presentation. |
AnimationSettings |
getAnimationSettings()
Returns the AnimationSettings object that contains animation properties of a shape. |
java.awt.geom.Point2D.Float[] |
getConnectionSites()
Returns array of points, where connector can be attached. |
java.awt.geom.Point2D.Float[] |
getConnectionSitesRaw()
Returns array of points, where connector can be attached. |
FillFormat |
getFillFormat()
Returns the FillFormat object that contains fill formatting properties of a shape. |
int |
getHeight()
Returns the height of a shape. |
LineFormat |
getLineFormat()
Returns the LineFormat object that contains line formatting properties of a shape. |
Link |
getLink()
Return the Link object for a shape. |
java.lang.String |
getName()
Returns the name of a shape. |
Slide |
getParent()
Returns the parent slide. |
Placeholder |
getPlaceholder()
Returns the Placeholder object for a shape in case of shape is a placeholder. |
int |
getRotation()
Returns the number of degrees the specified shape is rotated around the z-axis. |
ShadowFormat |
getShadowFormat()
Returns the ShadowFormat object that contains shadow decoration properties of a shape. |
java.awt.geom.Rectangle2D.Float |
getShapeRectangle()
Returns shape rectangle in presentation coordinates. |
Tags |
getTags()
Returns the tags for a shape. |
TextFrame |
getTextFrame()
Returns the TextFrame object for a Shape. |
ThreeDFormat |
getThreeDFormat()
Returns the ThreeDFormat object that contains 3D decoration properties of a shape. |
int |
getWidth()
Returns the width of a shape. |
int |
getX()
Returns the x-coordinate of the upper-left corner of a shape. |
int |
getY()
Returns the y-coordinate of the upper-left corner of a shape. |
int |
getZOrderPosition()
Returns the position of a shape in the z-order. |
boolean |
isFlipH()
Determines whether the shape is flipped horizontally. |
boolean |
isFlipV()
Determines whether the shape is flipped vertically. |
boolean |
isHidden()
Determines whether the shape is hidden. |
boolean |
isMasterTextHolder()
True if shape is a master text holder. |
boolean |
isTextHolder()
Returns true if shape is a TextHolder. |
void |
serialize(java.io.OutputStream stream)
Serializes a Shape object to the stream. |
void |
setAlternativeText(java.lang.String value)
Sets the alternative text associated with a shape in a Web presentation. |
void |
setFlipH(boolean value)
Flips the shape horizontally. |
void |
setFlipV(boolean value)
Flips the shape vertically. |
void |
setHeight(int value)
Sets the height of a shape. |
void |
setHidden(boolean value)
Sets whether the shape is hidden. |
void |
setName(java.lang.String value)
Sets the name of a shape. |
void |
setRotation(int value)
Sets the number of degrees the specified shape is rotated around the z-axis. |
void |
setWidth(int value)
Sets the width of a shape. |
void |
setX(int value)
Sets the x-coordinate of the upper-left corner of a shape. |
void |
setY(int value)
Sets the y-coordinate of the upper-left corner of a shape. |
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()
public Placeholder getPlaceholder()
Placeholder
.public boolean isMasterTextHolder()
public LineFormat getLineFormat()
getLineFormat
in interface IShapeFormat
LineFormat
.public FillFormat getFillFormat()
getFillFormat
in interface IShapeFormat
FillFormat
.public ShadowFormat getShadowFormat()
getShadowFormat
in interface IShapeFormat
ShadowFormat
.public ThreeDFormat getThreeDFormat()
getThreeDFormat
in interface IShapeFormat
ThreeDFormat
.public AnimationSettings getAnimationSettings()
AnimationSettings
.public Link getLink()
Link
.public Link addLink()
Link
.public void clearLink()
public void serialize(java.io.OutputStream stream) throws PptException
stream
- The stream to which the Shape is to be serialized.
PptException
public java.awt.geom.Point2D.Float[] getConnectionSitesRaw()
public java.awt.geom.Point2D.Float[] getConnectionSites()
public ShapeElement[] createShapeElements()
ShapeElement
.public java.awt.geom.Rectangle2D.Float getShapeRectangle()
public ShapeElement[] createShapeElements(ShapeDrawingOptions shapeDrawingOptions)
shapeDrawingOptions
-
ShapeElement
.public Slide getParent()
getParent
in interface IShape
public int getZOrderPosition()
public void zOrder(int cmd)
cmd
- specifies where to move the specified shape relative to the other
shapes.public java.lang.String getAlternativeText()
getAlternativeText
in interface IShape
public void setAlternativeText(java.lang.String value)
setAlternativeText
in interface IShape
value
- the alternative text.public java.lang.String getName()
public void setName(java.lang.String value)
value
- the alternative text.public boolean isHidden()
public void setHidden(boolean value)
value
- true if the shape is hidden.public int getRotation()
public void setRotation(int value) throws java.lang.Exception
value
- new rotation angle.
java.lang.Exception
public int getX()
getX
in interface IShape
public void setX(int value)
setX
in interface IShape
value
- new x coordinate.public int getY()
getY
in interface IShape
public void setY(int value)
setY
in interface IShape
value
- new y coordinate.public int getWidth()
getWidth
in interface IShape
public void setWidth(int value)
setWidth
in interface IShape
value
- new width of a shape.public int getHeight()
getHeight
in interface IShape
public void setHeight(int value)
setHeight
in interface IShape
value
- new height of a shape.public boolean isFlipH()
public void setFlipH(boolean value)
value
- true to flip the shape horizontally.public boolean isFlipV()
public void setFlipV(boolean value)
value
- true to flip the shape vertically.public TextFrame getTextFrame()
TextFrame
object.public void addTextFrame(java.lang.String text) throws PptEditException
text
- Default text for a new TextFrame.
PptEditException
public Tags getTags()
Tags
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |