Package com.tom_roush.pdfbox.pdmodel.fdf
Class FDFAnnotationCaret
- java.lang.Object
-
- com.tom_roush.pdfbox.pdmodel.fdf.FDFAnnotation
-
- com.tom_roush.pdfbox.pdmodel.fdf.FDFAnnotationCaret
-
- All Implemented Interfaces:
COSObjectable
public class FDFAnnotationCaret extends FDFAnnotation
This represents a Caret FDF annotation.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSUBTYPECOS Model value for SubType entry.-
Fields inherited from class com.tom_roush.pdfbox.pdmodel.fdf.FDFAnnotation
annot
-
-
Constructor Summary
Constructors Constructor Description FDFAnnotationCaret()Default constructor.FDFAnnotationCaret(COSDictionary a)Constructor.FDFAnnotationCaret(Element element)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PDRectanglegetFringe()This will retrieve the fringe.StringgetSymbol()This will retrieve the symbol that shall be associated with the caret.voidsetFringe(PDRectangle fringe)This will set the fringe rectangle.voidsetSymbol(String symbol)This will set the symbol that shall be associated with the caret.-
Methods inherited from class com.tom_roush.pdfbox.pdmodel.fdf.FDFAnnotation
create, getBorderEffect, getBorderStyle, getColor, getContents, getCOSObject, getCreationDate, getDate, getIntent, getName, getOpacity, getPage, getRectangle, getRichContents, getStringOrStream, getSubject, getTitle, isHidden, isInvisible, isLocked, isLockedContents, isNoRotate, isNoView, isNoZoom, isPrinted, isReadOnly, isToggleNoView, setBorderEffect, setBorderStyle, setColor, setContents, setCreationDate, setDate, setHidden, setIntent, setInvisible, setLocked, setLockedContents, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPage, setPrinted, setReadOnly, setRectangle, setRichContents, setSubject, setTitle, setToggleNoView
-
-
-
-
Field Detail
-
SUBTYPE
public static final String SUBTYPE
COS Model value for SubType entry.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FDFAnnotationCaret
public FDFAnnotationCaret()
Default constructor.
-
FDFAnnotationCaret
public FDFAnnotationCaret(COSDictionary a)
Constructor.- Parameters:
a- An existing FDF Annotation.
-
FDFAnnotationCaret
public FDFAnnotationCaret(Element element) throws IOException
Constructor.- Parameters:
element- An XFDF element.- Throws:
IOException- If there is an error extracting information from the element.
-
-
Method Detail
-
setFringe
public final void setFringe(PDRectangle fringe)
This will set the fringe rectangle. Giving the difference between the annotations rectangle and where the drawing occurs.- Parameters:
fringe- the fringe
-
getFringe
public PDRectangle getFringe()
This will retrieve the fringe. Giving the difference between the annotations rectangle and where the drawing occurs.- Returns:
- the rectangle difference
-
setSymbol
public final void setSymbol(String symbol)
This will set the symbol that shall be associated with the caret.- Parameters:
symbol- the symbol
-
getSymbol
public String getSymbol()
This will retrieve the symbol that shall be associated with the caret.- Returns:
- the symbol
-
-