public class Color extends PrimitiveType<Integer>
value
Constructor and Description |
---|
Color(Integer value) |
Color(int r,
int g,
int b,
int a) |
Modifier and Type | Method and Description |
---|---|
int |
getAlpha()
Returns the alpha component of this color.
|
int |
getBlue()
Returns the blue component of this color.
|
int |
getGreen()
Returns the green component of this color.
|
int |
getRed()
Returns the red component of this color.
|
static Color |
valueOf(String s)
Returns an
Color object holding the value of
the specified string. |
equals, getValue, toString
public Color(Integer value)
public Color(int r, int g, int b, int a)
public static Color valueOf(String s)
Color
object holding the value of
the specified string.s
- The string to be parsed.public int getRed()
public int getGreen()
public int getBlue()
public int getAlpha()
Copyright © 2015 Open Microscopy Environment