Class StickyNote
- 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.StickyNote
-
public class StickyNote extends MarkupAnnotation
A sticky note annotation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StickyNotecreate(Document targetDocument, Point topLeft, java.lang.String content, Paint paint)Create a sticky note annotation.PaintgetPaint()The paint for the icon and the popup (Getter)PopupgetPopup()The pop-up (Getter)-
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 StickyNote create(Document targetDocument, Point topLeft, java.lang.String content, Paint paint)
Create a sticky note annotation.
The returned sticky note 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 associatedtopLeft- The location of the annotation's upper left corner on the pagecontent- The text contentpaint- The paint for the sticky note icon.- Returns:
- The newly created sticky note annotation
- Throws:
java.lang.IllegalArgumentException- if thetargetDocumenthas already been closedjava.lang.IllegalArgumentException- if thetargetDocumentis read-onlyjava.lang.IllegalArgumentException- if the color space of thepaintargument is not a device color spacejava.lang.IllegalArgumentException- if thepainthas a non-nulltoolbox.pdf.content.Paint.getTransparencywithtoolbox.pdf.content.Transparency.getBlendModeother thantoolbox.pdf.content.BlendMode.NORMALjava.lang.IllegalArgumentException- if thepaintargument is not associated with thetargetDocumentjava.lang.IllegalArgumentException- iftargetDocumentisnulljava.lang.IllegalArgumentException- iftopLeftisnulljava.lang.IllegalArgumentException- ifpaintisnull
-
getPaint
public Paint getPaint() throws CorruptException
The paint for the icon and the popup (Getter)
- Throws:
java.lang.IllegalStateException- if the object has already been closedCorruptException- if the PDF is corrupt and the annotation's paint cannot be read
-
getPopup
public Popup getPopup()
The pop-up (Getter)
- Throws:
java.lang.IllegalStateException- if the object has already been closed
-
-