Package com.reportmill.pdf
Class PDFAnnotation
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.pdf.PDFAnnotation
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 - Direct Known Subclasses:
- PDFAnnotation.Link
 
 public class PDFAnnotation extends RMObject This class represents a PDF annotation (like a hyperlink).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classPDFAnnotation.LinkAn inner class (and annotation subclass) to support hyperlinks.
 - 
Field SummaryFields Modifier and Type Field Description protected java.util.Map_mapstatic charHighlightInvertstatic charHighlightNonestatic charHighlightOutlinestatic charHighlightPush
 - 
Constructor SummaryConstructors Constructor Description PDFAnnotation(RMRect aRect)Creates a new annotation for the given rect.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidresolvePageReferences(PDFPagesTree pages, PDFXTable xref, PDFPage thisPage)Tells the annotation to resolve page references.voidsetHasBorder(boolean b)Sets whether the annotation has a border.voidsetHighlightMode(char h)Sets the highlight mode of the annotaiton.voidsetType(java.lang.String s)Sets the type of the annotation.voidwritePDF(PDFFile pFile)Writes the annotation to the given PDF file.- 
Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
 
- 
 
- 
- 
- 
Field Detail- 
_mapprotected java.util.Map _map 
 - 
HighlightNonepublic static final char HighlightNone - See Also:
- Constant Field Values
 
 - 
HighlightInvertpublic static final char HighlightInvert - See Also:
- Constant Field Values
 
 - 
HighlightOutlinepublic static final char HighlightOutline - See Also:
- Constant Field Values
 
 - 
HighlightPushpublic static final char HighlightPush - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
PDFAnnotationpublic PDFAnnotation(RMRect aRect) Creates a new annotation for the given rect.
 
- 
 - 
Method Detail- 
setTypepublic void setType(java.lang.String s) Sets the type of the annotation.
 - 
setHighlightModepublic void setHighlightMode(char h) Sets the highlight mode of the annotaiton.
 - 
setHasBorderpublic void setHasBorder(boolean b) Sets whether the annotation has a border.
 - 
resolvePageReferencespublic void resolvePageReferences(PDFPagesTree pages, PDFXTable xref, PDFPage thisPage) Tells the annotation to resolve page references.
 - 
writePDFpublic void writePDF(PDFFile pFile) Writes the annotation to the given PDF file.
 
- 
 
-