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
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionPDFAnnotation(PDFObject annotObject) ********************************************************************** ConstructorprotectedPDFAnnotation(PDFObject annotObject, PDFAnnotation.ANNOTATION_TYPE type) ********************************************************************** Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic PDFAnnotationcreateAnnotation(PDFObject parent) ********************************************************************** Create a new PDF annotation object.Get list of pdf commands for this annotationprotected AffineTransformgetScalingTransformation.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_TYPEobject.- Throws:
IOException- if any.
-
-
Method Details
-
createAnnotation
********************************************************************** Create a new PDF annotation object.Currently supported annotation types: Link annotation
- Parameters:
parent- aPDFObjectobject.- Returns:
- PDFAnnotation a
PDFAnnotationobject. - 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.Floatobject. - Throws:
IOException- if any.
-
toString
-
getPageCommandsForAnnotation
Get list of pdf commands for this annotation- Returns:
- a
Listobject.
-
getScalingTransformation
getScalingTransformation.
- Parameters:
bbox- aRectangle2D.Floatobject.- Returns:
- a
AffineTransformobject.
-