|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TextMarkup
Interface representing a Text Markup annotation in a PDF document. Text markup annotations are a way to mark text in a document by highlighting, crossing out, or underlining.
| Field Summary | |
|---|---|
static int |
TYPE_HIGHLIGHT
|
static int |
TYPE_INSERT
|
static int |
TYPE_REPLACEMENT
|
static int |
TYPE_SQUIGGLY
|
static int |
TYPE_STRIKEOUT
|
static int |
TYPE_UNDERLINE
|
| 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 | |
|---|---|
String |
getIntent()
returns intent for this annotation |
int |
getMarkupType()
Gets the type of markup that this annotation represents. |
Vector |
getQuadList()
Returns a list of the quadrilaterals that compose this annotation. |
String |
getText(IPDFPage page)
|
void |
setContents(String contents)
Sets the text content for this annotation. |
void |
setQuadList(Vector quadList)
Sets the list of quadrilaterals that compose this annotation. |
void |
setRectangleFromQuads()
Convenience method to set the annotation rectangle from the quadrilaterals. |
void |
setSubtype(String subtype)
Sets the annotation's subtype. |
| Methods inherited from interface com.qoppa.pdf.annotations.Annotation |
|---|
getActions, getBorderStyle, getBorderWidth, getColor, getComponent, getContents, 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, setTriggerActions, shiftRectangle |
| Field Detail |
|---|
static final int TYPE_HIGHLIGHT
static final int TYPE_UNDERLINE
static final int TYPE_SQUIGGLY
static final int TYPE_STRIKEOUT
static final int TYPE_REPLACEMENT
static final int TYPE_INSERT
| Method Detail |
|---|
int getMarkupType()
getMarkupType in interface MarkUpTextvoid setContents(String contents)
setContents in interface MarkUpTextcontents - the new comment.Vector getQuadList()
getQuadList in interface MarkUpTextvoid setQuadList(Vector quadList)
setQuadList in interface MarkUpTextquadList - The new list of quadrilaterals.void setRectangleFromQuads()
setRectangleFromQuads in interface MarkUpTextString getIntent()
getIntent in interface MarkUpText
String getText(IPDFPage page)
throws PDFPermissionException
getText in interface MarkUpTextpage - The page the annotation is located on.
PDFPermissionExceptionvoid setSubtype(String subtype)
setSubtype in interface Annotationsubtype - The type of the markup annotation. Possible values are Highlight,
Underline, StrikeOut, Squiggly.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||