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 boolean
equals(Object obj)
String
getHex()
int
getHsv()
int
getHueInt()
double
getHueNorm()
int
getSaturationInt()
double
getSaturationNorm()
int
getValueInt()
double
getValueNorm()
int
hashCode()
static HsvTriplet
of(double[] components)
static HsvTriplet
of(double hue, double saturation, double value)
static HsvTriplet
of(long hsv)
static HsvTriplet
of(long hue, long saturation, long value)
static HsvTriplet
of(String hexString)
HsvTriplet
scaled(double scaleHue, double scaleSaturation, double scaleValue)
RgbTriplet
toRgbTriplet()
String
toString()
-
-
-
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)
-
-