Class EllipseAnnotation
- java.lang.Object
-
- com.pdftools.toolbox.internal.NativeBase
-
- com.pdftools.toolbox.internal.NativeObject
-
- com.pdftools.toolbox.pdf.annotations.Annotation
-
- com.pdftools.toolbox.pdf.annotations.MarkupAnnotation
-
- com.pdftools.toolbox.pdf.annotations.DrawingAnnotation
-
- com.pdftools.toolbox.pdf.annotations.EllipseAnnotation
-
public class EllipseAnnotation extends DrawingAnnotation
An ellipse drawing annotation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EllipseAnnotationcreate(Document targetDocument, Rectangle boundingBox, Stroke stroke, Paint fill)Create an ellipse annotation.PaintgetFill()The filling paint (Getter)-
Methods inherited from class com.pdftools.toolbox.pdf.annotations.DrawingAnnotation
getPaint, getPopup
-
Methods inherited from class com.pdftools.toolbox.pdf.annotations.MarkupAnnotation
getInfo, getLocked, getReplies
-
Methods inherited from class com.pdftools.toolbox.pdf.annotations.Annotation
copy, getBoundingBox, getHidden, getId, getNoPrint, getNoRotate, getNoZoom
-
Methods inherited from class com.pdftools.toolbox.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
create
public static EllipseAnnotation create(Document targetDocument, Rectangle boundingBox, Stroke stroke, Paint fill)
Create an ellipse annotation.
The returned ellipse annotation is not yet part of any page. It can be added to a page's list of annotations.- Parameters:
targetDocument- The output document with which the returned object is associated.boundingBox- The location on the page.stroke- The stroking parameters used for stroking the ellipse. The stroking paint is used as the annotation's main paint. Ifnullthen the ellipse is not stroked.fill- The paint used for filling the ellipse. Ifnullthen the ellipse is not filled.- Returns:
- The newly created ellipse annotation.
- Throws:
java.lang.IllegalArgumentException- if thetargetDocumenthas already been closedjava.lang.IllegalArgumentException- if thetargetDocumentis read-onlyjava.lang.IllegalArgumentException- if thestrokeandfillarguments are bothnulljava.lang.IllegalArgumentException- if thestrokeargument is not associated withtargetDocumentjava.lang.IllegalArgumentException- if thestroke'stoolbox.pdf.content.Stroke.getPainthas atoolbox.pdf.content.Paint.getColorSpaceother than a device color spacejava.lang.IllegalArgumentException- if thestroke'stoolbox.pdf.content.Stroke.getPainthas a non-nulltoolbox.pdf.content.Paint.getTransparencywithtoolbox.pdf.content.Transparency.getBlendModeother thantoolbox.pdf.content.BlendMode.NORMALjava.lang.IllegalArgumentException- if thestrokeargument'stoolbox.pdf.content.Stroke.getLineCapStyleis other thantoolbox.pdf.content.LineCapStyle.BUTTjava.lang.IllegalArgumentException- if thestrokeargument'stoolbox.pdf.content.Stroke.getLineJoinStyleis other thantoolbox.pdf.content.LineJoinStyle.MITERjava.lang.IllegalArgumentException- if thestrokeargument'stoolbox.pdf.content.Stroke.getMiterLimitis other than 10java.lang.IllegalArgumentException- if thestrokeargument'stoolbox.pdf.content.Stroke.getDashPhaseis other than 0java.lang.IllegalArgumentException- if thefillhas atoolbox.pdf.content.Paint.getColorSpaceother than a device color spacejava.lang.IllegalArgumentException- if thefillhas a non-nulltoolbox.pdf.content.Paint.getTransparencywithtoolbox.pdf.content.Transparency.getBlendModeother thantoolbox.pdf.content.BlendMode.NORMALjava.lang.IllegalArgumentException- if thefillargument is not associated withtargetDocumentjava.lang.IllegalArgumentException- iftargetDocumentisnulljava.lang.IllegalArgumentException- ifboundingBoxisnull
-
getFill
public Paint getFill()
The filling paint (Getter)
- Throws:
java.lang.IllegalStateException- if the object has already been closed
-
-