Class Highlight
- java.lang.Object
-
public class Highlight extends TextMarkup
An text highlighting annotation
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HighlightcreateFromQuadrilaterals(Document targetDocument, QuadrilateralList markupArea, Paint paint)Create a new highlight with defined area-
Methods inherited from class com.pdftools.toolbox.pdf.annotations.TextMarkup
getMarkupArea, 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
-
createFromQuadrilaterals
public static Highlight createFromQuadrilaterals(Document targetDocument, QuadrilateralList markupArea, Paint paint)
Create a new highlight with defined area
The highlight area is defined by the givenmarkupArea. The returned object is associated with thetargetDocumentbut 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 highlighted.paint- The highlight paint- Returns:
- The newly created object
- Throws:
java.lang.IllegalArgumentException- if thetargetDocumenthas already been closedjava.lang.IllegalArgumentException- if thetargetDocumentis read-onlyjava.lang.IllegalArgumentException- if themarkupAreais emptyjava.lang.IllegalArgumentException- if thepaintargument is not associated withtargetDocumentjava.lang.IllegalArgumentException- if thepaintargument has atoolbox.pdf.content.Paint.getColorSpaceother than a device color spacejava.lang.IllegalArgumentException- if thepaintargument has a non-nulltoolbox.pdf.content.Paint.getTransparencywithtoolbox.pdf.content.Transparency.getBlendModeother thantoolbox.pdf.content.BlendMode.NORMALjava.lang.IllegalArgumentException- iftargetDocumentisnulljava.lang.IllegalArgumentException- ifmarkupAreaisnulljava.lang.IllegalArgumentException- ifpaintisnull
-
-