com.qoppa.pdf.annotations
Interface Ink

All Superinterfaces:
Annotation, ShapeAnnotation

public interface Ink
extends ShapeAnnotation

Interface representing an Ink annotation in a PDF document. Ink annotation consist of a list of x,y coordinates that are connected using lines when displayed. The annotation can be double-clicked to display its content.

Author:
Qoppa Software

Field Summary
 
Fields inherited from interface com.qoppa.pdf.annotations.ShapeAnnotation
LE_BUTT, LE_BUTT_STR, LE_CIRCLE, LE_CIRCLE_STR, LE_CLOSEDARROW, LE_CLOSEDARROW_STR, LE_DIAMOND, LE_DIAMOND_STR, LE_NONE, LE_NONE_STR, LE_OPENARROW, LE_OPENARROW_STR, LE_SQUARE, LE_SQUARE_STR
 
Fields inherited from interface com.qoppa.pdf.annotations.Annotation
BORDERSTYLE_BEVELED, BORDERSTYLE_DASHED, BORDERSTYLE_INSETS, BORDERSTYLE_SOLID, BORDERSTYLE_UNDERLINE, FLAGS_HIDDEN, FLAGS_INVISIBLE, FLAGS_LOCKED, FLAGS_NOROTATE, FLAGS_NOVIEW, FLAGS_NOZOOM, FLAGS_PRINTABLE, FLAGS_READONLY
 
Method Summary
 Vertices addGesture()
          Creates a new line and returns it to the calling function.
 Vertices addPolyline()
          Deprecated. Please use addGesture
 GestureList getGestures()
          Returns the list of gestures that represent the Ink annotation.
 GestureList getPolylines()
          Deprecated. Please use getGestures
 void revalidateRectangle()
           
 
Methods inherited from interface com.qoppa.pdf.annotations.ShapeAnnotation
getContents, getInternalColor, getStroke, setContents, setInternalColor, setStroke
 
Methods inherited from interface com.qoppa.pdf.annotations.Annotation
getActions, getBorderStyle, getBorderWidth, getColor, getComponent, getCreationDate, getCreator, getFlags, getModifiedDate, getName, getOpacity, getRectangle, getSubject, getSubtype, getTriggerActions, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrintable, isReadOnly, paint, paint, print, revalidate, setActions, setBorderStyle, setBorderWidth, setColor, setComponent, setComponentVisible, setCreationDate, setCreator, setFlags, setHidden, setInvisible, setLayer, setLocked, setModifiedDate, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPrintable, setReadOnly, setRectangle, setSubject, setSubtype, setTriggerActions, shiftRectangle
 

Method Detail

revalidateRectangle

void revalidateRectangle()

getPolylines

GestureList getPolylines()
Deprecated. Please use getGestures

Returns the list of gestures that represent the Ink annotation. Each object in the list is of type Vertices and contains a list of vertices to draw the gesture.

Returns:
A list of Vertices objects.

getGestures

GestureList getGestures()
Returns the list of gestures that represent the Ink annotation. Each object in the list is of type Vertices and contains a list of vertices to draw the gesture.

Returns:
A list of Vertices objects.

addPolyline

Vertices addPolyline()
Deprecated. Please use addGesture

Creates a new line and returns it to the calling function. The returned Vertices object is the actual Vertices object by the annotation, so any changes to the vertices will be reflected in the annotation.

Returns:
A Vertices object that holds the vertices in the gesture.

addGesture

Vertices addGesture()
Creates a new line and returns it to the calling function. The returned Vertices object is the actual Vertices object by the annotation, so any changes to the vertices will be reflected in the annotation.

Returns:
A Vertices object that holds the vertices in the gesture.