public class TextAttributesEffectsBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TextAttributesEffectsBuilder.EffectDescriptor |
static class |
TextAttributesEffectsBuilder.EffectSlot |
Modifier and Type | Method and Description |
---|---|
TextAttributes |
applyTo(TextAttributes targetAttributes)
Applies effects from the current state to the target attributes
|
TextAttributesEffectsBuilder |
coverWith(EffectType effectType,
java.awt.Color effectColor)
Applies effect with
effectType and effectColor to the current state. |
TextAttributesEffectsBuilder |
coverWith(TextAttributes attributes)
Applies effects from
attributes above current state of the merger. |
static TextAttributesEffectsBuilder |
create()
Creates a builder without any effects
|
static TextAttributesEffectsBuilder |
create(TextAttributes deepestAttributes)
Creates a builder with effects from
deepestAttributes |
TextAttributesEffectsBuilder.EffectDescriptor |
getEffectDescriptor(TextAttributesEffectsBuilder.EffectSlot effectSlot) |
TextAttributesEffectsBuilder |
slipUnder(EffectType effectType,
java.awt.Color effectColor)
Applies effect with
effectType and effectColor to the current state if effect slot is not used. |
TextAttributesEffectsBuilder |
slipUnder(TextAttributes attributes)
Applies effects from
attributes if effect slots are not used. |
public static TextAttributesEffectsBuilder create()
public static TextAttributesEffectsBuilder create(TextAttributes deepestAttributes)
deepestAttributes
public final TextAttributesEffectsBuilder coverWith(TextAttributes attributes)
attributes
above current state of the merger. Effects may override mutually exclusive ones. E.g
If current state has underline and we applying attributes with wave underline, underline effect will be removed.public final TextAttributesEffectsBuilder slipUnder(TextAttributes attributes)
attributes
if effect slots are not used.public TextAttributesEffectsBuilder coverWith(EffectType effectType, java.awt.Color effectColor)
effectType
and effectColor
to the current state. Effects may override mutually exclusive ones. E.g
If current state has underline and we applying attributes with wave underline, underline effect will be removed.public TextAttributesEffectsBuilder slipUnder(EffectType effectType, java.awt.Color effectColor)
effectType
and effectColor
to the current state if effect slot is not used.public TextAttributes applyTo(TextAttributes targetAttributes)
targetAttributes
- passed targetAttributespublic TextAttributesEffectsBuilder.EffectDescriptor getEffectDescriptor(TextAttributesEffectsBuilder.EffectSlot effectSlot)