Class ColorHSB

  • All Implemented Interfaces:
    java.awt.Paint, java.awt.Transparency, java.io.Serializable

    public class ColorHSB
    extends java.awt.Color
    Color with hue, saturation and brightness.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.awt.Color

        black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOW
      • Fields inherited from interface java.awt.Transparency

        BITMASK, OPAQUE, TRANSLUCENT
    • Constructor Summary

      Constructors 
      Constructor Description
      ColorHSB​(int rgba)  
      ColorHSB​(java.awt.Color other)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float getBrightness()  
      float getHue()  
      float getSaturation()  
      java.lang.String toString()  
      • Methods inherited from class java.awt.Color

        brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ColorHSB

        public ColorHSB​(int rgba)
      • ColorHSB

        public ColorHSB​(java.awt.Color other)
    • Method Detail

      • getHue

        public float getHue()
      • getSaturation

        public float getSaturation()
      • getBrightness

        public float getBrightness()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.awt.Color