public class CPDFRedactAnnotation extends CPDFAnnotation
Modifier and Type | Class and Description |
---|---|
static class |
CPDFRedactAnnotation.CPDFRedactAnnotationAttr |
CPDFAnnotation.AppearanceType, CPDFAnnotation.BorderEffectIntensity, CPDFAnnotation.CPDFBorderEffectType, CPDFAnnotation.Flags, CPDFAnnotation.MarkState, CPDFAnnotation.MediaSourceType, CPDFAnnotation.ReviewState, CPDFAnnotation.Type
index
Modifier and Type | Method and Description |
---|---|
void |
applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr) |
boolean |
applyRedaction()
Applies redaction annotation.
|
boolean |
clearFillColorBeforeApply()
Removes the fill color displayed in the specified area before applying the redaction.
|
boolean |
clearOutlineColor()
Removes the color used for the redaction’s border in its marked state.
|
CPDFAnnotationUndoAttr |
getAnnotationAttr() |
int |
getFillColor()
Returns a fill color associated with this redaction or Color#BLACK if no color is set.
|
int |
getFillColorBeforeApply()
Gets the fill color displayed in the specified area before applying the redaction.
|
int |
getOutlineColor()
Gets the color used for the redaction’s border in its marked state.
|
java.lang.String |
getOverLayText()
Gets the text displayed in the specified area after applying the redaction.
|
android.graphics.RectF[] |
getQuadRects()
Gets the areas that should be covered by the redaction annotation.
|
CPDFFreetextAnnotation.Alignment |
getTextAlignment()
Gets the text alignment displayed in the specified area after applying the redaction.
|
CPDFTextAttribute |
getTextDa()
Gets the text attribute displayed in the specified area after applying the redaction.
|
boolean |
setFillColor(int color)
Sets the fill color for this annotation.
|
boolean |
setFillColorBeforeApply(int color)
Sets the fill color displayed in the specified area before applying the redaction.
|
boolean |
setOutlineColor(int outlineColor)
Sets the color used for the redaction’s border in its marked state.
|
boolean |
setOverLayText(java.lang.String text)
Sets the text displayed in the specified area after applying the redaction.
|
boolean |
setQuadRects(android.graphics.RectF[] quadRects)
Uses the rects property to set the areas that should be covered by the redaction annotation.
|
boolean |
setTextAlignment(CPDFFreetextAnnotation.Alignment alignment)
Sets the text alignment displayed in the specified area after applying the redaction.
|
boolean |
setTextDa(CPDFTextAttribute textDa)
Sets the text attribute displayed in the specified area after applying the redaction.
|
addToPage, close, createReplyAnnotation, disableListenAttrChanged, enableListenAttrChanged, equal, equal, getAllReplyAnnotations, getAnnotIndexFromNative, getAnnotPtr, getAppearance, getAppearanceByPixel, getApRotation, getBordEffectIntensity, getBordEffectType, getBorderWidth, getContent, getCreationDate, getFlags, getMarkedAnnotState, getName, getRecentlyModifyDate, getRect, getReviewAnnotState, getRotateRectPoint, getRotation, getSourceRect, getTitle, getType, getVertices, hasAp, isAllowCorrectAnnotationAp, isHidden, isLocked, isReadOnly, isValid, moveAnnotIndex, removeAp, removeFromPage, removeFromPageIncludeReplyAnnot, setAllowCorrectAnnotationAp, setAnnotTop, setBordEffectIntensity, setBordEffectType, setBorderWidth, setContent, setCreationDate, setFlags, setHidden, setLocked, setMarkedAnnotState, setName, setOnAnnotationChangedListener, setReadOnly, setRecentlyModifyDate, setRect, setReviewAnnotState, setRotation, setSourceRect, setTitle, setVertices, updateAp, updateApWithBitmap, updateApWithImage
public java.lang.String getOverLayText()
public boolean setOverLayText(java.lang.String text)
text
- The text displayed in the specified area.public boolean setTextDa(CPDFTextAttribute textDa)
textDa
- Font style.public CPDFTextAttribute getTextDa()
public boolean setTextAlignment(CPDFFreetextAnnotation.Alignment alignment)
alignment
- Text alignment.public CPDFFreetextAnnotation.Alignment getTextAlignment()
public boolean setFillColor(int color)
color
- Color value (0x00000000~0xFFFFFFFF)public int getFillColor()
public boolean setOutlineColor(int outlineColor)
outlineColor
- color Color value (0x00000000~0xFFFFFFFF)public int getOutlineColor()
public boolean clearOutlineColor()
public boolean setQuadRects(android.graphics.RectF[] quadRects)
CPDFPage.convertRectToPage(boolean, float, float, RectF)
.quadRects
- Array of quadrilateral points defining the bounds of the Redaction.public android.graphics.RectF[] getQuadRects()
CPDFPage.convertRectFromPage(boolean, float, float, RectF)
.public int getFillColorBeforeApply()
public boolean setFillColorBeforeApply(int color)
color
- Color value (0x00000000~0xFFFFFFFF)public boolean clearFillColorBeforeApply()
public boolean applyRedaction()
public CPDFAnnotationUndoAttr getAnnotationAttr()
getAnnotationAttr
in class CPDFAnnotation
public void applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr)
applyAnnotationAttr
in class CPDFAnnotation