Package de.xima.fc.color
Class HsvTriplet
- java.lang.Object
 - 
- de.xima.fc.color.HsvTriplet
 
 
- 
- All Implemented Interfaces:
 Serializable
public final class HsvTriplet extends Object implements Serializable
Represents an HSV color triplet.- 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()intgetHsv()intgetHueInt()doublegetHueNorm()intgetSaturationInt()doublegetSaturationNorm()intgetValueInt()doublegetValueNorm()inthashCode()static HsvTripletof(double[] components)static HsvTripletof(double hue, double saturation, double value)static HsvTripletof(long hsv)static HsvTripletof(long hue, long saturation, long value)static HsvTripletof(String hexString)HsvTripletscaled(double scaleHue, double scaleSaturation, double scaleValue)RgbTriplettoRgbTriplet()StringtoString() 
 - 
 
- 
- 
Method Detail
- 
getHex
public String getHex()
 
- 
getHsv
public int getHsv()
 
- 
getHueInt
public int getHueInt()
 
- 
getHueNorm
public double getHueNorm()
 
- 
getSaturationInt
public int getSaturationInt()
 
- 
getSaturationNorm
public double getSaturationNorm()
 
- 
getValueInt
public int getValueInt()
 
- 
getValueNorm
public double getValueNorm()
 
- 
scaled
public HsvTriplet scaled(double scaleHue, double scaleSaturation, double scaleValue)
- Parameters:
 scaleHue- Scale for the hue value.scaleSaturation- Scale for the saturation value.scaleValue- Scale for the lightness value.- Returns:
 - Scales all components by the given factors.
 
 
- 
toRgbTriplet
public RgbTriplet toRgbTriplet()
 
- 
of
public static HsvTriplet of(double hue, double saturation, double value)
 
- 
of
public static HsvTriplet of(double[] components)
 
- 
of
public static HsvTriplet of(long hsv)
 
- 
of
public static HsvTriplet of(long hue, long saturation, long value)
 
- 
of
public static HsvTriplet of(String hexString)
 
 - 
 
 -