Class CSSColorValue
- java.lang.Object
-
- java.awt.Color
-
- org.jfree.layouting.input.style.values.CSSColorValue
-
- All Implemented Interfaces:
java.awt.Paint
,java.awt.Transparency
,java.io.Serializable
,CSSValue
public class CSSColorValue extends java.awt.Color implements CSSValue
Creation-Date: 23.11.2005, 12:01:04- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
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(java.awt.Color color)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCSSText()
java.lang.String
toString()
Returns a string representation of thisColor
.-
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
-
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(java.awt.Color color)
-
-
Method Detail
-
getCSSText
public java.lang.String getCSSText()
- Specified by:
getCSSText
in interfaceCSSValue
-
toString
public java.lang.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
.- Overrides:
toString
in classjava.awt.Color
- Returns:
- a string representation of this
Color
.
-
-