public class TextMarkupAnnotation extends MarkupAnnotation
| Modifier and Type | Field and Description |
|---|---|
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 |
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, titleTextACTION_KEY, APPEARANCE_STATE_KEY, APPEARANCE_STREAM_DOWN_KEY, APPEARANCE_STREAM_KEY, APPEARANCE_STREAM_NORMAL_KEY, APPEARANCE_STREAM_ROLLOVER_KEY, appearances, BBOX_VALUE, border, BORDER_DASH, BORDER_HORIZONTAL_CORNER_RADIUS, BORDER_KEY, BORDER_STYLE_KEY, BORDER_VERTICAL_CORNER_RADIUS, BORDER_WIDTH, borderStyle, canDrawBorder, changeSupport, color, COLOR_KEY, compressAppearanceStream, content, CONTENTS_KEY, currentAppearance, FLAG_HIDDEN, FLAG_INVISIBLE, FLAG_KEY, FLAG_LOCKED, FLAG_LOCKED_CONTENTS, FLAG_NO_ROTATE, FLAG_NO_VIEW, FLAG_NO_ZOOM, FLAG_PRINT, FLAG_READ_ONLY, FLAG_TOGGLE_NO_VIEW, hasBlendingMode, INVISIBLE_RECTANGLE, M_KEY, modifiedDate, NM_KEY, PARENT_KEY, PARENT_PAGE_KEY, RECTANGLE_KEY, RESOURCES_VALUE, securityManager, subtype, SUBTYPE_CIRCLE, SUBTYPE_FREE_TEXT, SUBTYPE_INK, SUBTYPE_LINE, SUBTYPE_LINK, SUBTYPE_POLYGON, SUBTYPE_POLYLINE, SUBTYPE_POPUP, SUBTYPE_SQUARE, SUBTYPE_TEXT, SUBTYPE_WIDGET, TYPE, TYPE_VALUE, userSpaceRectangle, VISIBLE_RECTANGLEentries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY| Constructor and Description |
|---|
TextMarkupAnnotation(Library l,
java.util.HashMap h)
Creates a new instance of an TextMarkupAnnotation.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
getCreationDate, getInReplyToAnnotation, getIntent, getOpacity, getPopupAnnotation, getReplyToRelation, getRichText, getSubject, getTitleText, setCreationDate, setInReplyToAnnotation, setPopupAnnotation, setRichText, setSubject, setTitleText, toStringaddAction, addPropertyChangeListener, allowAlterProperties, allowPrintNormalMode, allowScreenDownMode, allowScreenNormalMode, allowScreenOrPrintRenderingOrInteraction, allowScreenRolloverMode, buildAnnotation, deleteAction, deriveDrawingRectangle, getAction, getAppearances, getAppearanceStream, getBbox, getBorder, getBorderStyle, getBorderStyleStroke, getBorderType, getColor, getContents, getCurrentAppearance, getFlagHidden, getFlagInvisible, getFlagLocked, getFlagLockedContents, getFlagNoRotate, getFlagNoView, getFlagNoZoom, getFlagPrint, getFlagReadOnly, getFlagToggleNoView, getLineStyle, getLineThickness, getOrGenerateAppearanceForm, getPage, getParentAnnotation, getShapes, getSubType, getUserSpaceRectangle, hasAppearanceStream, isBorder, isSupportedAnnotationType, render, renderBorder, renderBorderTabSelected, resetAppearanceStream, resetNullAppearanceStream, setBBox, setBorderStyle, setColor, setCompressAppearanceStream, setContents, setCurrentAppearance, setFlag, setModifiedDate, setSubtype, setUserSpaceRectangle, syncBBoxToUserSpaceRectangle, updateActiongetEntries, getFloat, getInt, getLibrary, getNumber, getObject, getPObjectReference, isDeleted, isNew, setDeleted, setNew, setPObjectReferencepublic 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
public TextMarkupAnnotation(Library l, java.util.HashMap h)
l - document library.h - dictionary entries.public void init()
Dictionaryinit in class MarkupAnnotationpublic static TextMarkupAnnotation getInstance(Library library, java.awt.Rectangle rect, Name subType)
library - document libraryrect - bounding rectangle in user spacepublic 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)