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 |
---|---|
ReplacementType |
getActionType()
Gets the replacement action: draw box or replace text.
|
Color |
getBoxColor()
Gets the color for a
ReplacementType.DrawBox option (ignored otherwise). |
String |
getReplacement()
Gets the textual replacement value.
|
void |
setBoxColor(Color value)
Sets the color for a
ReplacementType.DrawBox option (ignored otherwise). |
void |
setReplacement(String value)
Sets the textual replacement value.
|
public ReplacementOptions(String replacement)
Initializes a new instance of ReplacementOptions class with replacement text as an option.
replacement
- Textual replacementpublic ReplacementOptions(Color color)
Initializes a new instance of ReplacementOptions class with colored rectangle as an option.
color
- Rectangle colorpublic final ReplacementType getActionType()
Gets the replacement action: draw box or replace text.
public final String getReplacement()
Gets the textual replacement value.
public final void setReplacement(String value)
Sets the textual replacement value.
value
- The textual replacement value.public final Color getBoxColor()
Gets the color for a ReplacementType.DrawBox
option (ignored otherwise).
ReplacementType.DrawBox
option (ignored otherwise).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).