Package org.verapdf.features.gf.objects
Class GFAnnotationFeaturesObjectAdapter
java.lang.Object
org.verapdf.features.gf.objects.GFAnnotationFeaturesObjectAdapter
- All Implemented Interfaces:
AnnotationFeaturesObjectAdapter,FeaturesObjectAdapter
public class GFAnnotationFeaturesObjectAdapter
extends Object
implements AnnotationFeaturesObjectAdapter
Feature object adapter for annotation
- Author:
- Maksim Bezrukov
-
Constructor Summary
ConstructorsConstructorDescriptionGFAnnotationFeaturesObjectAdapter(PDAnnotation annot, String id, String popupId, Set<String> formXObjects) Constructs new Annotation Feature Object Adapter -
Method Summary
Modifier and TypeMethodDescriptionGets annotation name.double[]getColor()Gets annotation color.Gets annotation contents.Gets form XObject from annotation.getId()Gets annotation adapter id.Gets annotation modified date.Gets annotation adapter popup id.double[]Gets annotation rectangle.Gets annotation subtype.booleanisHidden()Tells whether annotation is hidden.booleanTells whether annotation is invisible.booleanisLocked()Tells whether annotation is locked.booleanTells whether annotation is locked content.booleanTells whether annotation is no rotate.booleanisNoView()Tells whether annotation is no view.booleanisNoZoom()Tells whether annotation is no zoom.booleanbooleanTells whether annotation is printed.booleanTells whether annotation is read only.booleanTells whether annotation is toggle no view.
-
Constructor Details
-
GFAnnotationFeaturesObjectAdapter
public GFAnnotationFeaturesObjectAdapter(PDAnnotation annot, String id, String popupId, Set<String> formXObjects) Constructs new Annotation Feature Object Adapter- Parameters:
annot- class represents annotation objectid- annotation idpopupId- id of the popup annotationformXObjects- set of id of the form XObjects which used in appearance stream of this annotation
-
-
Method Details
-
getId
Description copied from interface:AnnotationFeaturesObjectAdapterGets annotation adapter id.- Specified by:
getIdin interfaceAnnotationFeaturesObjectAdapter- Returns:
- an annotation adapter id
-
getPopupId
Description copied from interface:AnnotationFeaturesObjectAdapterGets annotation adapter popup id.- Specified by:
getPopupIdin interfaceAnnotationFeaturesObjectAdapter- Returns:
- an annotation adapter popup id
-
getFormXObjectsResources
Description copied from interface:AnnotationFeaturesObjectAdapterGets form XObject from annotation.- Specified by:
getFormXObjectsResourcesin interfaceAnnotationFeaturesObjectAdapter- Returns:
- a form XObject
-
getSubtype
Description copied from interface:AnnotationFeaturesObjectAdapterGets annotation subtype.- Specified by:
getSubtypein interfaceAnnotationFeaturesObjectAdapter- Returns:
- an annotation subtype
-
getRectangle
public double[] getRectangle()Description copied from interface:AnnotationFeaturesObjectAdapterGets annotation rectangle.- Specified by:
getRectanglein interfaceAnnotationFeaturesObjectAdapter- Returns:
- an annotation rectangle
-
getContents
Description copied from interface:AnnotationFeaturesObjectAdapterGets annotation contents.- Specified by:
getContentsin interfaceAnnotationFeaturesObjectAdapter- Returns:
- an annotation contents
-
getAnnotationName
Description copied from interface:AnnotationFeaturesObjectAdapterGets annotation name.- Specified by:
getAnnotationNamein interfaceAnnotationFeaturesObjectAdapter- Returns:
- an annotation name
-
getModifiedDate
Description copied from interface:AnnotationFeaturesObjectAdapterGets annotation modified date.- Specified by:
getModifiedDatein interfaceAnnotationFeaturesObjectAdapter- Returns:
- an annotation modified date
-
getColor
public double[] getColor()Description copied from interface:AnnotationFeaturesObjectAdapterGets annotation color.- Specified by:
getColorin interfaceAnnotationFeaturesObjectAdapter- Returns:
- an annotation color
-
isInvisible
public boolean isInvisible()Description copied from interface:AnnotationFeaturesObjectAdapterTells whether annotation is invisible.- Specified by:
isInvisiblein interfaceAnnotationFeaturesObjectAdapter- Returns:
- true if annotation is invisible
-
isHidden
public boolean isHidden()Description copied from interface:AnnotationFeaturesObjectAdapterTells whether annotation is hidden.- Specified by:
isHiddenin interfaceAnnotationFeaturesObjectAdapter- Returns:
- true if annotation is hidden
-
isPrinted
public boolean isPrinted()Description copied from interface:AnnotationFeaturesObjectAdapterTells whether annotation is printed.- Specified by:
isPrintedin interfaceAnnotationFeaturesObjectAdapter- Returns:
- true if annotation is printed
-
isNoZoom
public boolean isNoZoom()Description copied from interface:AnnotationFeaturesObjectAdapterTells whether annotation is no zoom.- Specified by:
isNoZoomin interfaceAnnotationFeaturesObjectAdapter- Returns:
- true if annotation is no zoom
-
isNoRotate
public boolean isNoRotate()Description copied from interface:AnnotationFeaturesObjectAdapterTells whether annotation is no rotate.- Specified by:
isNoRotatein interfaceAnnotationFeaturesObjectAdapter- Returns:
- true if annotation is no rotate
-
isNoView
public boolean isNoView()Description copied from interface:AnnotationFeaturesObjectAdapterTells whether annotation is no view.- Specified by:
isNoViewin interfaceAnnotationFeaturesObjectAdapter- Returns:
- true if annotation is no view
-
isReadOnly
public boolean isReadOnly()Description copied from interface:AnnotationFeaturesObjectAdapterTells whether annotation is read only.- Specified by:
isReadOnlyin interfaceAnnotationFeaturesObjectAdapter- Returns:
- true if annotation is read only
-
isLocked
public boolean isLocked()Description copied from interface:AnnotationFeaturesObjectAdapterTells whether annotation is locked.- Specified by:
isLockedin interfaceAnnotationFeaturesObjectAdapter- Returns:
- true if annotation is locked
-
isToggleNoView
public boolean isToggleNoView()Description copied from interface:AnnotationFeaturesObjectAdapterTells whether annotation is toggle no view.- Specified by:
isToggleNoViewin interfaceAnnotationFeaturesObjectAdapter- Returns:
- true if annotation is toggle no view
-
isLockedContents
public boolean isLockedContents()Description copied from interface:AnnotationFeaturesObjectAdapterTells whether annotation is locked content.- Specified by:
isLockedContentsin interfaceAnnotationFeaturesObjectAdapter- Returns:
- true if annotation is locked content
-
isPDFObjectPresent
public boolean isPDFObjectPresent()- Specified by:
isPDFObjectPresentin interfaceFeaturesObjectAdapter
-
getErrors
- Specified by:
getErrorsin interfaceFeaturesObjectAdapter
-