int
|
GetStructParent()
Get the struct parent of an annotation.
|
static
Annot
|
__Create(long impl, Object ref)
|
long
|
__GetHandle()
|
Object
|
__GetRefHandle()
|
static
Annot
|
create(Doc doc, int type, Rect pos)
Creates a new annotation of a given type, in the specified document.
|
void
|
deleteCustomData(String key)
Deletes custom data associated with the given key.
|
boolean
|
equals(Object d)
Compares two annotations for equality.
|
void
|
flatten(Page page)
Flatten/Merge the existing annotation appearances with the page content and
delete this annotation from a given page.
|
String
|
getActiveAppearanceState()
Get the annotation's active appearance state.
|
Obj
|
getAppearance(int annot_state, String app_state)
Get the annotation's appearance for the given combination of annotation
and appearance states.
|
Obj
|
getAppearance()
Get the annotation's appearance for the given combination of annotation
and appearance states.
|
Obj
|
getAppearance(int annot_state)
Get the annotation's appearance for the given combination of annotation
and appearance states.
|
Annot.BorderStyle
|
getBorderStyle()
Get the border style for the annotation.
|
ColorPt
|
getColorAsCMYK()
Get an annotation's color.
|
ColorPt
|
getColorAsGray()
Get an annotation's color.
|
ColorPt
|
getColorAsRGB()
Get an annotation's color.
|
int
|
getColorCompNum()
Get the color space the annotation's color is represented in.
|
String
|
getContents()
Get the annotation contents.
|
String
|
getCustomData(String key)
Returns custom data associated with the given key.
|
Date
|
getDate()
Gets an annotation's last modified date.
|
boolean
|
getFlag(int flag)
Determine if the give flag is marked flagged
|
Obj
|
getOptionalContent()
Get optional content of an annotation.
|
Page
|
getPage()
Get the page the annotation is associated with.
|
Rect
|
getRect()
Get annoation bound rectangle
|
int
|
getRotation()
Get the rotation value of the annotation.
|
Obj
|
getSDFObj()
Get the SDFObj.
|
Obj
|
getTriggerAction(int trigger)
Get the Action associated with the selected Annot Trigger event.
|
int
|
getType()
Get the annotation type.
|
Obj
|
getUniqueID()
Get the annotiation unique ID.
|
Rect
|
getVisibleContentBox()
It is possible during viewing that GetRect does not return the most accurate bounding box
of what is actually rendered.
|
int
|
hashCode()
|
boolean
|
isMarkup()
Checks if annoation is markup.
|
boolean
|
isValid()
Checks if Annot is valid.
|
void
|
refreshAppearance()
Regenerates the appearance stream for the annotation.
|
void
|
refreshAppearance(RefreshOptions opts)
A version of RefreshAppearance allowing custom options to make slight tweaks in behaviour.
|
void
|
removeAppearance()
Removes the annotation's default appearance.
|
void
|
removeAppearance(int annot_state, String app_state)
Removes the annotation's appearance for the given combination of annotation
and appearance states.
|
void
|
resize(Rect pos)
Resize annotation
|
void
|
setActiveAppearanceState(String astate)
Set the annotation's active appearance state.
|
void
|
setAppearance(Obj app_stream, int annot_state)
Set the annotation's appearance for the given combination of annotation
and appearance states.
|
void
|
setAppearance(Obj app_stream)
Set the annotation's appearance for the given combination of annotation
and appearance states.
|
void
|
setAppearance(Obj app_stream, int annot_state, String app_state)
Set the annotation's appearance for the given combination of annotation
and appearance states.
|
void
|
setBorderStyle(Annot.BorderStyle bs)
Set the border style for the annotation.
|
void
|
setColor(ColorPt cpt)
Set an annotation's color.
|
void
|
setColor(ColorPt cpt, int comp_num)
Set an annotation's color.
|
void
|
setContents(String ct)
Set annotation contents.
|
void
|
setCustomData(String key, String value)
Sets the custom data associated with the specified key.
|
void
|
setDate(Date date)
Sets an annotation's last modified date.
|
void
|
setDateToNow()
Sets an annotation's last modified date to the current time.
|
void
|
setFlag(int flag, boolean value)
Set the value of given Flag.
|
void
|
setOptionalContent(Obj oc)
Set optional content of an annotation.
|
void
|
setPage(Page page)
Set the reference to a page the annotation is associated with.
|
void
|
setRect(Rect pos)
Set the size and location of an annotation on its page.
|
void
|
setRotation(int rot)
Set the rotation value of the annotation.
|
void
|
setStructParent(int keyval)
Set the struct parent of an annotation.
|
void
|
setUniqueID(String icon_name)
Set the unique identifier for this annotation.
|