public interface IShape extends ISlideComponent, IHyperlinkContainer
Represents a shape on a slide.
Modifier and Type | Method and Description |
---|---|
IPlaceholder |
addPlaceholder(IPlaceholder placeholderToCopyFrom)
Adds a new placeholder if there is no and sets placeholder properties to a specified one.
|
IEffectFormatEffectiveData |
createEffectFormatEffective()
Deprecated.
Use EffectFormat.GetEffective() instead. The method will be removed after release of version 20.8.
|
IFillFormatEffectiveData |
createFillFormatEffective()
Deprecated.
Use FillFormat.GetEffective() instead. The method will be removed after release of version 20.8.
|
ILineFormatEffectiveData |
createLineFormatEffective()
Deprecated.
Use LineFormat.GetEffective() instead. The method will be removed after release of version 20.8.
|
IThreeDFormatEffectiveData |
createThreeDFormatEffective()
Deprecated.
Use ThreeDFormatFormat.GetEffective() instead. The method will be removed after release of version 20.8.
|
java.lang.String |
getAlternativeText()
Returns or sets the alternative text associated with a shape.
|
java.lang.String |
getAlternativeTextTitle()
Returns or sets the title of alternative text associated with a shape.
|
byte |
getBlackWhiteMode()
Property specifies how a shape will render in black-and-white display mode..
|
int |
getConnectionSiteCount()
Returns the number of connection sites on the shape.
|
ICustomData |
getCustomData()
Returns the shape's custom data.
|
IEffectFormat |
getEffectFormat()
Returns the EffectFormat object which contains pixel effects applied to a shape.
|
IFillFormat |
getFillFormat()
Returns the FillFormat object that contains fill formatting properties for a shape.
|
IShapeFrame |
getFrame()
Returns or sets the shape frame's properties.
|
float |
getHeight()
Returns or sets the height of the shape.
|
boolean |
getHidden()
Determines whether the shape is hidden.
|
ILineFormat |
getLineFormat()
Returns the LineFormat object that contains line formatting properties for a shape.
|
java.lang.String |
getName()
Returns or sets the name of a shape.
|
long |
getOfficeInteropShapeId()
Gets unique shape identifier in slide scope.
|
IGroupShape |
getParentGroup()
Returns parent GroupShape object if shape is grouped.
|
IPlaceholder |
getPlaceholder()
Returns the placeholder for a shape.
|
IShapeFrame |
getRawFrame()
Returns or sets the raw shape frame's properties.
|
float |
getRotation()
Returns or sets the number of degrees the specified shape is rotated around
the z-axis.
|
IBaseShapeLock |
getShapeLock()
Returns shape's locks.
|
IThreeDFormat |
getThreeDFormat()
Returns the ThreeDFormat object that contains line formatting properties for a shape.
|
android.graphics.Bitmap |
getThumbnail()
Returns shape thumbnail.
|
android.graphics.Bitmap |
getThumbnail(int bounds,
float scaleX,
float scaleY)
Returns shape thumbnail.
|
long |
getUniqueId()
Gets unique shape identifier in presentation scope.
|
float |
getWidth()
Returns or sets the width of the shape.
|
float |
getX()
Returns or sets the x-coordinate of the upper-left corner of the shape.
|
float |
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 |
isGrouped()
Determines whether the shape is grouped.
|
boolean |
isTextHolder()
Determines whether the shape is TextHolder.
|
void |
removePlaceholder()
Defines that this shape isn't a placeholder.
|
void |
setAlternativeText(java.lang.String value)
Returns or sets the alternative text associated with a shape.
|
void |
setAlternativeTextTitle(java.lang.String value)
Returns or sets the title of alternative text associated with a shape.
|
void |
setBlackWhiteMode(byte value)
Property specifies how a shape will render in black-and-white display mode..
|
void |
setFrame(IShapeFrame value)
Returns or sets the shape frame's properties.
|
void |
setHeight(float value)
Returns or sets the height of the shape.
|
void |
setHidden(boolean value)
Determines whether the shape is hidden.
|
void |
setName(java.lang.String value)
Returns or sets the name of a shape.
|
void |
setRawFrame(IShapeFrame value)
Returns or sets the raw shape frame's properties.
|
void |
setRotation(float value)
Returns or sets the number of degrees the specified shape is rotated around
the z-axis.
|
void |
setWidth(float value)
Returns or sets the width of the shape.
|
void |
setX(float value)
Returns or sets the x-coordinate of the upper-left corner of the shape.
|
void |
setY(float value)
Returns or sets the y-coordinate of the upper-left corner of the shape.
|
void |
writeAsSvg(java.io.OutputStream stream)
Saves content of Shape as SVG file.
|
void |
writeAsSvg(java.io.OutputStream stream,
ISVGOptions svgOptions)
Saves content of Shape as SVG file.
|
getSlide
getPresentation
getHyperlinkClick, getHyperlinkManager, getHyperlinkMouseOver, setHyperlinkClick, setHyperlinkMouseOver
boolean isTextHolder()
Determines whether the shape is TextHolder.
Read-only boolean
.
IPlaceholder getPlaceholder()
Returns the placeholder for a shape.
Read-only IPlaceholder
.
IPlaceholder addPlaceholder(IPlaceholder placeholderToCopyFrom)
Adds a new placeholder if there is no and sets placeholder properties to a specified one.
placeholderToCopyFrom
- Placeholder to copy content from.IPlaceholder
.void removePlaceholder()
Defines that this shape isn't a placeholder.
ICustomData getCustomData()
Returns the shape's custom data.
Read-only ICustomData
.
IShapeFrame getRawFrame()
Returns or sets the raw shape frame's properties.
Read/write IShapeFrame
.
void setRawFrame(IShapeFrame value)
Returns or sets the raw shape frame's properties.
Read/write IShapeFrame
.
IShapeFrame getFrame()
Returns or sets the shape frame's properties.
Read/write IShapeFrame
.
void setFrame(IShapeFrame value)
Returns or sets the shape frame's properties.
Read/write IShapeFrame
.
ILineFormat getLineFormat()
Returns the LineFormat object that contains line formatting properties for a shape.
Read-only ILineFormat
.
IThreeDFormat getThreeDFormat()
Returns the ThreeDFormat object that contains line formatting properties for a shape.
Read-only IThreeDFormat
.
IEffectFormat getEffectFormat()
Returns the EffectFormat object which contains pixel effects applied to a shape.
Read-only IEffectFormat
.
IFillFormat getFillFormat()
Returns the FillFormat object that contains fill formatting properties for a shape.
Read-only IFillFormat
.
@Deprecated ILineFormatEffectiveData createLineFormatEffective()
Creates the LineFormatEffectiveData object that contains all line formatting properties for a shape, included inherited.
ILineFormatEffectiveData
.@Deprecated IFillFormatEffectiveData createFillFormatEffective()
Creates the FillFormatEffectiveData object that contains all fill formatting properties for a shape, included inherited.
IFillFormatEffectiveData
.@Deprecated IEffectFormatEffectiveData createEffectFormatEffective()
Creates the EffectFormatEffectiveData object that contains all effects applyed to a shape, included inherited.
IEffectFormatEffectiveData
.@Deprecated IThreeDFormatEffectiveData createThreeDFormatEffective()
Creates the ThreeDFormatEffectiveData object that contains volume properties and 3D transformation of a shape, included inherited.
IThreeDFormatEffectiveData
.android.graphics.Bitmap getThumbnail()
Returns shape thumbnail. ShapeThumbnailBounds.Shape shape thumbnail bounds type is used by default.
android.graphics.Bitmap getThumbnail(int bounds, float scaleX, float scaleY)
Returns shape thumbnail.
bounds
- Shape thumbnail bounds type.scaleX
- X scalescaleY
- Y scaleboolean getHidden()
Determines whether the shape is hidden.
Read/write boolean
.
void setHidden(boolean value)
Determines whether the shape is hidden.
Read/write boolean
.
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
.
int getConnectionSiteCount()
Returns the number of connection sites on the shape.
Read-only int
.
float 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 float
.
void setRotation(float value)
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 float
.
float getX()
Returns or sets the x-coordinate of the upper-left corner of the shape.
Read/write float
.
void setX(float value)
Returns or sets the x-coordinate of the upper-left corner of the shape.
Read/write float
.
float getY()
Returns or sets the y-coordinate of the upper-left corner of the shape.
Read/write float
.
void setY(float value)
Returns or sets the y-coordinate of the upper-left corner of the shape.
Read/write float
.
float getWidth()
Returns or sets the width of the shape.
Read/write float
.
void setWidth(float value)
Returns or sets the width of the shape.
Read/write float
.
float getHeight()
Returns or sets the height of the shape.
Read/write float
.
void setHeight(float value)
Returns or sets the height of the shape.
Read/write float
.
java.lang.String getAlternativeText()
Returns or sets the alternative text associated with a shape.
Read/write String
.
void setAlternativeText(java.lang.String value)
Returns or sets the alternative text associated with a shape.
Read/write String
.
java.lang.String getAlternativeTextTitle()
Returns or sets the title of alternative text associated with a shape.
Read/write String
.
void setAlternativeTextTitle(java.lang.String value)
Returns or sets the title of alternative text associated with a shape.
Read/write String
.
java.lang.String getName()
Returns or sets the name of a shape.
Read/write String
.
void setName(java.lang.String value)
Returns or sets the name of a shape.
Read/write String
.
IBaseShapeLock getShapeLock()
Returns shape's locks.
Read-only IBaseShapeLock
.
long getUniqueId()
Gets unique shape identifier in presentation scope.
Read-only long
.
See also OfficeInteropShapeId
(getOfficeInteropShapeId()
) for getting unique shape identifier in slide scope.
long getOfficeInteropShapeId()
Gets unique shape identifier in slide scope.
Read-only long
.
See also UniqueId
(getUniqueId()
) for getting unique shape identifier in presentation scope.
boolean isGrouped()
Determines whether the shape is grouped.
Read-only boolean
.
ParentGroup
(getParentGroup()
) returns parent GroupShape object if shape is grouped.
byte getBlackWhiteMode()
Property specifies how a shape will render in black-and-white display mode..
Read/write BlackWhiteMode
.
void setBlackWhiteMode(byte value)
Property specifies how a shape will render in black-and-white display mode..
Read/write BlackWhiteMode
.
IGroupShape getParentGroup()
Returns parent GroupShape object if shape is grouped. Otherwise returns null.
Read-only IGroupShape
.
IsGrouped
(isGrouped()
) determines whether the shape is grouped.
void writeAsSvg(java.io.OutputStream stream)
Saves content of Shape as SVG file.
stream
- Target streamvoid writeAsSvg(java.io.OutputStream stream, ISVGOptions svgOptions)
Saves content of Shape as SVG file.
stream
- Target streamsvgOptions
- SVG generation options