PresentationShape
Inheritance: java.lang.Object, com.groupdocs.watermark.search.ShapeSearchAdapter, com.groupdocs.watermark.contents.PresentationBaseShape
All Implemented Interfaces: com.groupdocs.watermark.search.IRotatableTwoDObject
public class PresentationShape extends PresentationBaseShape implements IRotatableTwoDObject
Represents a drawing shape in a PowerPoint document.
Methods
Method | Description |
---|---|
getRotateAngle() | Gets the rotate angle of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape) in degrees. |
setRotateAngle(double value) | Sets the rotate angle of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape) in degrees. |
getText() | Gets the text of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape) . |
setText(String value) | Sets the text of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape) . |
getFormattedTextFragments() | Gets the collection of formatted text fragments of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape) . |
getShapeType() | Gets the shape geometry preset type. |
getImage() | Gets the image of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape) . |
setImage(PresentationWatermarkableImage value) | Sets the image of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape) . |
getImageForSearch() | |
setFoundWatermarkImage(byte[] imageData) | |
getFormattedTextFragmentsForSearch() | |
getTextForSearch() | |
setFoundWatermarkText(String value) |
getRotateAngle()
public final double getRotateAngle()
Gets the rotate angle of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape)
in degrees.
Returns:
double - The rotate angle of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape)
in degrees.
setRotateAngle(double value)
public final void setRotateAngle(double value)
Sets the rotate angle of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape)
in degrees.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | The rotate angle of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape) in degrees. |
getText()
public final String getText()
Gets the text of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape)
.
Returns:
java.lang.String - The text of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape)
.
setText(String value)
public final void setText(String value)
Sets the text of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape)
.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | The text of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape) . |
getFormattedTextFragments()
public final FormattedTextFragmentCollection getFormattedTextFragments()
Gets the collection of formatted text fragments of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape)
.
Returns:
FormattedTextFragmentCollection - The collection of formatted text fragments of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape)
.
getShapeType()
public final int getShapeType()
Gets the shape geometry preset type.
Returns: int - The geometry preset type.
getImage()
public final PresentationWatermarkableImage getImage()
Gets the image of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape)
.
Returns:
PresentationWatermarkableImage - The image of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape)
or null if the shape has no image.
setImage(PresentationWatermarkableImage value)
public final void setImage(PresentationWatermarkableImage value)
Sets the image of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape)
.
Parameters:
Parameter | Type | Description |
---|---|---|
value | PresentationWatermarkableImage | The image of this [PresentationShape](../../com.groupdocs.watermark.contents/presentationshape) or null if the image should be removed. |
getImageForSearch()
public WatermarkableImage getImageForSearch()
Returns: WatermarkableImage
setFoundWatermarkImage(byte[] imageData)
public void setFoundWatermarkImage(byte[] imageData)
Parameters:
Parameter | Type | Description |
---|---|---|
imageData | byte[] |
getFormattedTextFragmentsForSearch()
public FormattedTextFragmentCollection getFormattedTextFragmentsForSearch()
Returns: FormattedTextFragmentCollection
getTextForSearch()
public String getTextForSearch()
Returns: java.lang.String
setFoundWatermarkText(String value)
public void setFoundWatermarkText(String value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |