Package org.jpedal.io.annotation
Class HighlightAnnotation
java.lang.Object
org.jpedal.io.annotation.WritableAnnotation
org.jpedal.io.annotation.HighlightAnnotation
Class generates Highlight Annotation
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jpedal.io.annotation.WritableAnnotation
WritableAnnotation.AnnotationType -
Constructor Summary
ConstructorsConstructorDescriptionHighlightAnnotation(int page, float x0, float y0, float x1, float y1, float[] quadPoints) Constructor for creating Highlight AnnotationHighlightAnnotation(int page, float x0, float y0, float x1, float y1, FormObject form) Constructor for creating Highlight Annotation -
Method Summary
Modifier and TypeMethodDescriptiongetAPString(int parentObj) Returns the appearance stream object to write for this annotation.Methods inherited from class org.jpedal.io.annotation.WritableAnnotation
getFormObject, getNonStrokeColor, getPage, getPopupString, getResources, getStrokeColor, setNonStrokeColor, setStrokeColor, setTextSize
-
Constructor Details
-
HighlightAnnotation
public HighlightAnnotation(int page, float x0, float y0, float x1, float y1, float[] quadPoints) Constructor for creating Highlight 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 pointquadPoints- 8*n points (please note this points should be drawn in Z like order and should not follow pdf spec as it is a bug in the specification)
-
HighlightAnnotation
Constructor for creating Highlight 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 holding values
-
-
Method Details
-
getDictString
- Overrides:
getDictStringin classWritableAnnotation- Returns:
- Pdf specified dictionary string
-
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
-