Interface GradientPattern
- All Known Implementing Classes:
CMIGradient,CommonGradient,KyoriGradient
public interface GradientPattern
Abstract class for applying different gradient patterns
-
Method Summary
Modifier and TypeMethodDescriptionapplyPattern(String text, boolean ignorePlaceholders) Applies gradients in provided text and returns text using only #RRGGBBdefault StringasGradient(TextColor start, String text, TextColor end) Returns gradient text based on start color, text and end color
-
Method Details
-
applyPattern
Applies gradients in provided text and returns text using only #RRGGBB- Parameters:
text- text to be reformatted- Returns:
- reformatted text
-
asGradient
Returns gradient text based on start color, text and end color- Parameters:
start- start colortext- text to be reformattedend- end color- Returns:
- reformatted text
-