Class Color

java.lang.Object
org.htmlunit.html.impl.Color

public class Color extends Object
Our own implementation of color to be independent of awt (for this).
  • Field Details

    • red_

      private final int red_
    • green_

      private final int green_
    • blue_

      private final int blue_
    • alpha_

      private final int alpha_
  • Constructor Details

    • Color

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

      public Color(int red, int green, int blue, int alpha)
  • Method Details

    • getRed

      public int getRed()
    • getGreen

      public int getGreen()
    • getBlue

      public int getBlue()
    • getAlpha

      public int getAlpha()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object