Package ome.xml.model.primitives
Class Color
- java.lang.Object
-
- ome.xml.model.primitives.PrimitiveType<java.lang.Integer>
-
- ome.xml.model.primitives.Color
-
public class Color extends PrimitiveType<java.lang.Integer>
Primitive type that represents an RGBA color.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAlpha()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 ColorvalueOf(java.lang.String s)Returns anColorobject holding the value of the specified string.-
Methods inherited from class ome.xml.model.primitives.PrimitiveType
equals, getValue, toString
-
-
-
-
Method Detail
-
valueOf
public static Color valueOf(java.lang.String s)
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.
-
-