java.lang.Object
org.htmlunit.html.impl.Color
Our own implementation of color to be
independent of awt (for this).
- Author:
- Ronald Brill
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Color
public Color(int red, int green, int blue) Ctor (using an alpha of 255).- Parameters:
red- the red partgreen- the green partblue- the blue part
-
Color
public Color(int red, int green, int blue, int alpha) Ctor.- Parameters:
red- the red partgreen- the green partblue- the blue partalpha- the alpha part
-
-
Method Details
-
getRed
public int getRed()- Returns:
- the red part
-
getGreen
public int getGreen()- Returns:
- the green part
-
getBlue
public int getBlue()- Returns:
- the blue part
-
getAlpha
public int getAlpha()- Returns:
- the alpha part
-
hashCode
public int hashCode() -
equals
-