Class EllipseAnnotation
- java.lang.Object
-
- com.pdf_tools.fourheights.pdftoolbox.internal.NativeBase
-
- com.pdf_tools.fourheights.pdftoolbox.internal.NativeObject
-
- com.pdf_tools.fourheights.pdftoolbox.pdf.annotations.Annotation
-
- com.pdf_tools.fourheights.pdftoolbox.pdf.annotations.MarkupAnnotation
-
- com.pdf_tools.fourheights.pdftoolbox.pdf.annotations.DrawingAnnotation
-
- com.pdf_tools.fourheights.pdftoolbox.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 EllipseAnnotation
create(Document targetDocument, Rectangle boundingBox, Stroke stroke, Paint fill)
Create an ellipse annotation.Paint
getFill()
The filling paint (Getter)-
Methods inherited from class com.pdf_tools.fourheights.pdftoolbox.pdf.annotations.DrawingAnnotation
getPaint, getPopup
-
Methods inherited from class com.pdf_tools.fourheights.pdftoolbox.pdf.annotations.MarkupAnnotation
getInfo, getLocked, getReplies
-
Methods inherited from class com.pdf_tools.fourheights.pdftoolbox.pdf.annotations.Annotation
copy, getBoundingBox, getHidden, getId, getNoPrint, getNoRotate, getNoZoom
-
Methods inherited from class com.pdf_tools.fourheights.pdftoolbox.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. Ifnull
then the ellipse is not stroked.fill
- The paint used for filling the ellipse. Ifnull
then the ellipse is not filled.- Returns:
- The newly created ellipse annotation.
- Throws:
java.lang.IllegalArgumentException
- if thetargetDocument
has already been closedjava.lang.IllegalArgumentException
- if thetargetDocument
is read-onlyjava.lang.IllegalArgumentException
- if thestroke
andfill
arguments are bothnull
java.lang.IllegalArgumentException
- if thestroke
argument is not associated withtargetDocument
java.lang.IllegalArgumentException
- if thestroke
'spdftoolbox.pdf.content.Stroke.getPaint
has apdftoolbox.pdf.content.Paint.getColorSpace
other than a device color spacejava.lang.IllegalArgumentException
- if thestroke
'spdftoolbox.pdf.content.Stroke.getPaint
has a non-null
pdftoolbox.pdf.content.Paint.getTransparency
withpdftoolbox.pdf.content.Transparency.getBlendMode
other thanpdftoolbox.pdf.content.BlendMode.NORMAL
java.lang.IllegalArgumentException
- if thestroke
argument'spdftoolbox.pdf.content.Stroke.getLineCapStyle
is other thanpdftoolbox.pdf.content.LineCapStyle.BUTT
java.lang.IllegalArgumentException
- if thestroke
argument'spdftoolbox.pdf.content.Stroke.getLineJoinStyle
is other thanpdftoolbox.pdf.content.LineJoinStyle.MITER
java.lang.IllegalArgumentException
- if thestroke
argument'spdftoolbox.pdf.content.Stroke.getMiterLimit
is other than 10java.lang.IllegalArgumentException
- if thestroke
argument'spdftoolbox.pdf.content.Stroke.getDashPhase
is other than 0java.lang.IllegalArgumentException
- if thefill
has apdftoolbox.pdf.content.Paint.getColorSpace
other than a device color spacejava.lang.IllegalArgumentException
- if thefill
has a non-null
pdftoolbox.pdf.content.Paint.getTransparency
withpdftoolbox.pdf.content.Transparency.getBlendMode
other thanpdftoolbox.pdf.content.BlendMode.NORMAL
java.lang.IllegalArgumentException
- if thefill
argument is not associated withtargetDocument
java.lang.IllegalArgumentException
- iftargetDocument
isnull
java.lang.IllegalArgumentException
- ifboundingBox
isnull
-
getFill
public Paint getFill()
The filling paint (Getter)
- Throws:
java.lang.IllegalStateException
- if the object has already been closed
-
-