public class HSLColorImpl extends Object implements Serializable
| Constructor and Description |
|---|
HSLColorImpl(String function,
LexicalUnit lu)
Constructor that reads the values from the given
chain of LexicalUnits.
|
| Modifier and Type | Method and Description |
|---|---|
CSSValueImpl |
getAlpha() |
CSSValueImpl |
getHue() |
CSSValueImpl |
getLightness() |
CSSValueImpl |
getSaturation() |
void |
setAlpha(CSSValueImpl alpha)
Sets the alpha part to a new value.
|
void |
setHue(CSSValueImpl hue)
Sets the hue part to a new value.
|
void |
setLightness(CSSValueImpl lightness)
Sets the lightness part to a new value.
|
void |
setSaturation(CSSValueImpl saturation)
Sets the saturation part to a new value.
|
String |
toString() |
public HSLColorImpl(String function, LexicalUnit lu) throws DOMException
function - the name of the function; hsl or hslalu - the valuesDOMException - in case of errorpublic CSSValueImpl getHue()
public void setHue(CSSValueImpl hue)
hue - the new CSSPrimitiveValuepublic CSSValueImpl getSaturation()
public void setSaturation(CSSValueImpl saturation)
saturation - the new CSSPrimitiveValuepublic CSSValueImpl getLightness()
public void setLightness(CSSValueImpl lightness)
lightness - the new CSSPrimitiveValuepublic CSSValueImpl getAlpha()
public void setAlpha(CSSValueImpl alpha)
alpha - the new CSSPrimitiveValueCopyright © 2021. All rights reserved.