Package org.javlo.css
Class CssColor
- java.lang.Object
-
- java.awt.Color
-
- org.javlo.css.CssColor
-
- All Implemented Interfaces:
Paint
,Transparency
,Serializable
public class CssColor extends Color
awt color wrapper with toString return the CSS color.- Author:
- pvandermaesen
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static CssColor
CSSBLACK
static CssColor
CSSWHITE
-
Fields inherited from class java.awt.Color
black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOW
-
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
-
-
Constructor Summary
Constructors Constructor Description CssColor(float r, float g, float b)
CssColor(float r, float g, float b, float a)
CssColor(int rgb)
CssColor(int rgba, boolean hasalpha)
CssColor(int r, int g, int b)
CssColor(int r, int g, int b, int a)
CssColor(ColorSpace cspace, float[] components, float alpha)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CssColor
getInstance(Color color)
CssColor
getTextColor()
String
toString()
-
Methods inherited from class java.awt.Color
brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB
-
-
-
-
Constructor Detail
-
CssColor
public CssColor(int rgb)
-
CssColor
public CssColor(int rgba, boolean hasalpha)
-
CssColor
public CssColor(int r, int g, int b)
-
CssColor
public CssColor(float r, float g, float b)
-
CssColor
public CssColor(ColorSpace cspace, float[] components, float alpha)
-
CssColor
public CssColor(int r, int g, int b, int a)
-
CssColor
public CssColor(float r, float g, float b, float a)
-
-