org.icepdf.core.pobjects.annotations
Class InkAnnotation
java.lang.Object
org.icepdf.core.pobjects.Dictionary
org.icepdf.core.pobjects.annotations.Annotation
org.icepdf.core.pobjects.annotations.MarkupAnnotation
org.icepdf.core.pobjects.annotations.InkAnnotation
public class InkAnnotation
- extends MarkupAnnotation
An ink annotation (PDF 1.3) represents a freehand “scribble� composed of one
or more disjoint paths. When opened, it shall display a pop-up window
containing the text of the associated note. Table 182 shows the annotation
dictionary entries specific to this type of annotation.
- Since:
- 5.0
|
Field Summary |
static Name |
INK_LIST_KEY
(Required) An array of n arrays, each representing a stroked path. |
protected java.awt.Shape |
inkPath
|
| 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.annotations.Annotation |
ACTION_KEY, APPEARANCE_STATE_KEY, APPEARANCE_STREAM_DOWN_KEY, APPEARANCE_STREAM_KEY, APPEARANCE_STREAM_NORMAL_KEY, APPEARANCE_STREAM_ROLLOVER_KEY, bbox, BBOX_VALUE, border, BORDER_DASH, BORDER_HORIZONTAL_CORNER_RADIUS, BORDER_KEY, BORDER_STYLE_KEY, BORDER_VERTICAL_CORNER_RADIUS, BORDER_WIDTH, borderStyle, canDrawBorder, color, COLOR_KEY, compressAppearanceStream, content, CONTENTS_KEY, 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, matrix, modifiedDate, NM_KEY, PARENT_KEY, PARENT_PAGE_KEY, RECTANGLE_KEY, RESOURCES_VALUE, securityManager, shapes, subtype, SUBTYPE_CIRCLE, SUBTYPE_FREE_TEXT, SUBTYPE_HIGHLIGHT, SUBTYPE_INK, SUBTYPE_LINE, SUBTYPE_LINK, SUBTYPE_POLYGON, SUBTYPE_POLYLINE, SUBTYPE_POPUP, SUBTYPE_SQUARE, SUBTYPE_TEXT, SUBTYPE_WIDGET, TYPE, TYPE_VALUE, userSpaceRectangle, VISIBLE_RECTANGLE |
|
Method Summary |
java.awt.Shape |
getInkPath()
|
static InkAnnotation |
getInstance(Library library,
java.awt.Rectangle rect)
Gets an instance of a InkAnnotation that has valid Object Reference. |
void |
init()
Initiate the Dictionary. |
void |
resetAppearanceStream(double dx,
double dy,
java.awt.geom.AffineTransform pageSpace)
Resets the annotations appearance stream. |
void |
setInkPath(java.awt.Shape inkPath)
|
| 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.annotations.Annotation |
addAction, allowAlterProperties, allowPrintNormalMode, allowScreenDownMode, allowScreenNormalMode, allowScreenOrPrintRenderingOrInteraction, allowScreenRolloverMode, buildAnnotation, deleteAction, deriveDrawingRectangle, getAction, getAppearanceStream, getBbox, getBorder, getBorderStyle, getBorderStyleStroke, getBorderType, getColor, getContents, getFlagHidden, getFlagInvisible, getFlagLocked, getFlagLockedContents, getFlagNoRotate, getFlagNoView, getFlagNoZoom, getFlagPrint, getFlagReadOnly, getFlagToggleNoView, getLineStyle, getLineThickness, getPage, getParentAnnotation, getShapes, getSubType, getUserSpaceRectangle, hasAppearanceStream, isBorder, isSupportedAnnotationType, render, renderAppearanceStream, renderBorder, renderBorderTabSelected, resetAppearanceStream, setBBox, setBorderStyle, setColor, setCompressAppearanceStream, setContents, setFlag, setModifiedDate, setSubtype, setUserSpaceRectangle, syncBBoxToUserSpaceRectangle, updateAction |
| 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 |
INK_LIST_KEY
public static final Name INK_LIST_KEY
- (Required) An array of n arrays, each representing a stroked path. Each
array shall be a series of alternating horizontal and vertical coordinates
in default user space, specifying points along the path. When drawn, the
points shall be connected by straight lines or curves in an
implementation-dependent way
inkPath
protected java.awt.Shape inkPath
InkAnnotation
public InkAnnotation(Library l,
java.util.HashMap h)
init
public void init()
- Description copied from class:
Dictionary
- Initiate the Dictionary. Retrieve any needed attributes.
- Overrides:
init in class MarkupAnnotation
getInstance
public static InkAnnotation getInstance(Library library,
java.awt.Rectangle rect)
- Gets an instance of a InkAnnotation that has valid Object Reference.
- Parameters:
library - document libraryrect - bounding rectangle in user space
- Returns:
- new InkAnnotation Instance.
resetAppearanceStream
public void resetAppearanceStream(double dx,
double dy,
java.awt.geom.AffineTransform pageSpace)
- Resets the annotations appearance stream.
- Specified by:
resetAppearanceStream in class Annotation
getInkPath
public java.awt.Shape getInkPath()
setInkPath
public void setInkPath(java.awt.Shape inkPath)