|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.qoppa.pdf.annotations.Annotation
com.qoppa.pdf.annotations.ShapeAnnotation
com.qoppa.pdf.annotations.Ink
Class 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.
| Field Summary |
| Fields inherited from class com.qoppa.pdf.annotations.ShapeAnnotation |
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 class 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 |
| Constructor Summary | |
Ink(String contents)
Constructs and Ink annotation with no lines. |
|
Ink(String contents,
Vector polyLines)
Constructs and Ink annotation. |
|
| Method Summary | |
Vector |
addPolyline()
Creates a new line and returns it to the calling function. |
JComponent |
createComponent(Point2D cropOrigin,
IPDFActionHandler actionHandler)
Creates a JComponent object capable of displaying this annotation. |
Vector |
getPolylines()
Returns a list of polylines. |
String |
getSubtype()
Returns this annotations subtype: "Ink" |
void |
revalidate()
Revalidate the shape drawn by this annotation. |
void |
revalidateRectangle()
|
void |
shiftRectangle(double deltaX,
double deltaY)
|
| Methods inherited from class com.qoppa.pdf.annotations.ShapeAnnotation |
getBorderWidth, getContents, getInternalColor, getStroke, paintImpl, setBorderWidth, setContents, setInternalColor, setRectangle, setStroke |
| Methods inherited from class com.qoppa.pdf.annotations.Annotation |
getActions, getAppearStream, getBorderStyle, getColor, getComponent, getCreationDate, getCreator, getFlags, getLayer, getName, getOpacity, getPopup, getRectangle, getTriggerActions, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrintable, isReadOnly, paint, print, setActions, setAppearStream, setBorderStyle, setColor, setComponent, setComponentVisible, setCreationDate, setCreator, setFlags, setHidden, setInvisible, setLayer, setLocked, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPopup, setPrintable, setReadOnly, setTriggerActions |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Ink(String contents)
contents - The text contents to display when the annotation is opened.
public Ink(String contents,
Vector polyLines)
contents - The text contents to display when the annotation is opened.polyLines - a Vector of polylines. Each element in the Vector is another
Vector containing a list of points to compose a polyline.| Method Detail |
public void revalidateRectangle()
public String getSubtype()
getSubtype in class Annotationpublic Vector getPolylines()
public Vector addPolyline()
public JComponent createComponent(Point2D cropOrigin,
IPDFActionHandler actionHandler)
createComponent in class Annotationpublic void revalidate()
ShapeAnnotation
revalidate in class ShapeAnnotation
public void shiftRectangle(double deltaX,
double deltaY)
shiftRectangle in class Annotation
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||