com.groupdocs.search.options

Class Color



  • public class Color
    extends Object

    Represents an ARGB (alpha, red, green, blue) color.

    • Constructor Summary

      Constructors 
      Constructor and Description
      Color(int red, int green, int blue)
      Initializes a new instance of the Color class.
      Color(int alpha, int red, int green, int blue)
      Initializes a new instance of the Color class.
    • Constructor Detail

      • Color

        public Color(int alpha,
             int red,
             int green,
             int blue)

        Initializes a new instance of the Color class.

        Parameters:
        alpha - The alpha component from 0 to 255.
        red - The red component from 0 to 255.
        green - The green component from 0 to 255.
        blue - The blue component from 0 to 255.
      • Color

        public Color(int red,
             int green,
             int blue)

        Initializes a new instance of the Color class.

        Parameters:
        red - The red component from 0 to 255.
        green - The green component from 0 to 255.
        blue - The blue component from 0 to 255.
    • Method Detail

      • getAlpha

        public final int getAlpha()

        Gets the alpha component value of this instance.

        Returns:
        The alpha component value of this instance.
      • getRed

        public final int getRed()

        Gets the red component value of this instance.

        Returns:
        The red component value of this instance.
      • getGreen

        public final int getGreen()

        Gets the green component value of this instance.

        Returns:
        The green component value of this instance.
      • getBlue

        public final int getBlue()

        Gets the blue component value of this instance.

        Returns:
        The blue component value of this instance.
      • toString

        public String toString()

        Returns a String that represents the current Color.

        Overrides:
        toString in class Object
        Returns:
        A String that represents the current Color.