DiagramCommentPossibleWatermark

Inheritance: java.lang.Object, com.groupdocs.watermark.search.PossibleWatermark

public class DiagramCommentPossibleWatermark extends PossibleWatermark

Represents possible watermark in a Visio document comment.

Constructors

Constructor Description
DiagramCommentPossibleWatermark(Annotation annotation, AnnotationCollection annotationCollection, DiagramPage page)

Methods

Method Description
getParent() Gets the parent of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark).
getWidth() Gets the width of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark) in points.
getHeight() Gets the height of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark) in points.
getX() Gets the horizontal offset of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark) from page left border in points.
getY() Gets the vertical offset of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark) from page bottom border in points.
getRotateAngle() Gets the rotate angle of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark) in degrees.
getText() Gets the text of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark).
setText(String value) Sets the text of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark).
getUnitOfMeasurement() Gets the [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement) of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark).
remove()

DiagramCommentPossibleWatermark(Annotation annotation, AnnotationCollection annotationCollection, DiagramPage page)

public DiagramCommentPossibleWatermark(Annotation annotation, AnnotationCollection annotationCollection, DiagramPage page)

Parameters:

Parameter Type Description
annotation com.aspose.diagram.Annotation
annotationCollection com.aspose.diagram.AnnotationCollection
page DiagramPage

getParent()

public ContentPart getParent()

Gets the parent of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark).

Returns: ContentPart - The parent of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark).

getWidth()

public double getWidth()

Gets the width of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark) in points.

Returns: double - The value is always 0 for this type of possible watermark.

getHeight()

public double getHeight()

Gets the height of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark) in points.

Returns: double - The value is always 0 for this type of possible watermark.

getX()

public double getX()

Gets the horizontal offset of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark) from page left border in points.

Returns: double - The x-coordinate of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark).

getY()

public double getY()

Gets the vertical offset of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark) from page bottom border in points.

Returns: double - The y-coordinate of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark).

getRotateAngle()

public double getRotateAngle()

Gets the rotate angle of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark) in degrees.

Returns: double - The value is always 0 for this type of possible watermark.

getText()

public String getText()

Gets the text of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark).

Returns: java.lang.String - The text of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark).

setText(String value)

public void setText(String value)

Sets the text of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark).

Parameters:

Parameter Type Description
value java.lang.String The text of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark).

getUnitOfMeasurement()

public int getUnitOfMeasurement()

Gets the [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement) of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark).

Returns: int - The [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement) of this [DiagramCommentPossibleWatermark](../../com.groupdocs.watermark.search/diagramcommentpossiblewatermark).

remove()

public void remove()