public static class StyleSettings.Builder extends Object
StyleSettings builder.| Constructor and Description |
|---|
Builder()
Instantiates a new Builder object.
|
| Modifier and Type | Method and Description |
|---|---|
StyleSettings |
build()
Returns the object that was created and configured along with the builder.
|
StyleSettings.Builder |
setBold(boolean value)
Sets a flag that indicates whether the text should be bold or not.
|
StyleSettings.Builder |
setEndStringSeparator(String value)
Sets the end string separator.
|
StyleSettings.Builder |
setFontColor(Color value)
Sets the font color.
|
StyleSettings.Builder |
setHighlightColor(Color value)
Sets the highlight color.
|
StyleSettings.Builder |
setItalic(boolean value)
Sets a flag that indicates whether the text should be italic or not.
|
StyleSettings.Builder |
setOriginalSize(Size value)
Sets the original size of comparing documents.
|
StyleSettings.Builder |
setStartStringSeparator(String value)
Sets the start string separator.
|
StyleSettings.Builder |
setStrikethrough(boolean value)
Sets a flag that indicates whether the text should be strike through or not.
|
StyleSettings.Builder |
setUnderline(boolean value)
Sets a flag that indicates whether the text should be underlined or not.
|
StyleSettings.Builder |
setWordsSeparators(char[] value)
Sets the word separator chars.
|
public final StyleSettings build()
public StyleSettings.Builder setBold(boolean value)
Sets a flag that indicates whether the text should be bold or not.
value - true if the text should be bold, false otherwise.public StyleSettings.Builder setEndStringSeparator(String value)
Sets the end string separator.
value - The new end string separator.public StyleSettings.Builder setFontColor(Color value)
Sets the font color.
value - The new font color.public StyleSettings.Builder setHighlightColor(Color value)
Sets the highlight color.
value - The new highlight color.public StyleSettings.Builder setItalic(boolean value)
Sets a flag that indicates whether the text should be italic or not.
value - true if the text should be italic, false otherwise.public StyleSettings.Builder setOriginalSize(Size value)
Sets the original size of comparing documents.
value - The new original size of comparing documents.public StyleSettings.Builder setStartStringSeparator(String value)
Sets the start string separator.
value - The new start string separator.public StyleSettings.Builder setStrikethrough(boolean value)
Sets a flag that indicates whether the text should be strike through or not.
value - true if the text should be strike through, false otherwise.public StyleSettings.Builder setUnderline(boolean value)
Sets a flag that indicates whether the text should be underlined or not.
value - true if the text should be underlined, false otherwise.public StyleSettings.Builder setWordsSeparators(char[] value)
Sets the word separator chars.
value - The new word separators.Copyright © 2024. All rights reserved.