public class ReplacementOptions extends Object
Represents options for matched text replacement.
Learn more
| Constructor and Description |
|---|
ReplacementOptions(Color color)
Initializes a new instance of ReplacementOptions class with colored rectangle as an option.
|
ReplacementOptions(String replacement)
Initializes a new instance of ReplacementOptions class with replacement text as an option.
|
| Modifier and Type | Method and Description |
|---|---|
static ReplacementOptions |
fromFilters(RedactionFilter[] filters) |
ReplacementType |
getActionType()
Gets the replacement action: draw box or replace text.
|
Color |
getBoxColor()
Gets the color for a
ReplacementType.DrawBox option (ignored otherwise). |
RedactionFilter[] |
getFilters()
Gets an array of filters to apply with this redaction.
|
String |
getReplacement()
Gets the textual replacement value.
|
void |
setBoxColor(Color value)
Sets the color for a
ReplacementType.DrawBox option (ignored otherwise). |
void |
setFilters(RedactionFilter[] value)
Sets an array of filters to apply with this redaction.
|
void |
setReplacement(String value)
Sets the textual replacement value.
|
public ReplacementOptions(Color color)
Initializes a new instance of ReplacementOptions class with colored rectangle as an option.
color - Rectangle colorpublic ReplacementOptions(String replacement)
Initializes a new instance of ReplacementOptions class with replacement text as an option.
replacement - Textual replacementpublic static ReplacementOptions fromFilters(RedactionFilter[] filters)
public final ReplacementType getActionType()
Gets the replacement action: draw box or replace text.
public final Color getBoxColor()
Gets the color for a ReplacementType.DrawBox option (ignored otherwise).
ReplacementType.DrawBox option (ignored otherwise).public final RedactionFilter[] getFilters()
Gets an array of filters to apply with this redaction.
public final String getReplacement()
Gets the textual replacement value.
public final void setBoxColor(Color value)
Sets the color for a ReplacementType.DrawBox option (ignored otherwise).
value - The color for a ReplacementType.DrawBox option (ignored otherwise).public final void setFilters(RedactionFilter[] value)
Sets an array of filters to apply with this redaction.
value - An array of filters to apply with this redaction.public final void setReplacement(String value)
Sets the textual replacement value.
value - The textual replacement value.Copyright © 2025. All rights reserved.