org.faceless.pdf2
Class AnnotationText

java.lang.Object
  extended by org.faceless.pdf2.PDFAnnotation
      extended by org.faceless.pdf2.AnnotationText
All Implemented Interfaces:
Cloneable

public final class AnnotationText
extends PDFAnnotation

This class represents the type of PDFAnnotation created by the "Text Markup" tool in Acrobat. This is simply a box which may contain one or more lines of text.

Since:
2.3.7

Constructor Summary
AnnotationText()
          Create a new Text annotation
 
Method Summary
 boolean equals(Object o)
           
 PDFStyle getStyle()
          Get the style of the annotation
 void setContents(String content)
          Set the contents of the annotation
 void setStyle(PDFStyle style)
          Set the style to display the text in
 String toString()
           
 
Methods inherited from class org.faceless.pdf2.PDFAnnotation
addReview, getAuthor, getColor, getContents, getCreationDate, getInReplyTo, getModifyDate, getOpacity, getPage, getPopup, getRectangle, getReplies, getReviews, getSubject, getType, getUniqueID, isPrintable, isReadOnly, isVisible, setAuthor, setColor, setCreationDate, setInReplyTo, setModifyDate, setOpacity, setPage, setPrintable, setReadOnly, setRectangle, setSubject, setUniqueID, setVisible
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationText

public AnnotationText()
Create a new Text annotation

Method Detail

setContents

public void setContents(String content)
Set the contents of the annotation

Overrides:
setContents in class PDFAnnotation
Parameters:
content - the content of the Text annotation. May contain "\n" characters to indicate newlines

setStyle

public void setStyle(PDFStyle style)
Set the style to display the text in

Parameters:
style - the style to display the text in

getStyle

public PDFStyle getStyle()
Get the style of the annotation


toString

public String toString()

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2001-2004 Big Faceless Organization