public class Color extends Object
bg, u(), b() etc)
e.g. for a blue background and a bold, white foreground you would use:
new Color("some important message").b().white().bg().blue();| Modifier and Type | Method and Description |
|---|---|
String |
apply(String msg) |
Color |
b() |
Color |
bg() |
Color |
black() |
Color |
blue() |
static Color |
colorFor(String categoryName)
Creates a color, with a specific appender name.
|
Color |
cyan() |
String |
getMsg() |
Color |
green() |
Color |
i() |
Color |
majenta() |
static Color |
make(String msg)
Creates a color instance with a given message.
|
Color |
red() |
String |
toString() |
Color |
u() |
Color |
white() |
Color |
yellow() |
public static Color colorFor(String categoryName)
categoryName - the name of the category for this color.public static Color make(String msg)
msg - the message to use when formatting this color. NB: this may be overwritten by apply(java.lang.String)public Color b()
public Color i()
public Color u()
public Color black()
public Color yellow()
public Color blue()
public Color majenta()
public Color cyan()
public Color white()
public Color red()
public Color green()
public Color bg()
public String getMsg()
Copyright © 2024 OpenClover.org. All rights reserved.