public class Color
extends java.lang.Object
| Constructor and Description |
|---|
Color(Color c) |
Color(java.awt.Color awtColor) |
Color(int red,
int green,
int blue) |
Color(int alfa,
int red,
int green,
int blue) |
Color(java.lang.String hex) |
| Modifier and Type | Method and Description |
|---|---|
static Color |
black() |
static Color |
blue() |
static Color |
copy(Color x) |
static Color |
cyan() |
static Color |
darkGray() |
boolean |
equals(java.lang.Object obj) |
int |
getAlfa() |
int |
getBlue() |
int |
getGreen() |
int |
getRed() |
static Color |
gray() |
static Color |
green() |
int |
hashCode() |
static Color |
lightGray() |
static Color |
magenta() |
static Color |
orange() |
static Color |
pink() |
static Color |
red() |
void |
setAlfa(int alfa) |
void |
setBlue(int blue) |
void |
setGreen(int green) |
void |
setRed(int red) |
java.lang.String |
str() |
java.lang.String |
strRGB() |
static Color |
white() |
static Color |
yellow() |
public Color(int alfa,
int red,
int green,
int blue)
public Color(int red,
int green,
int blue)
public Color(java.lang.String hex)
public Color(Color c)
public Color(java.awt.Color awtColor)
public java.lang.String str()
public java.lang.String strRGB()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int getAlfa()
public void setAlfa(int alfa)
public int getRed()
public void setRed(int red)
public int getGreen()
public void setGreen(int green)
public int getBlue()
public void setBlue(int blue)
public static final Color white()
public static final Color lightGray()
public static final Color gray()
public static final Color darkGray()
public static final Color black()
public static final Color red()
public static final Color pink()
public static final Color orange()
public static final Color yellow()
public static final Color green()
public static final Color magenta()
public static final Color cyan()
public static final Color blue()