Class CSSColorValue
- java.lang.Object
-
- java.awt.Color
-
- org.pentaho.reporting.libraries.css.values.CSSColorValue
-
- All Implemented Interfaces:
Paint
,Transparency
,Serializable
,CSSValue
public class CSSColorValue extends Color implements CSSValue
Creation-Date: 23.11.2005, 12:01:04- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Field Summary
-
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 CSSColorValue(float r, float g, float b)
CSSColorValue(float r, float g, float b, float a)
CSSColorValue(int rgba, boolean hasalpha)
CSSColorValue(int r, int g, int b)
CSSColorValue(int r, int g, int b, int a)
CSSColorValue(Color color)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Determines if this instance of the object is equals to another ObjectString
getCSSText()
CSSType
getType()
String
toString()
Returns a string representation of thisColor
.-
Methods inherited from class java.awt.Color
brighter, createContext, darker, decode, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB
-
-
-
-
Constructor Detail
-
CSSColorValue
public CSSColorValue(int r, int g, int b, int a)
-
CSSColorValue
public CSSColorValue(int rgba, boolean hasalpha)
-
CSSColorValue
public CSSColorValue(float r, float g, float b, float a)
-
CSSColorValue
public CSSColorValue(float r, float g, float b)
-
CSSColorValue
public CSSColorValue(int r, int g, int b)
-
CSSColorValue
public CSSColorValue(Color color)
-
-
Method Detail
-
getCSSText
public String getCSSText()
- Specified by:
getCSSText
in interfaceCSSValue
-
equals
public boolean equals(Object obj)
Determines if this instance of the object is equals to another Object
-
toString
public String toString()
Returns a string representation of thisColor
. This method is intended to be used only for debugging purposes. The content and format of the returned string might vary between implementations. The returned string might be empty but cannot benull
.
-
-