public class Color_rgb_8 extends Entity<Color_rgb_8>
Modifier and Type | Field and Description |
---|---|
static Translet.Parser<Integer> |
_2HexDigits
Aux parser which accepts two hexadecimal digits, in upper or lower case.
|
protected short |
_blue
0..255, one byte value for the blue component.
|
protected short |
_green
0..255, one byte value for the green component.
|
protected short |
_red
0..255, one byte value for the red component.
|
static Color_rgb_8 |
aqua |
static Color_rgb_8 |
black
HTML color definition.
|
static Color_rgb_8 |
blue |
static EntityCatalog<Color_rgb_8> |
catalog
The catalog of all used colors.
|
static Color_rgb_8 |
fuchsia |
static Color_rgb_8 |
gray |
static Color_rgb_8 |
green |
static Color_rgb_8 |
lime |
static Color_rgb_8 |
maroon |
static Color_rgb_8 |
navy |
static Color_rgb_8 |
olive |
static Color_rgb_8 |
orange
New standard color name, introduces in css 2.1.
|
static Translet.Parser<Color_rgb_8> |
parse_3_decNumbers
Parser for an rgb value by three percent values, separated by comma.
|
static Translet.Parser<Color_rgb_8> |
parse_3_hexNumbers
Parser for six adjacent hex digits defining one color by r-g-b.
|
static Color_rgb_8 |
purple |
static Color_rgb_8 |
red |
static Color_rgb_8 |
silver |
static Color_rgb_8 |
teal |
static Color_rgb_8 |
white |
static Color_rgb_8 |
yellow |
documentations
Modifier and Type | Method and Description |
---|---|
String |
canonicalCode()
Returns a String which prints the values of r/g/b as two hexadecimal digits each.
|
protected static String |
canonicalCodeString(int r,
int g,
int b)
Returns a String which prints the values of r/g/b as two hexadecimal digits each.
|
static Color_rgb_8 |
define(int r,
int g,
int b,
Map<String,String> names)
Find the color value, iff not present, create it, and assign it to the given
MuLi names.
|
static Color_rgb_8 |
define(int r,
int g,
int b,
MuLi names)
Find the color value, iff not present, create it, and assign it to the given
MuLi names.
|
boolean |
equals(Object o2) |
static Color_rgb_8 |
find(int r,
int g,
int b)
Find the color value, iff not present, create it.
|
int |
get_b()
Evident
|
int |
get_g()
Evident
|
int |
get_r()
Evident
|
int |
hashCode() |
static void |
main(String[] args)
Test the different parser options.
|
static Translet.Parser<Color_rgb_8> |
parseHumanNames()
Get a parser only for the symbolic names, in the
catalog 's default language. |
static Translet.Parser<Color_rgb_8> |
parseHumanNames(String lang)
Get a parser only for the symbolic names, in the given language.
|
static Translet.Parser<Color_rgb_8> |
parser()
Returns a parser which accepts symbolic names in the
catalog
default language, or
three two-digit-hex values for r/g/b, or three comma separated
integer values (0..100, interpreted as percentage) for r/g/b. |
static Translet.Parser<Color_rgb_8> |
parser(String lang)
Returns a parser which accepts symbolic names in the given language, or
three two-digit-hex values for r/g/b, or three comma separated
integer values (0..100, interpreted as percentage) for r/g/b.
|
String |
toString()
Returns the catalog name in the default language of the corresponding
catalog , plus the r/g/b values as hexadecimal digits. |
String |
toString(String lang)
Returns the explicit name of the color, in the given language, followed by
the r/g/b values as hexadecimal digits, appended in parentheses.
|
addName, dump, dump, getCatalog, getDocumentation, getDocumentation, getDocumentations, getName, getName, getNames, getParser, getParser, setDocumentation, toString
protected short _red
protected short _green
protected short _blue
public static final EntityCatalog<Color_rgb_8> catalog
public static final Translet.Parser<Integer> _2HexDigits
public static Translet.Parser<Color_rgb_8> parse_3_hexNumbers
public static Translet.Parser<Color_rgb_8> parse_3_decNumbers
public static final Color_rgb_8 black
Many more ore definitions can be found in svg, see http://www.w3.org/TR/SVG11/types.html#ColorKeywords
public static final Color_rgb_8 gray
black
public static final Color_rgb_8 maroon
black
public static final Color_rgb_8 red
black
public static final Color_rgb_8 green
black
public static final Color_rgb_8 lime
black
public static final Color_rgb_8 olive
black
public static final Color_rgb_8 yellow
black
public static final Color_rgb_8 navy
black
public static final Color_rgb_8 blue
black
public static final Color_rgb_8 purple
black
public static final Color_rgb_8 fuchsia
black
public static final Color_rgb_8 teal
black
public static final Color_rgb_8 aqua
black
public static final Color_rgb_8 silver
black
public static final Color_rgb_8 white
black
public static final Color_rgb_8 orange
public String canonicalCode()
public int get_r()
public int get_g()
public int get_b()
protected static String canonicalCodeString(int r, int g, int b)
public static Color_rgb_8 find(int r, int g, int b)
catalog
, by the
canonicalCodeString(int,int,int)
of the components.public static Color_rgb_8 define(int r, int g, int b, Map<String,String> names)
public static Color_rgb_8 define(int r, int g, int b, MuLi names)
public String toString(String lang)
public String toString()
catalog
, plus the r/g/b values as hexadecimal digits.public static Translet.Parser<Color_rgb_8> parseHumanNames(String lang)
public static Translet.Parser<Color_rgb_8> parseHumanNames()
catalog
's default language.public static Translet.Parser<Color_rgb_8> parser(String lang)
public static Translet.Parser<Color_rgb_8> parser()
catalog
default language, or
three two-digit-hex values for r/g/b, or three comma separated
integer values (0..100, interpreted as percentage) for r/g/b.public static void main(String[] args)