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.
  • Constructor Summary

    Constructors 
    Constructor Description
    Color​(int r, int g, int b, int a)  
    Color​(java.lang.Integer value)  
  • Method Summary

    Modifier and Type Method 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​(java.lang.String s)
    Returns an Color object holding the value of the specified string.

    Methods inherited from class ome.xml.model.primitives.PrimitiveType

    equals, getValue, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Color

      public Color​(java.lang.Integer value)
    • Color

      public Color​(int r, int g, int b, int a)
  • Method Details

    • valueOf

      public static Color valueOf​(java.lang.String s)
      Returns an Color object 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.