java.lang.Object | ||
↳ | com.pspdfkit.annotations.Annotation | |
↳ | com.pspdfkit.annotations.FileAnnotation |
Represents an annotation associated with EmbeddedFile
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
@interface | FileAnnotation.IconName | Denotes that a parameter must belong to on of these strings defined in FileAnnotation : PUSH_PIN , PAPERCLIP , GRAPH , TAG . |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | GRAPH | ||||||||||
String | PAPERCLIP | ||||||||||
String | PUSH_PIN | ||||||||||
String | TAG |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FileAnnotation(int pageIndex, RectF boundingBox, EmbeddedFileSource embeddedFileSource)
Creates a new file annotation.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
EmbeddedFile |
getFile()
Returns a file set for this annotation.
| ||||||||||
String |
getIconName()
Returns the name of the icon that should be displayed for this annotation.
| ||||||||||
AnnotationType |
getType()
Gets the annotation type of the annotation.
| ||||||||||
boolean |
isLocked()
Check if the annotation is locked - i.e.
| ||||||||||
boolean |
isResizable()
Check if the annotation is resizable, or if this is a non-resizable annotation.
| ||||||||||
void |
setFileSource(EmbeddedFileSource fileSource)
Replaces an embedded file associated with this annotation.
| ||||||||||
void |
setIconName(String iconName)
Sets the name of the icon that should be displayed for this annotation.
| ||||||||||
void |
updateTransformationProperties(RectF newBoundingBox, RectF oldBoundingBox)
Annotations may override this method to transform their properties (i.e.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a new file annotation.
pageIndex | Page to which this annotation will be attached to. |
---|---|
boundingBox | Annotation's bounding box on the page in PDF coordinates. |
embeddedFileSource | Source of the file data that should be attached to the annotation. |
Returns a file set for this annotation.
null
if no embedded file is
currently set.
Returns the name of the icon that should be displayed for this annotation.
Gets the annotation type of the annotation.
Check if the annotation is locked - i.e. annotation can't be deleted or modified (except contents).
true
if the annotation is locked or false
if it can be freely
modified.
Check if the annotation is resizable, or if this is a non-resizable annotation.
true
if the annotation can be resized (e.g. ink annotation) or false
if it is a non-resizable one (e.g. note annotation).
Replaces an embedded file associated with this annotation.
fileSource | Source for the embedded file data. |
---|
Sets the name of the icon that should be displayed for this annotation.
iconName | Icon name to be set. |
---|
Annotations may override this method to transform their properties (i.e. points, rects, sizes) whenever the bounding box of the annotation changed.
newBoundingBox | New bounding box of the annotation (in PDF points). |
---|---|
oldBoundingBox | Old bounding box of the annotation (in PDF points). |