Class AnnotationRenderConfiguration.Builder
-
- All Implemented Interfaces:
public class AnnotationRenderConfiguration.Builder
Builder to create a instance.
-
-
Constructor Summary
Constructors Constructor Description AnnotationRenderConfiguration.Builder()
-
Method Summary
Modifier and Type Method Description AnnotationRenderConfiguration.Builder
formHighlightColor(@ColorInt() @Nullable() Integer color)
Sets color used for highlighting editable form fields. AnnotationRenderConfiguration.Builder
formItemHighlightColor(@ColorInt() @Nullable() Integer color)
Sets color used for highlighting selected items inside lists, combo boxes and similar. AnnotationRenderConfiguration.Builder
formRequiredFieldBorderColor(@ColorInt() @Nullable() Integer color)
Sets color of the border around required form fields. AnnotationRenderConfiguration.Builder
signHereOverlayBackgroundColor(@ColorInt() @Nullable() Integer color)
Sets color of the background of the sign here arrow. AnnotationRenderConfiguration.Builder
invertColors(boolean invertColors)
Sets whether annotation colors will be inverted in the rendering. AnnotationRenderConfiguration.Builder
toGrayscale(boolean toGrayscale)
Sets whether annotation colors will be converted to grayscale. AnnotationRenderConfiguration.Builder
redactionAnnotationPreviewEnabled(boolean enable)
Sets redaction annotation preview enabled, false
by default.AnnotationRenderConfiguration.Builder
showSignHereOverlay(boolean showOverlay)
Sets whether or not the sign here overlay in signature form fields should be shown. AnnotationRenderConfiguration
build()
Creates the configuration for annotation rendering. -
-
Method Detail
-
formHighlightColor
@NonNull() AnnotationRenderConfiguration.Builder formHighlightColor(@ColorInt() @Nullable() Integer color)
Sets color used for highlighting editable form fields. Each editable form field is overlaid with rectangle filled with this color.
- Parameters:
color
- ARGB color integer (can beColor#TRANSPARENT
) ornull
to use default color (#330036FF).
-
formItemHighlightColor
@NonNull() AnnotationRenderConfiguration.Builder formItemHighlightColor(@ColorInt() @Nullable() Integer color)
Sets color used for highlighting selected items inside lists, combo boxes and similar.
- Parameters:
color
- ARGB color integer (can beColor#TRANSPARENT
) ornull
to use default color (#339AC1D9).
-
formRequiredFieldBorderColor
@NonNull() AnnotationRenderConfiguration.Builder formRequiredFieldBorderColor(@ColorInt() @Nullable() Integer color)
Sets color of the border around required form fields.
- Parameters:
color
- ARGB color integer (can beColor#TRANSPARENT
) ornull
to use default color (#FFFF0000).
-
signHereOverlayBackgroundColor
@NonNull() AnnotationRenderConfiguration.Builder signHereOverlayBackgroundColor(@ColorInt() @Nullable() Integer color)
Sets color of the background of the sign here arrow.
- Parameters:
color
- ARGB color integer orColor#TRANSPARENT
to not show the background.
-
invertColors
@NonNull() AnnotationRenderConfiguration.Builder invertColors(boolean invertColors)
Sets whether annotation colors will be inverted in the rendering.
- Parameters:
invertColors
-true
to invert colors,false
otherwise.
-
toGrayscale
@NonNull() AnnotationRenderConfiguration.Builder toGrayscale(boolean toGrayscale)
Sets whether annotation colors will be converted to grayscale.
- Parameters:
toGrayscale
-true
to covert to grayscale,false
otherwise.
-
redactionAnnotationPreviewEnabled
@NonNull() AnnotationRenderConfiguration.Builder redactionAnnotationPreviewEnabled(boolean enable)
Sets redaction annotation preview enabled,
false
by default.- Parameters:
enable
-true
to enable redaction annotation preview.
-
showSignHereOverlay
@NonNull() AnnotationRenderConfiguration.Builder showSignHereOverlay(boolean showOverlay)
Sets whether or not the sign here overlay in signature form fields should be shown.
true
by default.- Parameters:
showOverlay
-true
to show the sign here overlay,false
to hide it.
-
build
AnnotationRenderConfiguration build()
Creates the configuration for annotation rendering.
-
-
-
-