public class PDAnnotationSquare extends PDAnnotationSquareCircle
| Modifier and Type | Field and Description |
|---|---|
static String |
SUB_TYPE
The type of annotation.
|
RT_GROUP, RT_REPLY| Constructor and Description |
|---|
PDAnnotationSquare() |
PDAnnotationSquare(COSDictionary field)
Creates a square annotation from a COSDictionary, expected to be a correct object definition.
|
| Modifier and Type | Method and Description |
|---|---|
void |
constructAppearances()
Create the appearance entry for this annotation.
|
void |
constructAppearances(PDDocument document)
Create the appearance entry for this annotation.
|
void |
setCustomAppearanceHandler(PDAppearanceHandler appearanceHandler)
Set a custom appearance handler for generating the annotations appearance streams.
|
getBorderEffect, getInteriorColor, getRectDifference, getRectDifferences, setBorderEffect, setInteriorColor, setRectDifference, setRectDifferences, setRectDifferencesgetBorderStyle, getConstantOpacity, getCreationDate, getExternalData, getInReplyTo, getIntent, getPopup, getReplyType, getRichContents, getSubject, getTitlePopup, setBorderStyle, setConstantOpacity, setCreationDate, setExternalData, setInReplyTo, setIntent, setPopup, setReplyType, setRichContents, setSubject, setTitlePopupcreateAnnotation, equals, getAnnotationFlags, getAnnotationName, getAppearance, getAppearanceState, getBorder, getColor, getColor, getContents, getCOSObject, getModifiedDate, getNormalAppearanceStream, getOptionalContent, getPage, getRectangle, getStructParent, getSubtype, hashCode, isHidden, isInvisible, isLocked, isLockedContents, isNoRotate, isNoView, isNoZoom, isPrinted, isReadOnly, isToggleNoView, setAnnotationFlags, setAnnotationName, setAppearance, setAppearanceState, setBorder, setColor, setContents, setHidden, setInvisible, setLocked, setLockedContents, setModifiedDate, setModifiedDate, setNoRotate, setNoView, setNoZoom, setOptionalContent, setPage, setPrinted, setReadOnly, setRectangle, setStructParent, setSubtype, setToggleNoViewpublic static final String SUB_TYPE
public PDAnnotationSquare()
public PDAnnotationSquare(COSDictionary field)
field - the PDF object to represent as a field.public void setCustomAppearanceHandler(PDAppearanceHandler appearanceHandler)
appearanceHandler - custom appearance handlerpublic void constructAppearances()
PDAnnotationconstructAppearances in class PDAnnotationSquareCirclepublic void constructAppearances(PDDocument document)
PDAnnotationconstructAppearances in class PDAnnotationdocument - the related documentCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.