Package org.jpedal.io.annotation
Class TextAnnotation
- java.lang.Object
-
- org.jpedal.io.annotation.WritableAnnotation
-
- org.jpedal.io.annotation.TextAnnotation
-
public class TextAnnotation extends WritableAnnotation
Class generates Text Annotation / Sticky note annotation- See Also:
AnnotationWriter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jpedal.io.annotation.WritableAnnotation
WritableAnnotation.AnnotationType
-
-
Constructor Summary
Constructors Constructor Description TextAnnotation(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, org.jpedal.objects.raw.FormObject form)
Constructor for creating Text Annotation / sticky note annotation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAPString(int parentObj)
String
getDictString()
String
getPopupString(int parentObj)
-
Methods inherited from class org.jpedal.io.annotation.WritableAnnotation
getFormObject, getNonStrokeColor, getPage, getStrokeColor, setNonStrokeColor, setStrokeColor, setTextSize
-
-
-
-
Constructor Detail
-
TextAnnotation
public TextAnnotation(int page, float x0, float y0, float x1, float y1, org.jpedal.objects.raw.FormObject form)
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
public TextAnnotation(int page, float x0, float y0, float x1, float y1, String text)
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 Detail
-
getDictString
public String getDictString()
- Specified by:
getDictString
in classWritableAnnotation
- Returns:
- Pdf specified dictionary string
-
getPopupString
public String getPopupString(int parentObj)
- Overrides:
getPopupString
in classWritableAnnotation
-
getAPString
public String getAPString(int parentObj)
- Overrides:
getAPString
in classWritableAnnotation
-
-