public class HighlightAnnotation extends TextMarkupAnnotation
| Constructor and Description |
|---|
HighlightAnnotation(Page page,
int addAfter,
java.util.List<Quad> quadList)
Create a new HighlightAnnotation at a specific index in the page's annotation array.
|
HighlightAnnotation(Page page,
java.util.List<Quad> quadList)
Create a new HighlightAnnotation at the end of a page's annotation array.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
Form |
generateAppearance()
Generate a new appearance stream with the current annotation properties.
|
getAnnotatedText, getAnnotationFeatureLevel, getQuads, setAnnotationFeatureLevel, setQuadsequals, getColor, getContents, getFlags, getInteriorColor, getNormalAppearance, getOpacity, getOptionalContentMembershipDict, getPDFDict, getRect, getSubtype, getTitle, hasRichTextData, isCurrentlyVisible, setColor, setContents, setFlags, setInteriorColor, setNormalAppearance, setOpacity, setOptionalContentMembershipDict, setRect, setTitle, toStringpublic HighlightAnnotation(Page page, java.util.List<Quad> quadList)
page - The page to which the HighlightAnnotation is added.quadList - A list of quads to highlight. Each quad encompasses a word or group of contiguous words in the text underlying the annotation.public HighlightAnnotation(Page page, int addAfter, java.util.List<Quad> quadList)
To add the annotation to the end of the array, pass a value of -2 or use the alternate version of this constructor that does not take an index (this is generally what you should do unless you have a need to place the annotation at a special location in the array). Passing a value of -1 adds the annotation to the beginning of the array. Passing other negative values produces undefined results.
page - The page to which the HighlightAnnotation is added.quadList - A list of quads to highlight. Each quad encompasses a word or group of contiguous words in the text underlying the annotation.addAfter - Where to add the annotation in the page's annotation array.public void delete()
delete in class TextMarkupAnnotationpublic Form generateAppearance()
The resulting Form can then be used to set the annotation's appearance, such as by calling SetNormalAppearance.
generateAppearance in class Annotation