Class PDFAnnotation
java.lang.Object
org.loboevolution.pdfview.annotation.PDFAnnotation
- Direct Known Subclasses:
LinkAnnotation
,StampAnnotation
,WidgetAnnotation
**************************************************************************
Encapsulate a PDF annotation. This is only the super-class of PDF annotations,
which has an "unknown" annotation type.
Use the createAnnotation() method for getting an annotation of the correct
type (if implemented).
Author Katja Sondermann
- Since:
- 03.07.2009 **************************************************************************
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionPDFAnnotation
(PDFObject annotObject) ********************************************************************** Constructorprotected
PDFAnnotation
(PDFObject annotObject, PDFAnnotation.ANNOTATION_TYPE type) ********************************************************************** Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic PDFAnnotation
createAnnotation
(PDFObject parent) ********************************************************************** Create a new PDF annotation object.Get list of pdf commands for this annotationprotected AffineTransform
getScalingTransformation.Get a Rectangle2D.Float representation for a PDFObject that is an array of four Numbers.toString()
-
Field Details
-
GOTO
Definition of some annotation sub-types- See Also:
-
GOTOE
ConstantGOTOE="GoToE"
- See Also:
-
GOTOR
ConstantGOTOR="GoToR"
- See Also:
-
URI
ConstantURI="URI"
- See Also:
-
-
Constructor Details
-
PDFAnnotation
********************************************************************** Constructor- Parameters:
annotObject
- - the PDFObject which contains the annotation description- Throws:
IOException
- if any.
-
PDFAnnotation
protected PDFAnnotation(PDFObject annotObject, PDFAnnotation.ANNOTATION_TYPE type) throws IOException ********************************************************************** Constructor- Parameters:
annotObject
- - the PDFObject which contains the annotation descriptiontype
- aPDFAnnotation.ANNOTATION_TYPE
object.- Throws:
IOException
- if any.
-
-
Method Details
-
createAnnotation
********************************************************************** Create a new PDF annotation object.Currently supported annotation types: Link annotation
- Parameters:
parent
- aPDFObject
object.- Returns:
- PDFAnnotation a
PDFAnnotation
object. - Throws:
IOException
- if any.
-
parseRect
Get a Rectangle2D.Float representation for a PDFObject that is an array of four Numbers.- Parameters:
obj
- a PDFObject that represents an Array of exactly four Numbers.- Returns:
- a
Rectangle2D.Float
object. - Throws:
IOException
- if any.
-
toString
-
getPageCommandsForAnnotation
Get list of pdf commands for this annotation- Returns:
- a
List
object.
-
getScalingTransformation
getScalingTransformation.
- Parameters:
bbox
- aRectangle2D.Float
object.- Returns:
- a
AffineTransform
object.
-