Package com.datalogics.PDFL
Class CircleAnnotation
java.lang.Object
com.datalogics.PDFL.Annotation
com.datalogics.PDFL.CircleAnnotation
A circle annotation is an annotation surrounded by a curved and possibly elliptical border. The circle is inscribed within the annotation rectangle. Despite the circle name, the width and height of the annotation rectangle need not be equal. So the circle can actually be an ellipse.
-
Constructor Summary
ConstructorsConstructorDescriptionCircleAnnotation(Page page, Rect initialRect) Create a new CircleAnnotation at the end of a page's annotation array.CircleAnnotation(Page page, Rect initialRect, int addAfter) Create a new CircleAnnotation at a specific index in the page's annotation array. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Generate a new appearance stream with the current annotation properties.doubleThe minimum PDF version necessary to support the features used in this annotation.doublevoidsetAnnotationFeatureLevel(double featureLevel) Removes features not supported in the supplied version number.voidsetBorderStyle(String style) voidsetBorderStyleDashPattern(List<Double> dashPattern) voidsetBorderStyleWidth(double width) Methods inherited from class com.datalogics.PDFL.Annotation
equals, getColor, getContents, getFlags, getInteriorColor, getNormalAppearance, getOpacity, getOptionalContentMembershipDict, getPDFDict, getRect, getSubtype, getTitle, hasRichTextData, isCurrentlyVisible, setColor, setContents, setFlags, setInteriorColor, setNormalAppearance, setOpacity, setOptionalContentMembershipDict, setRect, setTitle, toString
-
Constructor Details
-
CircleAnnotation
Create a new CircleAnnotation at the end of a page's annotation array. To create a CircleAnnotation and place it elsewhere in the page's annotation array, use the version of the constructor that takes an array position.- Parameters:
page- The page to which the CircleAnnotation is added.initialRect- A rectangle specifying the annotation's bounds, specified in user space coordinates.
-
CircleAnnotation
Create a new CircleAnnotation at a specific index in the page's annotation array.- Parameters:
page- The page to which the annotation is added.initialRect- A rectangle specifying the annotation's bounds, specified in user space coordinates.addAfter- Where to add the annotation in the page's annotation array.
-
-
Method Details
-
delete
public void delete()- Overrides:
deletein classAnnotation
-
generateAppearance
Generate a new appearance stream with the current annotation properties.The resulting Form can then be used to set the annotation's appearance, such as by calling SetNormalAppearance.
- Overrides:
generateAppearancein classAnnotation
-
getAnnotationFeatureLevel
public double getAnnotationFeatureLevel()The minimum PDF version necessary to support the features used in this annotation.- Overrides:
getAnnotationFeatureLevelin classAnnotation
-
setAnnotationFeatureLevel
public void setAnnotationFeatureLevel(double featureLevel) Removes features not supported in the supplied version number.- Overrides:
setAnnotationFeatureLevelin classAnnotation
-
getBorderStyleWidth
public double getBorderStyleWidth() -
setBorderStyleWidth
public void setBorderStyleWidth(double width) -
getBorderStyle
-
setBorderStyle
-
getBorderStyleDashPattern
-
setBorderStyleDashPattern
-