@NotThreadSafe public class CSSHSLA extends Object implements ICSSWriteable, ICSSVersionAware, ICSSColor, com.helger.commons.lang.ICloneable<CSSHSLA>
| Constructor and Description |
|---|
CSSHSLA(CSSHSLA aOther)
Copy constructor
|
CSSHSLA(CSSHSL aOther,
float fOpacity)
Constructor
|
CSSHSLA(CSSHSL aOther,
String sOpacity)
Constructor
|
CSSHSLA(float fHue,
float fSaturation,
float fLightness,
float fOpacity)
Constructor
|
CSSHSLA(int nHue,
int nSaturation,
int nLightness,
float fOpacity)
Constructor
|
CSSHSLA(String sHue,
String sSaturation,
String sLightness,
String sOpacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getAsCSSString(ICSSWriterSettings aSettings,
int nIndentLevel)
Get the contents of this object as a serialized CSS string for writing to
an output.
|
CSSHSL |
getAsHSL() |
String |
getAsString() |
CSSHSLA |
getClone() |
String |
getHue() |
String |
getLightness() |
ECSSVersion |
getMinimumCSSVersion() |
String |
getOpacity() |
String |
getSaturation() |
int |
hashCode() |
CSSHSLA |
setHue(String sHue) |
CSSHSLA |
setLightness(String sLightness) |
CSSHSLA |
setOpacity(String sOpacity) |
CSSHSLA |
setSaturation(String sSaturation) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsCSSString, getAsCSSStringpublic CSSHSLA(@Nonnull CSSHSLA aOther)
aOther - The object to copy the data from. May not be null.public CSSHSLA(@Nonnull CSSHSL aOther, float fOpacity)
aOther - The HSL value to use as the basis. May not be null.fOpacity - Opacity part. Is fitted to a value between 0 and 1.public CSSHSLA(@Nonnull CSSHSL aOther, @Nonnull @Nonempty String sOpacity)
aOther - The HSL value to use as the basis. May not be null.sOpacity - Opacity part. May neither be null nor empty.public CSSHSLA(int nHue,
int nSaturation,
int nLightness,
float fOpacity)
nHue - Hue value. Is scaled to the range 0-360nSaturation - Saturation value. Is cut to the range 0-100 (percentage)nLightness - Lightness value. Is cut to the range 0-100 (percentage)fOpacity - Opacity - is scaled to 0-1public CSSHSLA(float fHue,
float fSaturation,
float fLightness,
float fOpacity)
fHue - Hue value. Is scaled to the range 0-360fSaturation - Saturation value. Is cut to the range 0-100 (percentage)fLightness - Lightness value. Is cut to the range 0-100 (percentage)fOpacity - Opacity - is scaled to 0-1@Nonnull public CSSHSL getAsHSL()
null.@Nonnull @Nonempty public String getAsString()
getAsString in interface ICSSColor@Nonnull @Nonempty public String getAsCSSString(@Nonnull ICSSWriterSettings aSettings, @Nonnegative int nIndentLevel)
ICSSWriteablegetAsCSSString in interface ICSSWriteableaSettings - The settings to be used to format the output. May not be
null.nIndentLevel - The current indentation levelnull.@Nonnull public ECSSVersion getMinimumCSSVersion()
getMinimumCSSVersion in interface ICSSVersionAwarenull.@Nonnull public CSSHSLA getClone()
getClone in interface com.helger.commons.lang.ICloneable<CSSHSLA>Copyright © 2014–2022 Philip Helger. All rights reserved.