Class RGBA


  • public class RGBA
    extends java.lang.Object
    A structure holding an RGBA color
    • Constructor Summary

      Constructors 
      Constructor Description
      RGBA()  
    • Method Summary

      Modifier and Type Method Description
      java.lang.Double getA()
      The alpha component, in the [0-1] range (default: 1).
      java.lang.Integer getB()
      The blue component, in the [0-255] range.
      java.lang.Integer getG()
      The green component, in the [0-255] range.
      java.lang.Integer getR()
      The red component, in the [0-255] range.
      void setA​(java.lang.Double a)
      The alpha component, in the [0-1] range (default: 1).
      void setB​(java.lang.Integer b)
      The blue component, in the [0-255] range.
      void setG​(java.lang.Integer g)
      The green component, in the [0-255] range.
      void setR​(java.lang.Integer r)
      The red component, in the [0-255] range.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RGBA

        public RGBA()
    • Method Detail

      • getR

        public java.lang.Integer getR()
        The red component, in the [0-255] range.
      • setR

        public void setR​(java.lang.Integer r)
        The red component, in the [0-255] range.
      • getG

        public java.lang.Integer getG()
        The green component, in the [0-255] range.
      • setG

        public void setG​(java.lang.Integer g)
        The green component, in the [0-255] range.
      • getB

        public java.lang.Integer getB()
        The blue component, in the [0-255] range.
      • setB

        public void setB​(java.lang.Integer b)
        The blue component, in the [0-255] range.
      • getA

        public java.lang.Double getA()
        The alpha component, in the [0-1] range (default: 1).
      • setA

        public void setA​(java.lang.Double a)
        The alpha component, in the [0-1] range (default: 1).