Interface TextStyle.Setter<T extends TextStyle.Setter<T>>
- Type Parameters:
T- the type of the setter
- All Known Subinterfaces:
BuildableComponent.Builder<C,,B> ListComponent.Builder,NumberComponent.Builder,TemporalComponent.Builder,TextComponent.Builder,TextStyle.Builder,TranslatableComponent.Builder
- Enclosing interface:
- TextStyle
public static interface TextStyle.Setter<T extends TextStyle.Setter<T>>
Represents an object that can set text style properties.
-
Method Summary
Modifier and TypeMethodDescriptiondefault TaddDecoration(TextDecoration decoration) Adds a decoration.setBackColor(@Nullable ComponentColor backColor) Sets the background color.setDecoration(TextDecoration decoration, TriState state) Sets a decoration state.setDecorations(Map<TextDecoration, Boolean> decorations) Sets the decorations.setTextColor(@Nullable ComponentColor textColor) Sets the text color.
-
Method Details
-
setTextColor
Sets the text color.- Parameters:
textColor- the text color- Returns:
- this setter
-
setBackColor
Sets the background color.- Parameters:
backColor- the background color- Returns:
- this setter
-
addDecoration
Adds a decoration.- Parameters:
decoration- the decoration- Returns:
- this setter
-
setDecorations
Sets the decorations.- Parameters:
decorations- the decorations- Returns:
- this setter
-
setDecoration
Sets a decoration state. If the state isTriState.UNDEFINED, the decoration is removed.- Parameters:
decoration- the decorationstate- the state- Returns:
- this setter
-