Package org.jpedal.io.annotation
Class PolygonAnnotation
java.lang.Object
org.jpedal.io.annotation.WritableAnnotation
org.jpedal.io.annotation.PolygonAnnotation
Class generates Polygon Annotation
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jpedal.io.annotation.WritableAnnotation
WritableAnnotation.AnnotationType
-
Constructor Summary
ConstructorDescriptionPolygonAnnotation
(int page, float x0, float y0, float x1, float y1, float[] vertices) Constructor for creating PolyLine AnnotationPolygonAnnotation
(int page, float x0, float y0, float x1, float y1, FormObject form) Constructor for creating PolyLine Annotation -
Method Summary
Methods inherited from class org.jpedal.io.annotation.WritableAnnotation
getFormObject, getNonStrokeColor, getPage, getPopupString, getResources, getStrokeColor, setNonStrokeColor, setStrokeColor, setTextSize
-
Constructor Details
-
PolygonAnnotation
public PolygonAnnotation(int page, float x0, float y0, float x1, float y1, float[] vertices) Constructor for creating PolyLine 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 pointvertices
- float array of x,y points of polyline
-
PolygonAnnotation
Constructor for creating PolyLine 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 hold form values
-
-
Method Details
-
getDictString
- Overrides:
getDictString
in classWritableAnnotation
- Returns:
- Pdf specified dictionary string
-
getAPString
- Overrides:
getAPString
in classWritableAnnotation
-