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:
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • 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()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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)