com.lowagie.text.rtf.text

Class RtfAnnotation

public class RtfAnnotation extends RtfElement

The RtfAnnotation provides support for adding Annotations to the rtf document. Only simple Annotations with Title / Content are supported.

Version: $Version:$

Author: Mark Hall (mhall@edu.uni-klu.ac.at)

Field Summary
static byte[]ANNOTATION
Constant for the actual annotation
static byte[]ANNOTATION_AUTHOR
Constant for the author of the annotation
static byte[]ANNOTATION_ID
Constant for the id of the annotation
Stringcontent
The content of this RtfAnnotation
Stringtitle
The title of this RtfAnnotation
Constructor Summary
RtfAnnotation(RtfDocument doc, Annotation annotation)
Constructs a RtfAnnotation based on an Annotation.
Method Summary
byte[]write()
Writes the content of the RtfAnnotation

Field Detail

ANNOTATION

private static final byte[] ANNOTATION
Constant for the actual annotation

ANNOTATION_AUTHOR

private static final byte[] ANNOTATION_AUTHOR
Constant for the author of the annotation

ANNOTATION_ID

private static final byte[] ANNOTATION_ID
Constant for the id of the annotation

content

private String content
The content of this RtfAnnotation

title

private String title
The title of this RtfAnnotation

Constructor Detail

RtfAnnotation

public RtfAnnotation(RtfDocument doc, Annotation annotation)
Constructs a RtfAnnotation based on an Annotation.

Parameters: doc The RtfDocument this RtfAnnotation belongs to annotation The Annotation this RtfAnnotation is based off

Method Detail

write

public byte[] write()
Writes the content of the RtfAnnotation

Returns: The content of this RtfAnnotation