/** * This will set the annotations appearance state name. * * @param as The name of the appearance stream. */ public void setAppearanceState(String as) { getCOSObject().setName(COSName.AS, as); }
/** * Get the noZoom flag. * * @return The noZoom flag. */ public boolean isNoZoom() { return getCOSObject().getFlag(COSName.F, FLAG_NO_ZOOM); }
/** * Get the noView flag. * * @return The noView flag. */ public boolean isNoView() { return getCOSObject().getFlag(COSName.F, FLAG_NO_VIEW); }
/** * Set the toggleNoView flag. * * @param toggleNoView The new toggleNoView flag. */ public void setToggleNoView(boolean toggleNoView) { getCOSObject().setFlag(COSName.F, FLAG_TOGGLE_NO_VIEW, toggleNoView); }
/** * This will set the sub type (and hence appearance, AP taking precedence) For this annotation. See the SUB_TYPE_XXX * constants for valid values. * * @param subType The subtype of the annotation */ protected final void setSubtype(String subType) { getCOSObject().setName(COSName.SUBTYPE, subType); }
/** * This will set the flags for this field. * * @param flags The new flags. */ public void setAnnotationFlags(int flags) { getCOSObject().setInt(COSName.F, flags); }
/** * Returns the annotations appearance state, which selects the applicable appearance stream from an appearance * subdictionary. */ public COSName getAppearanceState() { return getCOSObject().getCOSName(COSName.AS); }
/** * Set the noZoom flag. * * @param noZoom The new noZoom flag. */ public void setNoZoom(boolean noZoom) { getCOSObject().setFlag(COSName.F, FLAG_NO_ZOOM, noZoom); }
/** * Get the readOnly flag. * * @return The readOnly flag. */ public boolean isReadOnly() { return getCOSObject().getFlag(COSName.F, FLAG_READ_ONLY); }
/** * Set the readOnly flag. * * @param readOnly The new readOnly flag. */ public void setReadOnly(boolean readOnly) { getCOSObject().setFlag(COSName.F, FLAG_READ_ONLY, readOnly); }
/** * This will get the key of this annotation in the structural parent tree. * * @return the integer key of the annotation's entry in the structural parent tree or -1 if * there isn't any. */ public int getStructParent() { return getCOSObject().getInt(COSName.STRUCT_PARENT); }
/** * This will set the key for this annotation in the structural parent tree. * * @param structParent The new key for this annotation. */ public void setStructParent(int structParent) { getCOSObject().setInt(COSName.STRUCT_PARENT, structParent); }
/** * Sets the optional content group or optional content membership dictionary for the annotation. * * @param oc The optional content group or optional content membership dictionary. */ public void setOptionalContent(PDPropertyList oc) { getCOSObject().setItem(COSName.OC, oc); }
/** * This will retrieve the subtype of the annotation. * * @return The subtype of this annotation, see the SUB_TYPE_XXX constants. */ public final String getSubtype() { return getCOSObject().getNameAsString(COSName.SUBTYPE); }
/** * This will get the flags for this field. * * @return flags The set of flags. */ public int getAnnotationFlags() { return getCOSObject().getInt(COSName.F, 0); }
/** * Get the invisible flag. * * @return The invisible flag. */ public boolean isInvisible() { return getCOSObject().getFlag(COSName.F, FLAG_INVISIBLE); }
/** * Set the locked flag. * * @param locked The new locked flag. */ public void setLocked(boolean locked) { getCOSObject().setFlag(COSName.F, FLAG_LOCKED, locked); }
/** * Set the hidden flag. * * @param hidden The new hidden flag. */ public void setHidden(boolean hidden) { getCOSObject().setFlag(COSName.F, FLAG_HIDDEN, hidden); }
/** * Set the noRotate flag. * * @param noRotate The new noRotate flag. */ public void setNoRotate(boolean noRotate) { getCOSObject().setFlag(COSName.F, FLAG_NO_ROTATE, noRotate); }
/** * This will set the name, a string intended to uniquely identify each annotation within a page. Not to be confused * with some annotations Name entry which impact the default image drawn for them. * * @param nm The identifying name for the annotation. */ public void setAnnotationName(String nm) { getCOSObject().setString(COSName.NM, nm); }