WatermarkAnnotation
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.annotation.models.annotationmodels.AnnotationBase
All Implemented Interfaces: com.groupdocs.annotation.models.annotationmodels.interfaces.annotations.IWatermarkAnnotation
public class WatermarkAnnotation extends AnnotationBase implements IWatermarkAnnotation
Represents Watermark annotation properties
| Constructor | Description |
|---|---|
| WatermarkAnnotation() | Initializes new instance of WatermarkAnnotation class. |
| Method | Description |
|---|---|
| getBox() | Gets or sets annotation position |
| setBox(Rectangle value) | Gets or sets annotation position |
| getAutoScale() | Gets or sets auto scale for watermar |
| setAutoScale(Boolean value) | Gets or sets auto scale for watermar |
| getText() | Gets or sets watermark text |
| setText(String value) | Gets or sets watermark text |
| getFontColor() | Gets or sets watermark text font color |
| setFontColor(Integer value) | Gets or sets watermark text font color |
| getFontFamily() | Gets or sets watermark text font family |
| setFontFamily(String value) | Gets or sets watermark text font family |
| getFontSize() | Gets or sets watermark text font size |
| setFontSize(Double value) | Gets or sets watermark text font size |
| getOpacity() | Gets or sets annotation opacity |
| setOpacity(Double value) | Gets or sets annotation opacity |
| getAngle() | Gets or sets watermark rotation angle |
| setAngle(Double value) | Gets or sets watermark rotation angle |
| equals(WatermarkAnnotation other) | Compares Watermark Annotations using IEquatable Equals method |
| equals(Object o) | Compares Watermark Annotations using standard object Equals method |
| hashCode() | Returns HashCode of Watermark Annotation |
| deepClone() | Returns new Instance with same values |
| getHorizontalAlignment() | Gets or sets watermark horizontal alignment on document |
| setHorizontalAlignment(Integer value) | Gets or sets watermark horizontal alignment on document |
| getVerticalAlignment() | Gets or sets watermark vertical alignment on document |
| setVerticalAlignment(Integer value) | Gets or sets watermark vertical alignment on document |
| toString() | |
| toString(ToStringStyle toStringStyle) |
public WatermarkAnnotation()
Initializes new instance of WatermarkAnnotation class.
public final Rectangle getBox()
Gets or sets annotation position
Returns: Rectangle
public final void setBox(Rectangle value)
Gets or sets annotation position
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | Rectangle |
public final Boolean getAutoScale()
Gets or sets auto scale for watermar
Returns: java.lang.Boolean -
public final void setAutoScale(Boolean value)
Gets or sets auto scale for watermar
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.Boolean |
public final String getText()
Gets or sets watermark text
Returns: java.lang.String -
public final void setText(String value)
Gets or sets watermark text
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final Integer getFontColor()
Gets or sets watermark text font color
Returns: java.lang.Integer -
public final void setFontColor(Integer value)
Gets or sets watermark text font color
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.Integer |
public final String getFontFamily()
Gets or sets watermark text font family
Returns: java.lang.String -
public final void setFontFamily(String value)
Gets or sets watermark text font family
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final Double getFontSize()
Gets or sets watermark text font size
Returns: java.lang.Double -
public final void setFontSize(Double value)
Gets or sets watermark text font size
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.Double |
public final Double getOpacity()
Gets or sets annotation opacity
Returns: java.lang.Double -
public final void setOpacity(Double value)
Gets or sets annotation opacity
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.Double |
public final Double getAngle()
Gets or sets watermark rotation angle
Returns: java.lang.Double -
public final void setAngle(Double value)
Gets or sets watermark rotation angle
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.Double |
public final boolean equals(WatermarkAnnotation other)
Compares Watermark Annotations using IEquatable Equals method
Parameters:
| Parameter | Type | Description |
|---|---|---|
| other | WatermarkAnnotation | The WatermarkAnnotation object to compare with the current object |
Returns: boolean -
public boolean equals(Object o)
Compares Watermark Annotations using standard object Equals method
Parameters:
| Parameter | Type | Description |
|---|---|---|
| o | java.lang.Object | The object to compare with the current object |
Returns: boolean
public int hashCode()
Returns HashCode of Watermark Annotation
Returns: int
public Object deepClone()
Returns new Instance with same values
Returns: java.lang.Object -
public final Integer getHorizontalAlignment()
Gets or sets watermark horizontal alignment on document
Returns: java.lang.Integer -
public final void setHorizontalAlignment(Integer value)
Gets or sets watermark horizontal alignment on document
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.Integer |
public final Integer getVerticalAlignment()
Gets or sets watermark vertical alignment on document
Returns: java.lang.Integer -
public final void setVerticalAlignment(Integer value)
Gets or sets watermark vertical alignment on document
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.Integer |
public String toString()
Returns: java.lang.String
public String toString(ToStringStyle toStringStyle)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| toStringStyle | org.apache.commons.lang3.builder.ToStringStyle |
Returns: java.lang.String
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.