Package de.qytera.qtaf.core.console
Class ConsoleColors
java.lang.Object
de.qytera.qtaf.core.console.ConsoleColors
Class that generates colored console outputs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringBLACK.static final StringBLACK_BACKGROUND.static final StringBLACK_BACKGROUND_BRIGHT.static final StringBLACK_BOLD.static final StringBLACK_BOLD_BRIGHT.static final StringBLACK_BRIGHT.static final StringBLACK_UNDERLINED.static final StringBLUE.static final StringBLUE_BACKGROUND.static final StringBLUE_BACKGROUND_BRIGHT.static final StringBLUE_BOLD.static final StringBLUE_BOLD_BRIGHT.static final StringBLUE_BRIGHT.static final StringBLUE_UNDERLINED.static final StringCYAN.static final StringCYAN_BACKGROUND.static final StringCYAN_BACKGROUND_BRIGHT.static final StringCYAN_BOLD.static final StringCYAN_BOLD_BRIGHT.static final StringCYAN_BRIGHT.static final StringCYAN_UNDERLINED.static final StringGREEN.static final StringGREEN_BACKGROUND.static final StringGREEN_BACKGROUND_BRIGHT.static final StringGREEN_BOLD.static final StringGREEN_BOLD_BRIGHT.static final StringGREEN_BRIGHT.static final StringGREEN_UNDERLINED.static final StringPURPLE.static final StringPURPLE_BACKGROUND.static final StringPURPLE_BACKGROUND_BRIGHT.static final StringPURPLE_BOLD.static final StringPURPLE_BOLD_BRIGHT.static final StringPURPLE_BRIGHT.static final StringPURPLE_UNDERLINED.static final StringRED.static final StringRED_BACKGROUND.static final StringRED_BACKGROUND_BRIGHT.static final StringRED_BOLD.static final StringRED_BOLD_BRIGHT.static final StringRED_BRIGHT.static final StringRED_UNDERLINED.static final StringRESET.static final StringWHITE.static final StringWHITE_BACKGROUND.static final StringWHITE_BACKGROUND_BRIGHT.static final StringWHITE_BOLD.static final StringWHITE_BOLD_BRIGHT.static final StringWHITE_BRIGHT.static final StringWHITE_UNDERLINED.static final StringYELLOW.static final StringYELLOW_BACKGROUND.static final StringYELLOW_BACKGROUND_BRIGHT.static final StringYELLOW_BOLD.static final StringYELLOW_BOLD_BRIGHT.static final StringYELLOW_BRIGHT.static final StringYELLOW_UNDERLINED. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringBlack text.static StringBlack bright background text.static StringBlack background.static StringBlack bold text.static StringBlack bold bright text.static StringBlack bright text.static StringBlack underlined text.static StringBlue text.static StringBlue bright background text.static StringBlue background.static StringBlue bold text.static StringBlue bold bright text.static StringblueBright(String s) Blue bright text.static StringBlue underlined text.static StringCyan text.static StringCyan bright background text.static StringCyan background.static StringCyan bold text.static StringCyan bold bright text.static StringcyanBright(String s) Cyan bright text.static StringCyan underlined text.static booleanenabled()Check whether colors are allowed to be used.static StringGreen text.static StringGreen bright background text.static StringGreen background.static StringGreen bold text.static StringGreen bold bright text.static StringGreen bright text.static StringGreen underlined text.static StringPurple text.static StringPurple bright background text.static StringPurple background.static StringpurpleBold(String s) Purple bold text.static StringPurple bold bright text.static StringPurple bright text.static StringPurple underlined text.static StringRed text.static StringRed bright background text.static StringRed background.static StringRed bold text.static StringRed bold bright text.static StringRed bright text.static StringRed underlined text.static StringWhite text.static StringWhite bright background text.static StringWhite background.static StringWhite bold text.static StringWhite bold bright text.static StringWhite bright text.static StringWhite underlined text.static StringYellow text.static StringYellow bright background text.static StringYellow background.static StringyellowBold(String s) Yellow bold text.static StringYellow bold bright text.static StringYellow bright text.static StringYellow underlined text.
-
Field Details
-
RESET
RESET.- See Also:
-
BLACK
BLACK.- See Also:
-
RED
RED.- See Also:
-
GREEN
GREEN.- See Also:
-
YELLOW
YELLOW.- See Also:
-
BLUE
BLUE.- See Also:
-
PURPLE
PURPLE.- See Also:
-
CYAN
CYAN.- See Also:
-
WHITE
WHITE.- See Also:
-
BLACK_BOLD
BLACK_BOLD.- See Also:
-
RED_BOLD
RED_BOLD.- See Also:
-
GREEN_BOLD
GREEN_BOLD.- See Also:
-
YELLOW_BOLD
YELLOW_BOLD.- See Also:
-
BLUE_BOLD
BLUE_BOLD.- See Also:
-
PURPLE_BOLD
PURPLE_BOLD.- See Also:
-
CYAN_BOLD
CYAN_BOLD.- See Also:
-
WHITE_BOLD
WHITE_BOLD.- See Also:
-
BLACK_UNDERLINED
BLACK_UNDERLINED.- See Also:
-
RED_UNDERLINED
RED_UNDERLINED.- See Also:
-
GREEN_UNDERLINED
GREEN_UNDERLINED.- See Also:
-
YELLOW_UNDERLINED
YELLOW_UNDERLINED.- See Also:
-
BLUE_UNDERLINED
BLUE_UNDERLINED.- See Also:
-
PURPLE_UNDERLINED
PURPLE_UNDERLINED.- See Also:
-
CYAN_UNDERLINED
CYAN_UNDERLINED.- See Also:
-
WHITE_UNDERLINED
WHITE_UNDERLINED.- See Also:
-
BLACK_BACKGROUND
BLACK_BACKGROUND.- See Also:
-
RED_BACKGROUND
RED_BACKGROUND.- See Also:
-
GREEN_BACKGROUND
GREEN_BACKGROUND.- See Also:
-
YELLOW_BACKGROUND
YELLOW_BACKGROUND.- See Also:
-
BLUE_BACKGROUND
BLUE_BACKGROUND.- See Also:
-
PURPLE_BACKGROUND
PURPLE_BACKGROUND.- See Also:
-
CYAN_BACKGROUND
CYAN_BACKGROUND.- See Also:
-
WHITE_BACKGROUND
WHITE_BACKGROUND.- See Also:
-
BLACK_BRIGHT
BLACK_BRIGHT.- See Also:
-
RED_BRIGHT
RED_BRIGHT.- See Also:
-
GREEN_BRIGHT
GREEN_BRIGHT.- See Also:
-
YELLOW_BRIGHT
YELLOW_BRIGHT.- See Also:
-
BLUE_BRIGHT
BLUE_BRIGHT.- See Also:
-
PURPLE_BRIGHT
PURPLE_BRIGHT.- See Also:
-
CYAN_BRIGHT
CYAN_BRIGHT.- See Also:
-
WHITE_BRIGHT
WHITE_BRIGHT.- See Also:
-
BLACK_BOLD_BRIGHT
BLACK_BOLD_BRIGHT.- See Also:
-
RED_BOLD_BRIGHT
RED_BOLD_BRIGHT.- See Also:
-
GREEN_BOLD_BRIGHT
GREEN_BOLD_BRIGHT.- See Also:
-
YELLOW_BOLD_BRIGHT
YELLOW_BOLD_BRIGHT.- See Also:
-
BLUE_BOLD_BRIGHT
BLUE_BOLD_BRIGHT.- See Also:
-
PURPLE_BOLD_BRIGHT
PURPLE_BOLD_BRIGHT.- See Also:
-
CYAN_BOLD_BRIGHT
CYAN_BOLD_BRIGHT.- See Also:
-
WHITE_BOLD_BRIGHT
WHITE_BOLD_BRIGHT.- See Also:
-
BLACK_BACKGROUND_BRIGHT
BLACK_BACKGROUND_BRIGHT.- See Also:
-
RED_BACKGROUND_BRIGHT
RED_BACKGROUND_BRIGHT.- See Also:
-
GREEN_BACKGROUND_BRIGHT
GREEN_BACKGROUND_BRIGHT.- See Also:
-
YELLOW_BACKGROUND_BRIGHT
YELLOW_BACKGROUND_BRIGHT.- See Also:
-
BLUE_BACKGROUND_BRIGHT
BLUE_BACKGROUND_BRIGHT.- See Also:
-
PURPLE_BACKGROUND_BRIGHT
PURPLE_BACKGROUND_BRIGHT.- See Also:
-
CYAN_BACKGROUND_BRIGHT
CYAN_BACKGROUND_BRIGHT.- See Also:
-
WHITE_BACKGROUND_BRIGHT
WHITE_BACKGROUND_BRIGHT.- See Also:
-
-
Method Details
-
enabled
public static boolean enabled()Check whether colors are allowed to be used.- Returns:
- true if colors in console output are allowed, false otherwise.
-
black
Black text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
red
Red text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
green
Green text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
yellow
Yellow text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
blue
Blue text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
purple
Purple text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
cyan
Cyan text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
white
White text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
blackBold
Black bold text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
redBold
Red bold text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
greenBold
Green bold text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
yellowBold
Yellow bold text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
blueBold
Blue bold text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
purpleBold
Purple bold text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
cyanBold
Cyan bold text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
whiteBold
White bold text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
blackUnderlined
Black underlined text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
redUnderlined
Red underlined text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
greenUnderlined
Green underlined text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
yellowUnderlined
Yellow underlined text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
blueUnderlined
Blue underlined text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
purpleUnderlined
Purple underlined text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
cyanUnderlined
Cyan underlined text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
whiteUnderlined
White underlined text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
blackBg
Black background.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
redBg
Red background.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
greenBg
Green background.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
yellowBg
Yellow background.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
blueBg
Blue background.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
purpleBg
Purple background.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
cyanBg
Cyan background.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
whiteBg
White background.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
blackBright
Black bright text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
redBright
Red bright text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
greenBright
Green bright text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
yellowBright
Yellow bright text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
blueBright
Blue bright text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
purpleBright
Purple bright text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
cyanBright
Cyan bright text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
whiteBright
White bright text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
blackBoldBright
Black bold bright text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
redBoldBright
Red bold bright text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
greenBoldBright
Green bold bright text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
yellowBoldBright
Yellow bold bright text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
blueBoldBright
Blue bold bright text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
purpleBoldBright
Purple bold bright text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
cyanBoldBright
Cyan bold bright text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
whiteBoldBright
White bold bright text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
blackBackgroundBright
Black bright background text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
redBackgroundBright
Red bright background text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
greenBackgroundBright
Green bright background text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
yellowBackgroundBright
Yellow bright background text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
blueBackgroundBright
Blue bright background text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
purpleBackgroundBright
Purple bright background text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
cyanBackgroundBright
Cyan bright background text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-
whiteBackgroundBright
White bright background text.- Parameters:
s- text- Returns:
- text wrapped in color tags
-