Package com.reportmill.pdf
Class PDFAnnotation
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.pdf.PDFAnnotation
- All Implemented Interfaces:
RMArchiver.Archiving
,Cloneable
- Direct Known Subclasses:
PDFAnnotation.Link
This class represents a PDF annotation (like a hyperlink).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An inner class (and annotation subclass) to support hyperlinks. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map
static final char
static final char
static final char
static final char
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
resolvePageReferences
(PDFPagesTree pages, PDFXTable xref, PDFPage thisPage) Tells the annotation to resolve page references.void
setHasBorder
(boolean b) Sets whether the annotation has a border.void
setHighlightMode
(char h) Sets the highlight mode of the annotaiton.void
Sets the type of the annotation.void
Writes the annotation to the given PDF file.Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
Field Details
-
_map
-
HighlightNone
public static final char HighlightNone- See Also:
-
HighlightInvert
public static final char HighlightInvert- See Also:
-
HighlightOutline
public static final char HighlightOutline- See Also:
-
HighlightPush
public static final char HighlightPush- See Also:
-
-
Constructor Details
-
PDFAnnotation
Creates a new annotation for the given rect.
-
-
Method Details
-
setType
Sets the type of the annotation. -
setHighlightMode
public void setHighlightMode(char h) Sets the highlight mode of the annotaiton. -
setHasBorder
public void setHasBorder(boolean b) Sets whether the annotation has a border. -
resolvePageReferences
Tells the annotation to resolve page references. -
writePDF
Writes the annotation to the given PDF file.
-