DiagramShape
Inheritance: java.lang.Object, com.groupdocs.watermark.search.ShapeSearchAdapter
All Implemented Interfaces: com.groupdocs.watermark.search.IRotatableTwoDObject
public class DiagramShape extends ShapeSearchAdapter implements IRotatableTwoDObject
Represents a drawing shape in a Visio document.
Methods
| Method | Description | 
|---|---|
| getPageNumber() | |
| getPage() | Gets the parent page of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape). | 
| getWidth() | Gets the width of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) in points. | 
| setWidth(double value) | Sets the width of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) in points. | 
| getHeight() | Gets the height of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) in points. | 
| setHeight(double value) | Sets the height of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) in points. | 
| getX() | Gets the horizontal offset of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) from page left border in points. | 
| setX(double value) | Sets the horizontal offset of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) from page left border in points. | 
| getY() | Gets the vertical offset of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) from page bottom border in points. | 
| setY(double value) | Sets the vertical offset of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) from page bottom border in points. | 
| getRotateAngle() | Gets or sets the rotate angle of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) in degrees. | 
| setRotateAngle(double value) | Gets or sets the rotate angle of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) in degrees. | 
| getText() | Gets or sets the text of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape). | 
| setText(String value) | Gets or sets the text of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape). | 
| getFormattedTextFragments() | Gets the collection of formatted text fragments of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape). | 
| getImage() | Gets the image of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape). | 
| setImage(DiagramWatermarkableImage value) | Sets the image of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape). | 
| getId() | Gets the identifier of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape). | 
| getName() | Gets the name of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape). | 
| getHyperlinks() | Gets the collection of hyperlinks attached to this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape). | 
| getAsposeShape() | |
| getFormattedTextFragmentsForSearch() | |
| getImageForSearch() | |
| setFoundWatermarkImage(byte[] imageData) | |
| getTextForSearch() | |
| setFoundWatermarkText(String value) | 
getPageNumber()
public Integer getPageNumber()
Returns: java.lang.Integer
getPage()
public final DiagramPage getPage()
Gets the parent page of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape).
Returns:
DiagramPage - The parent page of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape).
getWidth()
public final double getWidth()
Gets the width of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) in points.
Returns:
double - The width of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) in points.
setWidth(double value)
public final void setWidth(double value)
Sets the width of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) in points.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | double | The width of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) in points. | 
getHeight()
public final double getHeight()
Gets the height of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) in points.
Returns:
double - The height of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) in points.
setHeight(double value)
public final void setHeight(double value)
Sets the height of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) in points.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | double | The height of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) in points. | 
getX()
public final double getX()
Gets the horizontal offset of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) from page left border in points.
Returns:
double - The horizontal offset of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) from page left border in points.
setX(double value)
public final void setX(double value)
Sets the horizontal offset of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) from page left border in points.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | double | The horizontal offset of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) from page left border in points. | 
getY()
public final double getY()
Gets the vertical offset of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) from page bottom border in points.
Returns:
double - The vertical offset of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) from page bottom border in points.
setY(double value)
public final void setY(double value)
Sets the vertical offset of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) from page bottom border in points.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | double | The vertical offset of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) from page bottom border in points. | 
getRotateAngle()
public final double getRotateAngle()
Gets or sets the rotate angle of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) in degrees.
Returns:
double - The rotate angle of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) in degrees.
setRotateAngle(double value)
public final void setRotateAngle(double value)
Gets or sets the rotate angle of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) in degrees.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | double | The rotate angle of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape) in degrees. | 
getText()
public final String getText()
Gets or sets the text of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape).
Returns:
java.lang.String - The text of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape).
setText(String value)
public final void setText(String value)
Gets or sets the text of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape).
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | java.lang.String | The text of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape). | 
getFormattedTextFragments()
public final FormattedTextFragmentCollection getFormattedTextFragments()
Gets the collection of formatted text fragments of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape).
Returns:
FormattedTextFragmentCollection - The collection of formatted text fragments of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape).
getImage()
public final DiagramWatermarkableImage getImage()
Gets the image of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape).
Returns:
DiagramWatermarkableImage - The image of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape).
setImage(DiagramWatermarkableImage value)
public final void setImage(DiagramWatermarkableImage value)
Sets the image of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape).
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | DiagramWatermarkableImage | The image of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape). | 
getId()
public final long getId()
Gets the identifier of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape).
Returns:
long - The identifier of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape).
getName()
public final String getName()
Gets the name of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape).
Returns:
java.lang.String - The name of this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape).
getHyperlinks()
public final DiagramHyperlinkCollection getHyperlinks()
Gets the collection of hyperlinks attached to this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape).
Returns:
DiagramHyperlinkCollection - The collection of hyperlinks attached to this [DiagramShape](../../com.groupdocs.watermark.contents/diagramshape).
getAsposeShape()
public final Shape getAsposeShape()
Returns: com.aspose.diagram.Shape
getFormattedTextFragmentsForSearch()
public FormattedTextFragmentCollection getFormattedTextFragmentsForSearch()
Returns: FormattedTextFragmentCollection
getImageForSearch()
public WatermarkableImage getImageForSearch()
Returns: WatermarkableImage
setFoundWatermarkImage(byte[] imageData)
public void setFoundWatermarkImage(byte[] imageData)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| imageData | byte[] | 
getTextForSearch()
public String getTextForSearch()
Returns: java.lang.String
setFoundWatermarkText(String value)
public void setFoundWatermarkText(String value)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | java.lang.String |