|
|||||||||
| 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
org.icepdf.core.pobjects.annotations.TextMarkupAnnotation
public class TextMarkupAnnotation
Text markup annotations shall appear as highlights, underlines, strikeouts (all PDF 1.3), or jagged (“squiggly�) underlines (PDF 1.4) in the text of a document. When opened, they shall display a pop-up window containing the text of the associated note. Table 179 shows the annotation dictionary entries specific to these types of annotations.
| Field Summary | |
|---|---|
static Name |
EXTGSTATE_NAME
Named graphics state name used to store highlight transparency values. |
static float |
HIGHLIGHT_ALPHA
Highlight transparency default |
static Name |
KEY_QUAD_POINTS
(Required) An array of 8 × n numbers specifying the coordinates of n quadrilaterals in default user space. |
static Name |
SUBTYPE_HIGHLIGHT
|
static Name |
SUBTYPE_SQUIGGLY
|
static Name |
SUBTYPE_STRIKE_OUT
|
static Name |
SUBTYPE_UNDERLINE
|
| Fields inherited from class org.icepdf.core.pobjects.annotations.MarkupAnnotation |
|---|
CA_KEY, CREATION_DATE_KEY, creationDate, EX_DATA_KEY, inReplyToAnnotation, intent, IRT_KEY, IT_KEY, opacity, POPUP_KEY, popupAnnotation, RC_KEY, replyToRelation, richText, RT_KEY, SUBJ_KEY, subject, T_KEY, 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 | |
|---|---|
TextMarkupAnnotation(Library l,
java.util.HashMap h)
Creates a new instance of an TextMarkupAnnotation. |
|
| Method Summary | |
|---|---|
static TextMarkupAnnotation |
getInstance(Library library,
java.awt.Rectangle rect,
Name subType)
Gets an instance of a TextMarkupAnnotation that has valid Object Reference. |
java.awt.Color |
getTextMarkupColor()
|
void |
init()
Initiate the Dictionary. |
static boolean |
isTextMarkupAnnotation(Name subType)
|
protected void |
renderAppearanceStream(java.awt.Graphics2D g)
|
void |
resetAppearanceStream(double dx,
double dy,
java.awt.geom.AffineTransform pageTransform)
Resets the annotations appearance stream. |
void |
setMarkupBounds(java.util.ArrayList<java.awt.Shape> markupBounds)
|
void |
setMarkupPath(java.awt.geom.GeneralPath markupPath)
|
void |
setTextMarkupColor(java.awt.Color textMarkupColor)
|
| Methods inherited from class org.icepdf.core.pobjects.annotations.MarkupAnnotation |
|---|
getCreationDate, getInReplyToAnnotation, getIntent, getOpacity, getPopupAnnotation, getReplyToRelation, getRichText, getSubject, getTitleText, setCreationDate, setInReplyToAnnotation, setPopupAnnotation, setRichText, setSubject, setTitleText, toString |
| 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 SUBTYPE_HIGHLIGHT
public static final Name SUBTYPE_UNDERLINE
public static final Name SUBTYPE_SQUIGGLY
public static final Name SUBTYPE_STRIKE_OUT
public static final Name KEY_QUAD_POINTS
public static final Name EXTGSTATE_NAME
public static final float HIGHLIGHT_ALPHA
| Constructor Detail |
|---|
public TextMarkupAnnotation(Library l,
java.util.HashMap h)
l - document library.h - dictionary entries.| Method Detail |
|---|
public void init()
Dictionary
init in class MarkupAnnotation
public static TextMarkupAnnotation getInstance(Library library,
java.awt.Rectangle rect,
Name subType)
library - document libraryrect - bounding rectangle in user space
public static boolean isTextMarkupAnnotation(Name subType)
public void resetAppearanceStream(double dx,
double dy,
java.awt.geom.AffineTransform pageTransform)
resetAppearanceStream in class Annotationprotected void renderAppearanceStream(java.awt.Graphics2D g)
renderAppearanceStream in class Annotationpublic void setMarkupPath(java.awt.geom.GeneralPath markupPath)
public void setMarkupBounds(java.util.ArrayList<java.awt.Shape> markupBounds)
public java.awt.Color getTextMarkupColor()
public void setTextMarkupColor(java.awt.Color textMarkupColor)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||