public class RGBColorImpl extends Object implements org.w3c.dom.css.RGBColor, CSSFormatable, Serializable
RGBColor.| Constructor and Description |
|---|
RGBColorImpl()
Constructor.
|
RGBColorImpl(LexicalUnit lu)
Constructor that reads the values from the given
chain of LexicalUnits.
|
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.css.CSSPrimitiveValue |
getBlue()
Returns the blue part.
|
String |
getCssText()
Same as
getCssText(CSSFormat) but using the default format. |
String |
getCssText(CSSFormat format)
Returns a string representation of the rule based on the given format.
|
org.w3c.dom.css.CSSPrimitiveValue |
getGreen()
Returns the green part.
|
org.w3c.dom.css.CSSPrimitiveValue |
getRed()
Returns the red part.
|
void |
setBlue(org.w3c.dom.css.CSSPrimitiveValue blue)
Sets the blue part to a new value.
|
void |
setGreen(org.w3c.dom.css.CSSPrimitiveValue green)
Sets the green part to a new value.
|
void |
setRed(org.w3c.dom.css.CSSPrimitiveValue red)
Sets the red part to a new value.
|
String |
toString() |
public RGBColorImpl(LexicalUnit lu) throws DOMException
lu - the valuesDOMException - in case of errorpublic RGBColorImpl()
public org.w3c.dom.css.CSSPrimitiveValue getRed()
getRed in interface org.w3c.dom.css.RGBColorpublic void setRed(org.w3c.dom.css.CSSPrimitiveValue red)
red - the new CSSPrimitiveValuepublic org.w3c.dom.css.CSSPrimitiveValue getGreen()
getGreen in interface org.w3c.dom.css.RGBColorpublic void setGreen(org.w3c.dom.css.CSSPrimitiveValue green)
green - the new CSSPrimitiveValuepublic org.w3c.dom.css.CSSPrimitiveValue getBlue()
getBlue in interface org.w3c.dom.css.RGBColorpublic void setBlue(org.w3c.dom.css.CSSPrimitiveValue blue)
blue - the new CSSPrimitiveValuepublic String getCssText()
getCssText(CSSFormat) but using the default format.public String getCssText(CSSFormat format)
getCssText in interface CSSFormatableformat - the formatting rulesCopyright © 1999–2022. All rights reserved.