public class WatermarkAnnotation extends Annotation
_disableUpdateAppearance
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, setStructParent, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidth
deepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndex
public 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()
Annotation
Gets type of annotation.
getAnnotationType
in class Annotation
AnnotationType
public void accept(AnnotationSelector visitor)
Annotation
Accepts visitor for annotation processing.
accept
in class Annotation
visitor
- 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 value