public static final class StyledString.Style.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
StyledString.Style.Builder |
setBackgroundColor(URI backgroundColor) |
StyledString.Style.Builder |
setBorderColor(URI borderColor) |
StyledString.Style.Builder |
setBorderStyle(StyledString.Style.BorderStyle borderStyle) |
StyledString.Style.Builder |
setFont(URI font) |
StyledString.Style.Builder |
setForegroundColor(URI foregroundColor) |
StyledString.Style.Builder |
setStrikedout(boolean isStrikedout) |
StyledString.Style.Builder |
setStrikeoutColor(URI strikeoutColor) |
StyledString.Style.Builder |
setUnderlineColor(URI underlineColor) |
StyledString.Style.Builder |
setUnderlineStyle(StyledString.Style.UnderLineStyle underlineStyle) |
StyledString.Style |
toStyle()
Creates and return a new Style object as configured with the builder.
|
public StyledString.Style.Builder setFont(URI font)
font - the font to setpublic StyledString.Style.Builder setBackgroundColor(URI backgroundColor)
backgroundColor - the backgroundColor to setpublic StyledString.Style.Builder setForegroundColor(URI foregroundColor)
foregroundColor - the forregroundColor to setpublic StyledString.Style.Builder setStrikedout(boolean isStrikedout)
isStrikedout - the isStrikedout to setpublic StyledString.Style.Builder setStrikeoutColor(URI strikeoutColor)
strikeoutColor - the strikeoutColor to setpublic StyledString.Style.Builder setBorderColor(URI borderColor)
borderColor - the borderColor to setpublic StyledString.Style.Builder setBorderStyle(StyledString.Style.BorderStyle borderStyle)
borderStyle - the borderStyle to setpublic StyledString.Style.Builder setUnderlineColor(URI underlineColor)
underlineColor - the underlineColor to setpublic StyledString.Style.Builder setUnderlineStyle(StyledString.Style.UnderLineStyle underlineStyle)
underlineStyle - the underlineStyle to setpublic StyledString.Style toStyle()