public interface Redaction extends ShapeAnnotation
| Modifier and Type | Field and Description |
|---|---|
static int |
OVERLAY_ALIGNMENT_CENTER
Indicates center alignment for overlay text; used by
setOverlayTextAlignment(int). |
static int |
OVERLAY_ALIGNMENT_LEFT
Indicates left alignment for overlay text; used by
setOverlayTextAlignment(int). |
static int |
OVERLAY_ALIGNMENT_RIGHT
Indicates right alignment for overlay text; used by
setOverlayTextAlignment(int). |
LE_BUTT, LE_BUTT_STR, LE_CIRCLE, LE_CIRCLE_STR, LE_CLOSEDARROW, LE_CLOSEDARROW_STR, LE_DIAMOND, LE_DIAMOND_STR, LE_NONE, LE_NONE_STR, LE_OPENARROW, LE_OPENARROW_STR, LE_REVERSE_CLOSED_ARROW, LE_REVERSE_CLOSED_ARROW_STR, LE_REVERSE_OPEN_ARROW, LE_REVERSE_OPEN_ARROW_STR, LE_SLASH, LE_SLASH_STR, LE_SQUARE, LE_SQUARE_STRBORDERSTYLE_BEVELED, BORDERSTYLE_CLOUD, BORDERSTYLE_DASHED, BORDERSTYLE_INSETS, BORDERSTYLE_SOLID, BORDERSTYLE_UNDERLINE, FLAGS_HIDDEN, FLAGS_INVISIBLE, FLAGS_LOCKED, FLAGS_LOCKEDCONTENTS, FLAGS_NOROTATE, FLAGS_NOVIEW, FLAGS_NOZOOM, FLAGS_PRINTABLE, FLAGS_READONLY| Modifier and Type | Method and Description |
|---|---|
Date |
getCreationDate()
Returns the date and time when the annotation was created.
|
Color |
getFillColor()
Returns the annotation's fill color.
|
String |
getOverlayFontName()
Returns the overlay text font name.
|
float |
getOverlayFontSize()
Returns the overlay text font size.
|
String |
getOverlayText()
Returns the text string specifying the overlay text that should be drawn
over the redacted region.
|
int |
getOverlayTextAlignment()
Returns the overlay text alignment.
|
Color |
getOverlayTextColor()
Returns the overlay text color
|
Vector<Point2D[]> |
getQuadList()
Returns a list of the quadrilaterals that compose this annotation if any.
|
boolean |
isOverlayTextRepeats()
Returns the flag to determine if the overlay text should repeat.
|
void |
setFillColor(Color c)
Sets the annotation's fill color.
|
void |
setOverlayFont(String fontName,
float fontSize)
Sets the name and point size of the overlay text Font.
|
void |
setOverlayText(String text)
Sets the text string specifying the overlay text that should be drawn over the
redacted region.
|
void |
setOverlayTextAlignment(int alignment)
Sets the overlay text alignment.
|
void |
setOverlayTextColor(Color color)
Sets the overlay text color.
|
void |
setOverlayTextRepeats(boolean repeats)
Sets the flag to determine if the overlay text should repeat.
|
getContents, getInternalColor, getStroke, setContents, setInternalColor, setStrokegetActions, getAnnotationComponent, getBorderStyle, getBorderWidth, getCheckmarkStatus, getColor, getComponent, getCreator, getFlags, getIRTAnnotation, getModifiedDate, getName, getOpacity, getPageIndex, getRectangle, getReviewHistory, getSubject, getSubtype, getTriggerActions, isHidden, isInvisible, isIRTGroup, isLocked, isLockedContents, isNoRotate, isNoView, isNoZoom, isPrintable, isReadOnly, paint, print, revalidate, setActions, setBorderStyle, setBorderWidth, setColor, setComponent, setComponentVisible, setCreator, setFlags, setHidden, setInvisible, setLayer, setLocked, setLockedContents, setModifiedDate, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPrintable, setReadOnly, setRectangle, setSubject, setTriggerActions, shiftRectanglestatic final int OVERLAY_ALIGNMENT_LEFT
setOverlayTextAlignment(int).static final int OVERLAY_ALIGNMENT_CENTER
setOverlayTextAlignment(int).static final int OVERLAY_ALIGNMENT_RIGHT
setOverlayTextAlignment(int).Vector<Point2D[]> getQuadList()
void setOverlayText(String text)
text - The overlay text string.String getOverlayText()
void setOverlayFont(String fontName, float fontSize) throws PDFException
The supported fonts are Helvetica, Helvetica-Bold, Helvetica-Oblique, Helvetica-BoldOblique, Courier, Courier-Bold, Courier-Oblique, Courier-BoldOblique, Times-Roman, Times-Bold, Times-Italic, Times-BoldItalic.
The default font is Helvetica. The default font size is 12. If the size is 0, then the text will be resized to fill the redacted region.
fontName - The font name.fontSize - The Font size.PDFExceptionString getOverlayFontName()
float getOverlayFontSize()
void setOverlayTextColor(Color color)
color - The overlay text color.Color getOverlayTextColor()
void setOverlayTextAlignment(int alignment)
alignment - The overlay text alignment.int getOverlayTextAlignment()
void setOverlayTextRepeats(boolean repeats)
repeats - The overlay text repeats flag.boolean isOverlayTextRepeats()
Date getCreationDate()
void setFillColor(Color c)
c - The new color.Color getFillColor()