Class ConsoleColors

java.lang.Object
de.qytera.qtaf.core.console.ConsoleColors

public class ConsoleColors extends Object
Class that generates colored console outputs.
  • Field Details

  • 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

      public static String black(String s)
      Black text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • red

      public static String red(String s)
      Red text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • green

      public static String green(String s)
      Green text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • yellow

      public static String yellow(String s)
      Yellow text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • blue

      public static String blue(String s)
      Blue text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • purple

      public static String purple(String s)
      Purple text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • cyan

      public static String cyan(String s)
      Cyan text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • white

      public static String white(String s)
      White text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • blackBold

      public static String blackBold(String s)
      Black bold text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • redBold

      public static String redBold(String s)
      Red bold text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • greenBold

      public static String greenBold(String s)
      Green bold text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • yellowBold

      public static String yellowBold(String s)
      Yellow bold text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • blueBold

      public static String blueBold(String s)
      Blue bold text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • purpleBold

      public static String purpleBold(String s)
      Purple bold text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • cyanBold

      public static String cyanBold(String s)
      Cyan bold text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • whiteBold

      public static String whiteBold(String s)
      White bold text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • blackUnderlined

      public static String blackUnderlined(String s)
      Black underlined text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • redUnderlined

      public static String redUnderlined(String s)
      Red underlined text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • greenUnderlined

      public static String greenUnderlined(String s)
      Green underlined text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • yellowUnderlined

      public static String yellowUnderlined(String s)
      Yellow underlined text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • blueUnderlined

      public static String blueUnderlined(String s)
      Blue underlined text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • purpleUnderlined

      public static String purpleUnderlined(String s)
      Purple underlined text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • cyanUnderlined

      public static String cyanUnderlined(String s)
      Cyan underlined text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • whiteUnderlined

      public static String whiteUnderlined(String s)
      White underlined text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • blackBg

      public static String blackBg(String s)
      Black background.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • redBg

      public static String redBg(String s)
      Red background.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • greenBg

      public static String greenBg(String s)
      Green background.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • yellowBg

      public static String yellowBg(String s)
      Yellow background.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • blueBg

      public static String blueBg(String s)
      Blue background.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • purpleBg

      public static String purpleBg(String s)
      Purple background.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • cyanBg

      public static String cyanBg(String s)
      Cyan background.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • whiteBg

      public static String whiteBg(String s)
      White background.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • blackBright

      public static String blackBright(String s)
      Black bright text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • redBright

      public static String redBright(String s)
      Red bright text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • greenBright

      public static String greenBright(String s)
      Green bright text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • yellowBright

      public static String yellowBright(String s)
      Yellow bright text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • blueBright

      public static String blueBright(String s)
      Blue bright text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • purpleBright

      public static String purpleBright(String s)
      Purple bright text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • cyanBright

      public static String cyanBright(String s)
      Cyan bright text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • whiteBright

      public static String whiteBright(String s)
      White bright text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • blackBoldBright

      public static String blackBoldBright(String s)
      Black bold bright text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • redBoldBright

      public static String redBoldBright(String s)
      Red bold bright text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • greenBoldBright

      public static String greenBoldBright(String s)
      Green bold bright text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • yellowBoldBright

      public static String yellowBoldBright(String s)
      Yellow bold bright text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • blueBoldBright

      public static String blueBoldBright(String s)
      Blue bold bright text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • purpleBoldBright

      public static String purpleBoldBright(String s)
      Purple bold bright text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • cyanBoldBright

      public static String cyanBoldBright(String s)
      Cyan bold bright text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • whiteBoldBright

      public static String whiteBoldBright(String s)
      White bold bright text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • blackBackgroundBright

      public static String blackBackgroundBright(String s)
      Black bright background text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • redBackgroundBright

      public static String redBackgroundBright(String s)
      Red bright background text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • greenBackgroundBright

      public static String greenBackgroundBright(String s)
      Green bright background text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • yellowBackgroundBright

      public static String yellowBackgroundBright(String s)
      Yellow bright background text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • blueBackgroundBright

      public static String blueBackgroundBright(String s)
      Blue bright background text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • purpleBackgroundBright

      public static String purpleBackgroundBright(String s)
      Purple bright background text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • cyanBackgroundBright

      public static String cyanBackgroundBright(String s)
      Cyan bright background text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags
    • whiteBackgroundBright

      public static String whiteBackgroundBright(String s)
      White bright background text.
      Parameters:
      s - text
      Returns:
      text wrapped in color tags