Class AnnotationAddRemoveEdit
-
- All Implemented Interfaces:
-
com.pspdfkit.undo.edit.Edit
public final class AnnotationAddRemoveEdit extends AnnotationEdit
Edit that represents adding or removing annotation from the document.
Creates an object representing a single add/remove edit performed on the annotation in the document.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
AnnotationAddRemoveEdit.Type
Possible types of AnnotationAddRemoveEdit objects.
-
Field Summary
Fields Modifier and Type Field Description private final AnnotationPropertyManager
properties
private final AnnotationType
annotationType
private Bitmap
bitmap
private EmbeddedAudioSource
audioData
private final AppearanceStreamGenerator
appearanceStreamGenerator
private final AnnotationAddRemoveEdit.Type
type
-
Constructor Summary
Constructors Constructor Description AnnotationAddRemoveEdit(Annotation annotation, AnnotationAddRemoveEdit.Type type)
-
Method Summary
Modifier and Type Method Description final AnnotationPropertyManager
getProperties()
For internal use only! final AnnotationType
getAnnotationType()
Type of annotation being referenced. final Bitmap
getBitmap()
Stamp bitmap (if set). final Unit
setBitmap(Bitmap bitmap)
Stamp bitmap (if set). final EmbeddedAudioSource
getAudioData()
Sound annotation audio data (if set). final Unit
setAudioData(EmbeddedAudioSource audioData)
Sound annotation audio data (if set). final AppearanceStreamGenerator
getAppearanceStreamGenerator()
Custom AP stream generator (if set). final AnnotationAddRemoveEdit.Type
getType()
Type of edit, whether the annotation was added or removed from the document. Boolean
equals(Object other)
Integer
hashCode()
-
-
Constructor Detail
-
AnnotationAddRemoveEdit
AnnotationAddRemoveEdit(Annotation annotation, AnnotationAddRemoveEdit.Type type)
- Parameters:
annotation
- Annotation that was added or removed from the document.
-
-
Method Detail
-
getProperties
final AnnotationPropertyManager getProperties()
For internal use only! The snapshot of properties at the time the annotation was added or removed.
-
getAnnotationType
final AnnotationType getAnnotationType()
Type of annotation being referenced.
-
getAudioData
final EmbeddedAudioSource getAudioData()
Sound annotation audio data (if set).
-
setAudioData
final Unit setAudioData(EmbeddedAudioSource audioData)
Sound annotation audio data (if set).
-
getAppearanceStreamGenerator
final AppearanceStreamGenerator getAppearanceStreamGenerator()
Custom AP stream generator (if set).
-
getType
final AnnotationAddRemoveEdit.Type getType()
Type of edit, whether the annotation was added or removed from the document.
-
-
-
-