Package com.tom_roush.pdfbox.pdmodel.fdf
Class FDFAnnotationSquare
- java.lang.Object
-
- com.tom_roush.pdfbox.pdmodel.fdf.FDFAnnotation
-
- com.tom_roush.pdfbox.pdmodel.fdf.FDFAnnotationSquare
-
- All Implemented Interfaces:
COSObjectable
public class FDFAnnotationSquare extends FDFAnnotation
This represents a Square 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 FDFAnnotationSquare()Default constructor.FDFAnnotationSquare(COSDictionary a)Constructor.FDFAnnotationSquare(Element element)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PDRectanglegetFringe()This will get the fringe.AWTColorgetInteriorColor()This will retrieve the interior color of the drawn area.voidsetFringe(PDRectangle fringe)This will set the fringe rectangle.voidsetInteriorColor(AWTColor color)This will set interior color of the drawn area.-
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, isNoRotate, isNoView, isNoZoom, isPrinted, isReadOnly, isToggleNoView, setBorderEffect, setBorderStyle, setColor, setContents, setCreationDate, setDate, setHidden, setIntent, setInvisible, setLocked, 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
-
FDFAnnotationSquare
public FDFAnnotationSquare()
Default constructor.
-
FDFAnnotationSquare
public FDFAnnotationSquare(COSDictionary a)
Constructor.- Parameters:
a- An existing FDF Annotation.
-
FDFAnnotationSquare
public FDFAnnotationSquare(Element element) throws IOException
Constructor.- Parameters:
element- An XFDF element.- Throws:
IOException- If there is an error extracting information from the element.
-
-
Method Detail
-
setInteriorColor
public void setInteriorColor(AWTColor color)
This will set interior color of the drawn area.- Parameters:
color- The interior color of the circle.
-
getInteriorColor
public AWTColor getInteriorColor()
This will retrieve the interior color of the drawn area.- Returns:
- object representing the color.
-
setFringe
public void setFringe(PDRectangle fringe)
This will set the fringe rectangle. Giving the difference between the annotations rectangle and where the drawing occurs. (To take account of any effects applied through the BE entry for example)- Parameters:
fringe- the fringe
-
getFringe
public PDRectangle getFringe()
This will get the fringe. Giving the difference between the annotations rectangle and where the drawing occurs. (To take account of any effects applied through the BE entry for example)- Returns:
- the rectangle difference
-
-