Package org.jpedal.io.annotation
Class TextAnnotation
java.lang.Object
org.jpedal.io.annotation.WritableAnnotation
org.jpedal.io.annotation.TextAnnotation
Class generates Text Annotation / Sticky note annotation
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jpedal.io.annotation.WritableAnnotation
WritableAnnotation.AnnotationType -
Constructor Summary
ConstructorsConstructorDescriptionTextAnnotation(int page, float x0, float y0, float x1, float y1, String text) Constructor for creating Text Annotation / sticky note annotationTextAnnotation(int page, float x0, float y0, float x1, float y1, FormObject form) Constructor for creating Text Annotation / sticky note annotation -
Method Summary
Modifier and TypeMethodDescriptiongetAPString(int parentObj) Returns the appearance stream object to write for this annotation.getPopupString(int parentObj) Returns the dictionary of a popup annotation to write with this annotation.Methods inherited from class org.jpedal.io.annotation.WritableAnnotation
getFormObject, getNonStrokeColor, getPage, getResources, getStrokeColor, setNonStrokeColor, setStrokeColor, setTextSize
-
Constructor Details
-
TextAnnotation
Constructor for creating Text Annotation / sticky note annotation- Parameters:
page- the page number where annotation to be appeared (starting from 0)x0- pdf based min x pointy0- pdf based min y pointx1- pdf based max x pointy1- pdf based max y pointform- formObject for the annotation
-
TextAnnotation
Constructor for creating Text Annotation / sticky note annotation- Parameters:
page- the page number where annotation to be appeared (starting from 0)x0- pdf based min x pointy0- pdf based min y pointx1- pdf based max x pointy1- pdf based max y pointtext- text to be appeared in text annotation
-
-
Method Details
-
getDictString
- Overrides:
getDictStringin classWritableAnnotation- Returns:
- Pdf specified dictionary string
-
getPopupString
Description copied from class:WritableAnnotationReturns the dictionary of a popup annotation to write with this annotation. This implementation logs that popups are not supported for this annotation type and returns null.- Overrides:
getPopupStringin classWritableAnnotation- Parameters:
parentObj- object number of this annotation's dictionary- Returns:
- Pdf specified popup dictionary string, or null if there is no popup
-
getAPString
Description copied from class:WritableAnnotationReturns the appearance stream object to write for this annotation. Subclasses that have one reference it fromWritableAnnotation.getDictString(), so this must be called first. This implementation records the object number and returns null.- Overrides:
getAPStringin classWritableAnnotation- Parameters:
parentObj- object number the appearance stream will be written as- Returns:
- Pdf specified appearance stream object string, or null if there is none
-