|
|||||||||||
| 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.MarkUpText
Class 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_SQUIGGLY
|
static int |
TYPE_STRIKEOUT
|
static int |
TYPE_UNDERLINE
|
| 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 | |
MarkUpText(String contents,
Vector quadList,
String subtype)
|
|
| Method Summary | |
JComponent |
createComponent(Point2D cropOrigin,
IPDFActionHandler actionHandler)
Creates a JComponent object capable of displaying this annotation. |
String |
getContents()
Returns the annotation's contents. |
Vector |
getQuadList()
Returns a list of the quadrilaterals that compose this annotation. |
String |
getSubtype()
Gets the annotation's subtype string. |
int |
getType()
|
void |
paintImpl(Graphics g,
boolean hasFocus)
|
void |
revalidate()
Revalidates this annotation. |
void |
setContents(String contents)
|
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)
|
| Methods inherited from class com.qoppa.pdf.annotations.Annotation |
getActions, getAppearStream, getBorderStyle, getBorderWidth, getColor, getComponent, getCreationDate, getCreator, getFlags, getLayer, getName, getOpacity, getPopup, getRectangle, getTriggerActions, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrintable, isReadOnly, paint, print, setActions, setAppearStream, setBorderStyle, setBorderWidth, setColor, setComponent, setComponentVisible, setCreationDate, setCreator, setFlags, setHidden, setInvisible, setLayer, setLocked, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPopup, setPrintable, setReadOnly, setRectangle, setTriggerActions, shiftRectangle |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int TYPE_HIGHLIGHT
public static final int TYPE_UNDERLINE
public static final int TYPE_SQUIGGLY
public static final int TYPE_STRIKEOUT
| Constructor Detail |
public MarkUpText(String contents,
Vector quadList,
String subtype)
| Method Detail |
public JComponent createComponent(Point2D cropOrigin,
IPDFActionHandler actionHandler)
Annotation
createComponent in class Annotationpublic String getSubtype()
Annotation
getSubtype in class Annotationpublic int getType()
public void setSubtype(String subtype)
public String getContents()
Annotation
getContents in class Annotationpublic void setContents(String contents)
public void paintImpl(Graphics g,
boolean hasFocus)
public void revalidate()
Annotation
revalidate in class Annotationpublic Vector getQuadList()
public void setQuadList(Vector quadList)
quadList - The new list of quadrilaterals.public void setRectangleFromQuads()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||