java.lang.Object | |
↳ | com.pspdfkit.api.redaction.description.RedactionPreset.Builder |
A builder for creating RedactionPreset
instances.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected Color | fillColor | ||||||||||
protected final Set<Integer> | pages |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builder(Type presetType)
Create the builder to help construct a
RedactionPreset . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
RedactionPreset |
build()
Construct the
RedactionPreset with the parameters given to this builder. | ||||||||||
RedactionPreset.Builder |
setFillColor(Color fillColor)
Defines the color of the box used to cover the redacted content.
| ||||||||||
RedactionPreset.Builder |
setPages(int... pages)
Defines the pages to search for content to mark for redaction.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
setPagesInternal(int[] pages)
To be used internally called from the the definition of
setPages(int) in extended class. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Create the builder to help construct a RedactionPreset
.
presetType | The preset to used to search for redactions to make. |
---|
Construct the RedactionPreset
with the parameters given to this builder.
RedactionPreset
.
Defines the color of the box used to cover the redacted content.
fillColor | A Color used for the box that covers the redacted content. |
---|
Defines the pages to search for content to mark for redaction.
pages | A variable length argument of ints representing the pages to redact. Page values must be greater or equal to 0. |
---|
To be used internally called from the the definition of setPages(int)
in extended class.