|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.pobjects.Dictionary
org.icepdf.core.pobjects.annotations.Annotation
org.icepdf.core.pobjects.annotations.MarkupAnnotation
public abstract class MarkupAnnotation
As mentioned in 12.5.2, “Annotation Dictionaries,� the meaning of an annotation’s Contents entry varies by annotation type. Typically, it is the text that shall be displayed for the annotation or, if the annotation does not display text, an alternate description of the annotation’s contents in human-readable form. In either case, the Contents entry is useful when extracting the document’s contents in support of accessibility to users with disabilities or for other purposes (see 14.9.3, “Alternate Descriptions�).
Many annotation types are defined as markup annotations because they are used primarily to mark up PDF documents (see Table 170). These annotations have text that appears as part of the annotation and may be displayed in other ways by a conforming reader, such as in a Comments pane. Markup annotations may be divided into the following groups:
| Field Summary | |
|---|---|
static Name |
CA_KEY
(Optional; PDF 1.4) The constant opacity value that shall be used in painting the annotation (see Sections 11.2, “Overview of Transparency,� and 11.3.7, “Shape and Opacity Computations�). |
static Name |
CREATION_DATE_KEY
(Optional; PDF 1.5) The date and time (7.9.4, “Dates�) when the annotation was created. |
protected PDate |
creationDate
|
static Name |
EX_DATA_KEY
(Optional; PDF 1.7) An external data dictionary specifying data that shall be associated with the annotation. |
protected MarkupAnnotation |
inReplyToAnnotation
|
protected Name |
intent
|
static Name |
IRT_KEY
(Required if an RT entry is present, otherwise optional; PDF 1.5) A reference to the annotation that this annotation is “in reply to.� Both annotations shall be on the same page of the document. |
static Name |
IT_KEY
(Optional; PDF 1.6) A name describing the intent of the markup annotation. |
protected float |
opacity
|
static Name |
POPUP_KEY
(Optional; PDF 1.3) An indirect reference to a pop-up annotation for entering or editing the text associated with this annotation. |
protected PopupAnnotation |
popupAnnotation
|
static Name |
RC_KEY
(Optional; PDF 1.5) A rich text string (see 12.7.3.4, “Rich Text Strings�) that shall be displayed in the pop-up window when the annotation is opened. |
protected Name |
replyToRelation
|
protected java.lang.String |
richText
|
static Name |
RT_KEY
Optional; meaningful only if IRT is present; PDF 1.6) A name specifying the relationship (the “reply type�) between this annotation and one specified by IRT. |
static Name |
SUBJ_KEY
(Optional; PDF 1.5) Text representing a short description of the subject being addressed by the annotation. |
protected java.lang.String |
subject
|
static Name |
T_KEY
Optional; PDF 1.1) The text label that shall be displayed in the title bar of the annotation’s pop-up window when open and active. |
protected java.lang.String |
titleText
|
| Fields inherited from class org.icepdf.core.pobjects.Dictionary |
|---|
entries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY |
| Constructor Summary | |
|---|---|
MarkupAnnotation(Library l,
java.util.HashMap h)
|
|
| Method Summary | |
|---|---|
PDate |
getCreationDate()
|
MarkupAnnotation |
getInReplyToAnnotation()
|
Name |
getIntent()
|
float |
getOpacity()
|
PopupAnnotation |
getPopupAnnotation()
|
Name |
getReplyToRelation()
|
java.lang.String |
getRichText()
|
java.lang.String |
getSubject()
|
java.lang.String |
getTitleText()
|
void |
init()
Initiate the Dictionary. |
void |
setCreationDate(java.lang.String creationDate)
|
void |
setInReplyToAnnotation(MarkupAnnotation inReplyToAnnotation)
|
void |
setPopupAnnotation(PopupAnnotation popupAnnotation)
|
void |
setRichText(java.lang.String richText)
|
void |
setSubject(java.lang.String subject)
|
void |
setTitleText(java.lang.String titleText)
|
java.lang.String |
toString()
Returns a summary of the dictionary entries. |
| Methods inherited from class org.icepdf.core.pobjects.Dictionary |
|---|
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getPObjectReference, isDeleted, isNew, setDeleted, setNew, setPObjectReference |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Name T_KEY
public static final Name CA_KEY
public static final Name RC_KEY
public static final Name CREATION_DATE_KEY
public static final Name IRT_KEY
public static final Name SUBJ_KEY
public static final Name POPUP_KEY
public static final Name RT_KEY
public static final Name IT_KEY
public static final Name EX_DATA_KEY
protected java.lang.String titleText
protected PopupAnnotation popupAnnotation
protected float opacity
protected java.lang.String richText
protected PDate creationDate
protected MarkupAnnotation inReplyToAnnotation
protected java.lang.String subject
protected Name replyToRelation
protected Name intent
| Constructor Detail |
|---|
public MarkupAnnotation(Library l,
java.util.HashMap h)
| Method Detail |
|---|
public void init()
Dictionary
init in class Annotationpublic java.lang.String getTitleText()
public PopupAnnotation getPopupAnnotation()
public float getOpacity()
public java.lang.String getRichText()
public PDate getCreationDate()
public MarkupAnnotation getInReplyToAnnotation()
public java.lang.String getSubject()
public Name getReplyToRelation()
public Name getIntent()
public void setTitleText(java.lang.String titleText)
public void setPopupAnnotation(PopupAnnotation popupAnnotation)
public void setRichText(java.lang.String richText)
public void setCreationDate(java.lang.String creationDate)
public void setInReplyToAnnotation(MarkupAnnotation inReplyToAnnotation)
public void setSubject(java.lang.String subject)
public java.lang.String toString()
Dictionary
toString in class Annotation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||