WatermarkAnnotation
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
Constructors
Constructor | Description |
---|---|
WatermarkAnnotation() | Initializes new instance of WatermarkAnnotation class. |
Methods
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) |
WatermarkAnnotation()
public WatermarkAnnotation()
Initializes new instance of WatermarkAnnotation class.
getBox()
public final Rectangle getBox()
Gets or sets annotation position
Returns: Rectangle
setBox(Rectangle value)
public final void setBox(Rectangle value)
Gets or sets annotation position
Parameters:
Parameter | Type | Description |
---|---|---|
value | Rectangle |
getAutoScale()
public final Boolean getAutoScale()
Gets or sets auto scale for watermar
Returns: java.lang.Boolean -
setAutoScale(Boolean value)
public final void setAutoScale(Boolean value)
Gets or sets auto scale for watermar
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Boolean |
getText()
public final String getText()
Gets or sets watermark text
Returns: java.lang.String -
setText(String value)
public final void setText(String value)
Gets or sets watermark text
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
getFontColor()
public final Integer getFontColor()
Gets or sets watermark text font color
Returns: java.lang.Integer -
setFontColor(Integer value)
public final void setFontColor(Integer value)
Gets or sets watermark text font color
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Integer |
getFontFamily()
public final String getFontFamily()
Gets or sets watermark text font family
Returns: java.lang.String -
setFontFamily(String value)
public final void setFontFamily(String value)
Gets or sets watermark text font family
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
getFontSize()
public final Double getFontSize()
Gets or sets watermark text font size
Returns: java.lang.Double -
setFontSize(Double value)
public final void setFontSize(Double value)
Gets or sets watermark text font size
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Double |
getOpacity()
public final Double getOpacity()
Gets or sets annotation opacity
Returns: java.lang.Double -
setOpacity(Double value)
public final void setOpacity(Double value)
Gets or sets annotation opacity
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Double |
getAngle()
public final Double getAngle()
Gets or sets watermark rotation angle
Returns: java.lang.Double -
setAngle(Double value)
public final void setAngle(Double value)
Gets or sets watermark rotation angle
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Double |
equals(WatermarkAnnotation other)
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 -
equals(Object o)
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
hashCode()
public int hashCode()
Returns HashCode of Watermark Annotation
Returns: int
deepClone()
public Object deepClone()
Returns new Instance with same values
Returns: java.lang.Object -
getHorizontalAlignment()
public final Integer getHorizontalAlignment()
Gets or sets watermark horizontal alignment on document
Returns: java.lang.Integer -
setHorizontalAlignment(Integer value)
public final void setHorizontalAlignment(Integer value)
Gets or sets watermark horizontal alignment on document
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Integer |
getVerticalAlignment()
public final Integer getVerticalAlignment()
Gets or sets watermark vertical alignment on document
Returns: java.lang.Integer -
setVerticalAlignment(Integer value)
public final void setVerticalAlignment(Integer value)
Gets or sets watermark vertical alignment on document
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Integer |
toString()
public String toString()
Returns: java.lang.String
toString(ToStringStyle toStringStyle)
public String toString(ToStringStyle toStringStyle)
Parameters:
Parameter | Type | Description |
---|---|---|
toStringStyle | org.apache.commons.lang3.builder.ToStringStyle |
Returns: java.lang.String