public class WatermarkAnnotation extends Annotation
Class describes Watermark annotation object.
| Constructor and Description |
|---|
WatermarkAnnotation(Page page,
Rectangle rect)
Constructor for Watermark annotation class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(AnnotationSelector visitor)
Apply visitor for annotation.
|
int |
getAnnotationType()
Gets annotation type.
|
FixedPrint |
getFixedPrint()
Fixed print object of Watermark annotation.
|
double |
getOpacity()
Gets or sets opacity of the annotation.
|
void |
setOpacity(double value)
Gets or sets opacity of the annotation.
|
void |
setText(FormattedText text)
Set text of the annotation.
|
void |
setTextAndState(String[] text,
TextState textState)
Set text of the annotation.
|
changeAfterResize, createAnnotation, flatten, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getPageIndex, getPdfActions, getRect, getRectangle, getStates, getTextHorizontalAlignment, getWidth, initialize, isUpdateAppearanceOnConvert, isUseFontSubset, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setRect, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidthdeepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndexpublic void setText(FormattedText text)
Set text of the annotation.
text - FormattedText Text value.public void setTextAndState(String[] text, TextState textState)
Set text of the annotation.
text - String array (Text value)textState - TextState objectpublic FixedPrint getFixedPrint()
Fixed print object of Watermark annotation.
public int getAnnotationType()
Gets annotation type.
getAnnotationType in class AnnotationAnnotationTypepublic void accept(AnnotationSelector visitor)
Apply visitor for annotation.
accept in class Annotationvisitor - Visitor object.public double getOpacity()
Gets or sets opacity of the annotation.
public void setOpacity(double value)
Gets or sets opacity of the annotation.
value - double valueCopyright © 2022 Aspose. All Rights Reserved.