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 Summary
Nested Classes Modifier and Type Class Description static classPDFAnnotation.LinkAn inner class (and annotation subclass) to support hyperlinks. 
- 
Field Summary
Fields Modifier and Type Field Description protected java.util.Map_mapstatic charHighlightInvertstatic charHighlightNonestatic charHighlightOutlinestatic charHighlightPush 
- 
Constructor Summary
Constructors Constructor Description PDFAnnotation(RMRect aRect)Creates a new annotation for the given rect. 
- 
Method Summary
All 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.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals 
 - 
 
 - 
 
- 
- 
Field Detail
- 
_map
protected java.util.Map _map
 
- 
HighlightNone
public static final char HighlightNone
- See Also:
 - Constant Field Values
 
 
- 
HighlightInvert
public static final char HighlightInvert
- See Also:
 - Constant Field Values
 
 
- 
HighlightOutline
public static final char HighlightOutline
- See Also:
 - Constant Field Values
 
 
- 
HighlightPush
public static final char HighlightPush
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
PDFAnnotation
public PDFAnnotation(RMRect aRect)
Creates a new annotation for the given rect. 
 - 
 
- 
Method Detail
- 
setType
public void setType(java.lang.String s)
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
public void resolvePageReferences(PDFPagesTree pages, PDFXTable xref, PDFPage thisPage)
Tells the annotation to resolve page references. 
- 
writePDF
public void writePDF(PDFFile pFile)
Writes the annotation to the given PDF file. 
 - 
 
 -