Package org.verapdf.gf.model.impl.pd
Class GFPDAnnot
java.lang.Object
org.verapdf.model.GenericModelObject
org.verapdf.gf.model.impl.pd.GFPDObject
org.verapdf.gf.model.impl.pd.GFPDAnnot
- Direct Known Subclasses:
GFPD3DAnnot,GFPDLinkAnnot,GFPDPrinterMarkAnnot,GFPDTrapNetAnnot,GFPDWidgetAnnot
- Author:
- Maksim Bezrukov
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected final PDResourcesHandlerstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intFields inherited from class org.verapdf.gf.model.impl.pd.GFPDObject
contentStream, document, id, MAX_NUMBER_OF_ELEMENTS, pdcMap, pdFont, simpleCOSObject, simplePDObjectFields inherited from class org.verapdf.model.GenericModelObject
contextDependent -
Constructor Summary
ConstructorsConstructorDescriptionGFPDAnnot(PDAnnotation annot, PDResourcesHandler pageResources, PDPage page) GFPDAnnot(PDAnnotation annot, PDResourcesHandler pageResources, PDPage page, String type) -
Method Summary
Modifier and TypeMethodDescriptionstatic GFPDAnnotcreateAnnot(PDAnnotation annot, PDResourcesHandler pageResources, PDPage page) getAlt()the Alt entry of parent structure elementgetAP()ampersand-separated list of all keys in the annotation's appearance dictionary (AP key)getCA()annotation opacity (CA key)true if the annotation dictionary contains the A entrytrue if the annotation dictionary contains the AA entrythe value of the /Contents entrygetF()annotation flagsgetFT()the value of the /FT entry (Field type), in case this is the widget annotation representing the form field, or null, if this entry is not presentthe height of the annotation computed as an absolute value of the difference of value 2 and value 4 of the Rect entrytrue, if annotation rectangle is outside page CropBoxgetLinkedObjects(String link) the type of the normal appearance entry (/N key) in the annotation appearance dictionary (/AP key) or null, if the normal appearance is not presentstruct parent element typeannotation subtypegetwidth()the width of the annotation computed as an absolute value of the difference of value 1 and value 3 of the Rect entryMethods inherited from class org.verapdf.gf.model.impl.pd.GFPDObject
getentries, getIDMethods inherited from class org.verapdf.model.GenericModelObject
getContext, getExtraContext, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.verapdf.model.baselayer.Object
getContext, getExtraContext, getID, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependentMethods inherited from interface org.verapdf.model.pdlayer.PDObject
getentries
-
Field Details
-
ANNOTATION_TYPE
- See Also:
-
DICT
- See Also:
-
STREAM
- See Also:
-
APPEARANCE
- See Also:
-
C
- See Also:
-
IC
- See Also:
-
A
- See Also:
-
ADDITIONAL_ACTION
- See Also:
-
LANG
- See Also:
-
BM
- See Also:
-
LINK
- See Also:
-
PRINTER_MARK
- See Also:
-
WIDGET
- See Also:
-
TRAP_NET
- See Also:
-
TYPE_3D
- See Also:
-
X_AXIS
public static final int X_AXIS- See Also:
-
Y_AXIS
public static final int Y_AXIS- See Also:
-
resources
-
-
Constructor Details
-
GFPDAnnot
-
GFPDAnnot
-
-
Method Details
-
getSubtype
Description copied from interface:PDAnnotannotation subtype- Specified by:
getSubtypein interfacePDAnnot
-
getAP
Description copied from interface:PDAnnotampersand-separated list of all keys in the annotation's appearance dictionary (AP key) -
getF
Description copied from interface:PDAnnotannotation flags -
getCA
Description copied from interface:PDAnnotannotation opacity (CA key) -
getN_type
Description copied from interface:PDAnnotthe type of the normal appearance entry (/N key) in the annotation appearance dictionary (/AP key) or null, if the normal appearance is not present -
getFT
Description copied from interface:PDAnnotthe value of the /FT entry (Field type), in case this is the widget annotation representing the form field, or null, if this entry is not present -
getwidth
Description copied from interface:PDAnnotthe width of the annotation computed as an absolute value of the difference of value 1 and value 3 of the Rect entry -
getheight
Description copied from interface:PDAnnotthe height of the annotation computed as an absolute value of the difference of value 2 and value 4 of the Rect entry -
getcontainsAA
Description copied from interface:PDAnnottrue if the annotation dictionary contains the AA entry- Specified by:
getcontainsAAin interfacePDAnnot
-
getstructParentType
Description copied from interface:PDAnnotstruct parent element type- Specified by:
getstructParentTypein interfacePDAnnot
-
getContents
Description copied from interface:PDAnnotthe value of the /Contents entry- Specified by:
getContentsin interfacePDAnnot
-
getAlt
Description copied from interface:PDAnnotthe Alt entry of parent structure element -
getisOutsideCropBox
Description copied from interface:PDAnnottrue, if annotation rectangle is outside page CropBox- Specified by:
getisOutsideCropBoxin interfacePDAnnot
-
getcontainsA
Description copied from interface:PDAnnottrue if the annotation dictionary contains the A entry- Specified by:
getcontainsAin interfacePDAnnot
-
getLinkedObjects
- Specified by:
getLinkedObjectsin interfaceObject- Overrides:
getLinkedObjectsin classGenericModelObject- Parameters:
link- - the name of a link- Returns:
- List of objects with the given link
-
createAnnot
public static GFPDAnnot createAnnot(PDAnnotation annot, PDResourcesHandler pageResources, PDPage page)
-