java.lang.Object | ||
↳ | com.pspdfkit.annotations.Annotation | |
↳ | com.pspdfkit.annotations.NoteAnnotation |
Represents a note (shown as an icon) on the page.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
@interface | NoteAnnotation.IconName | Denotes that a parameter must belong to on of these strings defined in NoteAnnotation : COMMENT , RIGHT_POINTER , RIGHT_ARROW , CHECK , CIRCLE ,
CROSS , INSERT , NEW_PARAGRAPH , NOTE , PARAGRAPH ,
HELP , STAR , KEY . |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NoteAnnotation(int pageIndex, RectF annotationRect, String contents, String iconName)
Creates a new note annotation
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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 |
isOpen()
Checks if the popup of this annotation is opened.
| ||||||||||
boolean |
isResizable()
Always returns
false , since note annotations are not resizable. | ||||||||||
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 note annotation
pageIndex | Page to which this annotation will be attached to. |
---|---|
annotationRect | Rectangle in page coordinates of the note position on the page. |
contents | Text contents of the note. |
iconName | Icon name of the note, may be null .
|
Returns the name of the icon that should be displayed for this annotation.
NOTE
by default.
Gets the annotation type of the annotation.
Checks if the popup of this annotation is opened.
true
if annotation popup is displayed, false
otherwise.
Always returns false
, since note annotations are not resizable.
false
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). |