public class RGBColorImpl extends Object implements Serializable
| Constructor and Description |
|---|
RGBColorImpl(LexicalUnit lu)
Constructor that reads the values from the given
chain of LexicalUnits.
|
| Modifier and Type | Method and Description |
|---|---|
CSSValueImpl |
getBlue() |
CSSValueImpl |
getGreen() |
CSSValueImpl |
getRed() |
void |
setBlue(CSSValueImpl blue)
Sets the blue part to a new value.
|
void |
setGreen(CSSValueImpl green)
Sets the green part to a new value.
|
void |
setRed(CSSValueImpl red)
Sets the red part to a new value.
|
String |
toString() |
public RGBColorImpl(LexicalUnit lu) throws DOMException
lu - the valuesDOMException - in case of errorpublic CSSValueImpl getRed()
public void setRed(CSSValueImpl red)
red - the new CSSPrimitiveValuepublic CSSValueImpl getGreen()
public void setGreen(CSSValueImpl green)
green - the new CSSPrimitiveValuepublic CSSValueImpl getBlue()
public void setBlue(CSSValueImpl blue)
blue - the new CSSPrimitiveValueCopyright © 2019. All rights reserved.