public class MarvinColor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static MarvinColor |
BLACK |
int |
blue |
static MarvinColor |
BLUE |
static MarvinColor |
BROWN |
static MarvinColor |
DARK_BLUE |
static MarvinColor |
DARK_BROWN |
static MarvinColor |
DARK_GRAY |
static MarvinColor |
DARK_GREEN |
static MarvinColor |
DARK_RED |
static MarvinColor |
DARK_YELLOW |
static MarvinColor |
GRAY |
int |
green |
static MarvinColor |
GREEN |
int |
id |
static MarvinColor |
LIGHT_BLUE |
static MarvinColor |
LIGHT_GRAY |
static MarvinColor |
LIGHT_GREEN |
static MarvinColor |
LIGHT_ORANGE |
static MarvinColor |
LIGHT_RED |
static MarvinColor |
LIGHT_YELLOW |
java.lang.String |
name |
static MarvinColor |
ORANGE |
int |
red |
static MarvinColor |
RED |
static MarvinColor |
WHITE |
static MarvinColor |
YELLOW |
Constructor and Description |
---|
MarvinColor(int r,
int g,
int b)
Constructor for developer created colors
|
MarvinColor(int id,
java.lang.String name,
int r,
int g,
int b)
Constructor for predefined colors
|
Modifier and Type | Method and Description |
---|---|
static MarvinColor |
getColorById(java.lang.Integer id) |
static MarvinColor |
getColorByName(java.lang.String name) |
public int id
public java.lang.String name
public int red
public int green
public int blue
public static MarvinColor BLACK
public static MarvinColor WHITE
public static MarvinColor DARK_GRAY
public static MarvinColor GRAY
public static MarvinColor LIGHT_GRAY
public static MarvinColor DARK_RED
public static MarvinColor RED
public static MarvinColor LIGHT_RED
public static MarvinColor DARK_GREEN
public static MarvinColor GREEN
public static MarvinColor LIGHT_GREEN
public static MarvinColor DARK_BLUE
public static MarvinColor BLUE
public static MarvinColor LIGHT_BLUE
public static MarvinColor ORANGE
public static MarvinColor LIGHT_ORANGE
public static MarvinColor DARK_BROWN
public static MarvinColor BROWN
public static MarvinColor DARK_YELLOW
public static MarvinColor YELLOW
public static MarvinColor LIGHT_YELLOW
public MarvinColor(int r, int g, int b)
r
- g
- b
- public MarvinColor(int id, java.lang.String name, int r, int g, int b)
id
- name
- r
- g
- b
- public static MarvinColor getColorById(java.lang.Integer id)
public static MarvinColor getColorByName(java.lang.String name)