public final class InkAnnotation extends MarkupAnnotation
Represents a freehand "scribble" composed of one or more disjoint paths.
Constructor and Description |
---|
InkAnnotation(IDocument document,
List<Point[]> inkList)
Constructor for Ink annotation for Generator.
|
InkAnnotation(Page page,
Rectangle rect,
List<Point[]> inkList)
Creates new Ink annotation on the specified page.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
|
void |
changeAfterResize(Matrix transform)
Updates the points in InkList, according to the matrix transform.
|
int |
getAnnotationType()
Gets type of annotation.
|
int |
getCapStyle()
get style of ink annotation line endings.
|
List<Point[]> |
getInkList()
Gets list of gestures that are independent lines which are represented by Point[] arrays.
|
void |
setCapStyle(int value)
Set style of ink annotation line endings.
|
void |
setInkList(List<Point[]> value)
Sets list of gestures that are independent lines which are represented by Point[] arrays.
|
void |
updateAppearance()
Updates the Appearance, after text has been changed/moved.
|
getCreationDate, getInReplyTo, getOpacity, getPopup, getReplyType, getRichText, getSubject, getTitle, setInReplyTo, setOpacity, setPopup, setReplyType, setRichText, setSubject, setTitle
createAnnotation, flatten, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getPageIndex, getPdfActions, getRect, getRectangle, getStates, getTextHorizontalAlignment, getWidth, initialize, isUpdateAppearanceOnConvert, isUseFontSubset, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setRect, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidth
deepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndex
public InkAnnotation(IDocument document, List<Point[]> inkList)
document
- Document where ink annotation will be created.inkList
- An array of Point[] arrays, each representing a stroked path.public InkAnnotation(Page page, Rectangle rect, List<Point[]> inkList)
Creates new Ink annotation on the specified page.
page
- The document's page where annotation should be created.rect
- The annotation rectangle, defining the location of the annotation on the page.inkList
- An array of Point[] arrays, each representing a stroked path.public int getCapStyle()
get style of ink annotation line endings.
CapStyle
public void setCapStyle(int value)
Set style of ink annotation line endings.
value
- CapStyle elementCapStyle
public void accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
accept
in class Annotation
visitor
- Visitor object.public List<Point[]> getInkList()
Gets list of gestures that are independent lines which are represented by Point[] arrays.
List<Point[]>
objectpublic void setInkList(List<Point[]> value)
Sets list of gestures that are independent lines which are represented by Point[] arrays.
value
- List<Point[]>
objectpublic void updateAppearance()
public int getAnnotationType()
Gets type of annotation.
getAnnotationType
in class Annotation
AnnotationType
public void changeAfterResize(Matrix transform)
Updates the points in InkList, according to the matrix transform.
changeAfterResize
in class Annotation
transform
- Matrix specifying the transformation.