**Inheritance:**
java.lang.Object, com.aspose.pdf.BaseParagraph com.aspose.pdf.Annotation com.aspose.pdf.WatermarkAnnotation, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation com.aspose.pdf.WatermarkAnnotation, com.aspose.pdf.Annotation, com.aspose.pdf.WatermarkAnnotation

**All Implemented Interfaces:**
com.aspose.ms.System.ICloneable

```
public class WatermarkAnnotation extends Annotation
```

Class describes Watermark annotation object.

## Constructors

| Constructor | Description |
| --- | --- |
| [WatermarkAnnotation](#WatermarkAnnotation-com.aspose.pdf.Page-com.aspose.pdf.Rectangle-) | Constructor for Watermark annotation class. |

## Methods

| Method | Description |
| --- | --- |
| [accept](#accept-com.aspose.pdf.AnnotationSelector-) | Apply visitor for annotation. |
| [changeAfterResize](#changeAfterResize-com.aspose.pdf.Matrix-) | Overrides the definition in the base class with an empty body. |
| [getAnnotationType](#getAnnotationType--) | Gets annotation type. |
| [getFixedPrint](#getFixedPrint--) | Fixed print object of Watermark annotation. |
| [getOpacity](#getOpacity--) | Gets or sets opacity of the annotation. |
| [setOpacity](#setOpacity-double-) | Gets or sets opacity of the annotation. |
| [setText](#setText-com.aspose.pdf.facades.FormattedText-) | Set text of the annotation. |
| [setTextAndState](#setTextAndState-java.lang.String:A-com.aspose.pdf.TextState-) | Set text of the annotation. |

### WatermarkAnnotation {#WatermarkAnnotation-com.aspose.pdf.Page-com.aspose.pdf.Rectangle-}
Constructor for Watermark annotation class.

### accept {#accept-com.aspose.pdf.AnnotationSelector-}
Apply visitor for annotation.

### changeAfterResize {#changeAfterResize-com.aspose.pdf.Matrix-}
Overrides the definition in the base class with an empty body.

### getAnnotationType {#getAnnotationType--}
```
public AnnotationType getAnnotationType()
```

Gets annotation type.

**Returns:**
AnnotationType element

### getFixedPrint {#getFixedPrint--}
```
public FixedPrint getFixedPrint()
```

Fixed print object of Watermark annotation.

**Returns:**
FixedPrint object

### getOpacity {#getOpacity--}
```
public double getOpacity()
```

Gets or sets opacity of the annotation.

**Returns:**
double value

### setOpacity {#setOpacity-double-}
```
public void setOpacity(double value)
```

Gets or sets opacity of the annotation.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | double value |

### setText {#setText-com.aspose.pdf.facades.FormattedText-}
Set text of the annotation.

### setTextAndState {#setTextAndState-java.lang.String:A-com.aspose.pdf.TextState-}
Set text of the annotation.
