Class Squiggly
- 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.TextMarkup
-
- com.pdf_tools.fourheights.pdftoolbox.pdf.annotations.Squiggly
-
public class Squiggly extends TextMarkup
A squiggly text underlining annotation
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Squiggly
createFromQuadrilaterals(Document targetDocument, QuadrilateralList markupArea, Paint paint)
Create a new squiggly underline with defined area-
Methods inherited from class com.pdf_tools.fourheights.pdftoolbox.pdf.annotations.TextMarkup
getMarkupArea, 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
-
createFromQuadrilaterals
public static Squiggly createFromQuadrilaterals(Document targetDocument, QuadrilateralList markupArea, Paint paint)
Create a new squiggly underline with defined area
The area to be underlined is defined by the givenmarkupArea
. The returned object is associated with thetargetDocument
but not yet part of any page. It can be added to a page's list of annotations.- Parameters:
targetDocument
- The document in which the links is usedmarkupArea
- The area on the page to be underlined.paint
- The paint used for drawing the squiggly underline- Returns:
- The newly created object
- Throws:
java.lang.IllegalArgumentException
- if thetargetDocument
has already been closedjava.lang.IllegalArgumentException
- if thetargetDocument
is read-onlyjava.lang.IllegalArgumentException
- if themarkupArea
is emptyjava.lang.IllegalArgumentException
- if thepaint
argument is not associated withtargetDocument
java.lang.IllegalArgumentException
- if thepaint
argument has apdftoolbox.pdf.content.Paint.getColorSpace
other than a device color spacejava.lang.IllegalArgumentException
- if thepaint
argument has a non-null
pdftoolbox.pdf.content.Paint.getTransparency
withpdftoolbox.pdf.content.Transparency.getBlendMode
other thanpdftoolbox.pdf.content.BlendMode.NORMAL
java.lang.IllegalArgumentException
- iftargetDocument
isnull
java.lang.IllegalArgumentException
- ifmarkupArea
isnull
java.lang.IllegalArgumentException
- ifpaint
isnull
-
-