Package de.xima.fc.color
Class HslUvTriplet
- java.lang.Object
 - 
- de.xima.fc.color.HslUvTriplet
 
 
- 
- All Implemented Interfaces:
 Serializable
public final class HslUvTriplet extends Object implements Serializable
Represents an HSLul color triplet, see https://www.hsluv.org/- Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetHex()intgetHsl()intgetHueInt()doublegetHueNorm()intgetLightnessInt()doublegetLightnessNorm()intgetSaturationInt()doublegetSaturationNorm()inthashCode()static HslUvTripletof(double[] components)static HslUvTripletof(double hue, double saturation, double value)static HslUvTripletof(long hsl)static HslUvTripletof(long hue, long saturation, long lightness)static HslUvTripletof(String hexString)HslUvTripletscaled(double scaleHue, double scaleSaturation, double scaleLightness)RgbTriplettoRgbTriplet()StringtoString()HslUvTripletwith(Double newHue, Double newSaturation, Double newLightness) 
 - 
 
- 
- 
Method Detail
- 
getHex
public String getHex()
 
- 
getHsl
public int getHsl()
 
- 
getHueInt
public int getHueInt()
 
- 
getHueNorm
public double getHueNorm()
 
- 
getLightnessInt
public int getLightnessInt()
 
- 
getLightnessNorm
public double getLightnessNorm()
 
- 
getSaturationInt
public int getSaturationInt()
 
- 
getSaturationNorm
public double getSaturationNorm()
 
- 
scaled
public HslUvTriplet scaled(double scaleHue, double scaleSaturation, double scaleLightness)
- Parameters:
 scaleHue- Scale for the hue value.scaleSaturation- Scale for the saturation value.scaleLightness- Scale for the lightness value.- Returns:
 - Scales all components by the given factors.
 
 
- 
with
public HslUvTriplet with(Double newHue, Double newSaturation, Double newLightness)
 
- 
toRgbTriplet
public RgbTriplet toRgbTriplet()
 
- 
of
public static HslUvTriplet of(double hue, double saturation, double value)
 
- 
of
public static HslUvTriplet of(double[] components)
 
- 
of
public static HslUvTriplet of(long hsl)
 
- 
of
public static HslUvTriplet of(long hue, long saturation, long lightness)
 
- 
of
public static HslUvTriplet of(String hexString)
 
 - 
 
 -