RegionReplacementOptions

Inheritance: java.lang.Object

public class RegionReplacementOptions

Represents color and area parameters for image region replacement. See ImageAreaRedaction .


Learn more

Constructors

Constructor Description
RegionReplacementOptions(Color fillColor, Dimension size) Initializes a new instance of RegionReplacementOptions class.
RegionReplacementOptions(Color fillColor, Font font, String expectedText) Initializes a new instance of RegionReplacementOptions class which size matches given text.

Methods

Method Description
getFillColor() Gets the color to fill the redacted area.
setFillColor(Color value) Sets the color to fill the redacted area.
getSize() Gets the rectangle with and height.
setSize(Dimension value) Sets the rectangle with and height.

RegionReplacementOptions(Color fillColor, Dimension size)

public RegionReplacementOptions(Color fillColor, Dimension size)

Initializes a new instance of RegionReplacementOptions class.

Parameters:

Parameter Type Description
fillColor java.awt.Color Color to fill the area
size java.awt.Dimension Filled area size

RegionReplacementOptions(Color fillColor, Font font, String expectedText)

public RegionReplacementOptions(Color fillColor, Font font, String expectedText)

Initializes a new instance of RegionReplacementOptions class which size matches given text.

Parameters:

Parameter Type Description
fillColor java.awt.Color Color to fill the area
font java.awt.Font Expected text font
expectedText java.lang.String Expected text

getFillColor()

public final Color getFillColor()

Gets the color to fill the redacted area.

Returns: java.awt.Color - The color to fill the redacted area.

setFillColor(Color value)

public final void setFillColor(Color value)

Sets the color to fill the redacted area.

Parameters:

Parameter Type Description
value java.awt.Color The color to fill the redacted area.

getSize()

public final Dimension getSize()

Gets the rectangle with and height.

Returns: java.awt.Dimension - The rectangle with and height.

setSize(Dimension value)

public final void setSize(Dimension value)

Sets the rectangle with and height.

Parameters:

Parameter Type Description
value java.awt.Dimension The rectangle with and height.