public final class FileAttachmentAnnotation extends MarkupAnnotation
Class describes file attachment annotation.
_disableUpdateAppearance
Constructor and Description |
---|
FileAttachmentAnnotation(Page page,
Rectangle rect,
FileSpecification fileSpec)
Creates new FileAttachment annotation on the specified page.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(AnnotationSelector visitor)
Accepts visitor object to process annotation.
|
int |
getAnnotationType()
Gets type of annotation.
|
FileSpecification |
getFile()
Get specification of the file associated with this annotation.
|
int |
getIcon()
Gets icon that shall be used in displaying annotation.
|
void |
setFile(FileSpecification value)
Set specification of the file associated with this annotation.
|
void |
setIcon(int value)
Sets icon that shall be used in displaying annotation.
|
getCreationDate, getInReplyTo, getOpacity, getPopup, getReplyType, getRichText, getSubject, getTitle, setInReplyTo, setOpacity, setPopup, setReplyType, setRichText, setSubject, setTitle
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 FileAttachmentAnnotation(Page page, Rectangle rect, FileSpecification fileSpec)
Creates new FileAttachment annotation on the specified page.
page
- Document's page where annotation should be created.rect
- Required rectangle that sets annotation's border.fileSpec
- Describes the file that shoud be bound with the annotation.public int getAnnotationType()
Gets type of annotation.
getAnnotationType
in class Annotation
AnnotationType
public FileSpecification getFile()
Get specification of the file associated with this annotation.
public void setFile(FileSpecification value)
Set specification of the file associated with this annotation.
value
- file specification.public int getIcon()
Gets icon that shall be used in displaying annotation.
FileIcon
public void setIcon(int value)
Sets icon that shall be used in displaying annotation.
value
- FileIcon valueFileIcon
public void accept(AnnotationSelector visitor)
Accepts visitor object to process annotation.
accept
in class Annotation
visitor
- Visitor object.