Package ome.xml.model.primitives
Class Color
Primitive type that represents an RGBA color.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetAlpha()Returns the alpha component of this color.intgetBlue()Returns the blue component of this color.intgetGreen()Returns the green component of this color.intgetRed()Returns the red component of this color.static ColorReturns anColorobject holding the value of the specified string.Methods inherited from class ome.xml.model.primitives.PrimitiveType
equals, getValue, toString
-
Constructor Details
-
Color
-
Color
public Color(int r, int g, int b, int a)
-
-
Method Details
-
valueOf
Returns anColorobject holding the value of the specified string.- Parameters:
s- The string to be parsed.- Returns:
- See above.
-
getRed
public int getRed()Returns the red component of this color.- Returns:
- See above.
-
getGreen
public int getGreen()Returns the green component of this color.- Returns:
- See above.
-
getBlue
public int getBlue()Returns the blue component of this color.- Returns:
- See above.
-
getAlpha
public int getAlpha()Returns the alpha component of this color.- Returns:
- See above.
-