|
||||||||
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.
Field Summary | |
---|---|
protected static java.awt.geom.Point2D.Float[] |
defaultConnectionPoints
|
protected static java.awt.geom.Point2D.Float[] |
emptyConnectionPoints
|
protected static ShapeElement[] |
emptyShape
|
protected IEsAnchor |
m_anchor
|
protected AnimationSettings |
m_animationSettings
|
protected FillFormat |
m_fillFormat
|
protected EsContainer |
m_frame
|
protected LineFormat |
m_lineFormat
|
protected Link |
m_link
|
protected long |
m_nFSTVersion
|
protected EsOpt |
m_options
|
protected Slide |
m_parent
|
protected ShadowFormat |
m_shadowFormat
|
protected Shapes |
m_shapesParent
|
protected Tags |
m_tags
|
protected TextFrame |
m_TextFrame
|
protected long |
m_version
|
Constructor Summary | |
---|---|
protected |
Shape(Slide parent)
|
protected |
Shape(Slide parent,
EsSpContainer frame)
|
Method Summary | |
---|---|
Link |
addLink()
Adds the new link to a shape. |
TextFrame |
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. |
protected IEsAnchor |
getAnchor()
|
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. |
protected EsSpContainer |
getFrame()
|
protected int |
getgeoBottom()
|
protected int |
getgeoRight()
|
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. |
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 the name of a shape. |
protected EsOpt |
getOptions()
|
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. |
protected int |
getRotation0_360()
Rotation, normalized to [0; 360) interval |
ShadowFormat |
getShadowFormat()
Returns the ShadowFormat object that contains shadow decoration properties of a shape. |
int |
getShapeId()
Returns the unique Id 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 |
hasExternalData()
Determines whether the shape has external referenced data e.g. |
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. |
protected boolean |
shouldDraw(int drc,
IDrawingControl[] drawingControl,
boolean[] recurseToChildren)
Determines whether the shape should be drawn. |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Slide m_parent
protected Shapes m_shapesParent
protected EsContainer m_frame
protected IEsAnchor m_anchor
protected EsOpt m_options
protected long m_version
protected long m_nFSTVersion
protected LineFormat m_lineFormat
protected FillFormat m_fillFormat
protected ShadowFormat m_shadowFormat
protected AnimationSettings m_animationSettings
protected Tags m_tags
protected Link m_link
protected TextFrame m_TextFrame
protected static final ShapeElement[] emptyShape
protected static final java.awt.geom.Point2D.Float[] emptyConnectionPoints
protected static final java.awt.geom.Point2D.Float[] defaultConnectionPoints
Constructor Detail |
---|
protected Shape(Slide parent)
protected Shape(Slide parent, EsSpContainer frame)
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
.protected EsSpContainer getFrame()
protected EsOpt getOptions()
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
protected int getRotation0_360()
protected IEsAnchor getAnchor()
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.protected int getgeoRight()
protected int getgeoBottom()
public int getShapeId()
public int getMasterShapeId()
public TextFrame getTextFrame()
TextFrame
object.public TextFrame addTextFrame(java.lang.String text) throws PptEditException
text
- Default text for a new TextFrame.
PptEditException
public Tags getTags()
Tags
.public boolean hasExternalData()
protected boolean shouldDraw(int drc, IDrawingControl[] drawingControl, boolean[] recurseToChildren)
drc
- DrawingControlDecisiondrawingControl
- IDrawingControlrecurseToChildren
- returns whether we should recurse
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |