Class Squiggly


  • public class Squiggly
    extends TextMarkup

    A squiggly text underlining annotation

    • 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 given markupArea. The returned object is associated with the targetDocument 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 used
        markupArea - 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 the targetDocument has already been closed
        java.lang.IllegalArgumentException - if the targetDocument is read-only
        java.lang.IllegalArgumentException - if the markupArea is empty
        java.lang.IllegalArgumentException - if the paint argument is not associated with targetDocument
        java.lang.IllegalArgumentException - if the paint argument has a toolbox.pdf.content.Paint.getColorSpace other than a device color space
        java.lang.IllegalArgumentException - if the paint argument has a non-nulltoolbox.pdf.content.Paint.getTransparency with toolbox.pdf.content.Transparency.getBlendMode other than toolbox.pdf.content.BlendMode.NORMAL
        java.lang.IllegalArgumentException - if targetDocument is null
        java.lang.IllegalArgumentException - if markupArea is null
        java.lang.IllegalArgumentException - if paint is null