public static class Expression.FormatOption
extends java.lang.Object
Expression.formatEntry(Expression, FormatOption...)
that builds
a Expression.format(FormatEntry...)
expression.
If an option is not set, it defaults to the base value defined for the symbol.
Modifier and Type | Method | Description |
---|---|---|
static Expression.FormatOption |
formatFontScale(double scale) |
If set, the font-scale argument specifies a scaling factor relative to the text-size
specified in the root layout properties.
|
static Expression.FormatOption |
formatFontScale(Expression expression) |
If set, the font-scale argument specifies a scaling factor relative to the text-size
specified in the root layout properties.
|
static Expression.FormatOption |
formatTextColor(int color) |
If set, the text-color argument overrides the color specified by the root paint properties.
|
static Expression.FormatOption |
formatTextColor(Expression expression) |
If set, the text-color argument overrides the color specified by the root paint properties.
|
static Expression.FormatOption |
formatTextFont(Expression expression) |
If set, the text-font argument overrides the font specified by the root layout properties.
|
static Expression.FormatOption |
formatTextFont(java.lang.String[] fontStack) |
If set, the text-font argument overrides the font specified by the root layout properties.
|
@NonNull public static Expression.FormatOption formatFontScale(@NonNull Expression expression)
"font-scale" is required to be of a resulting type number.
expression
- expression@NonNull public static Expression.FormatOption formatFontScale(double scale)
"font-scale" is required to be of a resulting type number.
scale
- value@NonNull public static Expression.FormatOption formatTextFont(@NonNull Expression expression)
"text-font" is required to be a literal array.
The requested font stack has to be a part of the used style. For more information see the documentation.
expression
- expression@NonNull public static Expression.FormatOption formatTextFont(@NonNull java.lang.String[] fontStack)
"text-font" is required to be a literal array.
The requested font stack has to be a part of the used style. For more information see the documentation.
fontStack
- value@NonNull public static Expression.FormatOption formatTextColor(@NonNull Expression expression)
expression
- expression@NonNull public static Expression.FormatOption formatTextColor(int color)
color
- value