public class WatermarkAnnotation extends Annotation
| Constructor and Description |
|---|
WatermarkAnnotation(Page page,
Rectangle rect)
Constuctore for Watermark annotation class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(AnnotationSelector visitor)
Accepts visitor for annotation processing.
|
int |
getAnnotationType()
Gets type of annotation.
|
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.
|
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 objectpublic void setTextAndState(String[] text, TextState textState)
Set text of the annotation.
text - String arraytextState - TextState objectpublic FixedPrint getFixedPrint()
Fixed print object of Watermark annotation.
public int getAnnotationType()
AnnotationGets type of annotation.
getAnnotationType in class AnnotationAnnotationTypepublic void accept(AnnotationSelector visitor)
AnnotationAccepts visitor for annotation processing.
accept in class Annotationvisitor - AnnotationSelector 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 © 2021 Aspose. All Rights Reserved.