Class Color

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

    public class Color
    extends java.awt.Color
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Color​(int rgb)  
      protected Color​(java.awt.Color other)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Color of​(int rgb)  
      static Color of​(java.awt.Color color)  
      static Color of​(java.lang.String colorName)  
      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
    • Field Detail

      • NULL

        public static final Color NULL
      • WHITE

        public static final Color WHITE
      • LIGHT_GRAY

        public static final Color LIGHT_GRAY
      • GRAY

        public static final Color GRAY
      • DARK_GRAY

        public static final Color DARK_GRAY
      • BLACK

        public static final Color BLACK
      • RED

        public static final Color RED
      • PINK

        public static final Color PINK
      • ORANGE

        public static final Color ORANGE
      • YELLOW

        public static final Color YELLOW
      • GREEN

        public static final Color GREEN
      • MAGENTA

        public static final Color MAGENTA
      • CYAN

        public static final Color CYAN
      • BLUE

        public static final Color BLUE
    • Constructor Detail

      • Color

        protected Color​(java.awt.Color other)
      • Color

        protected Color​(int rgb)
    • Method Detail

      • of

        public static Color of​(java.awt.Color color)
      • of

        public static Color of​(int rgb)
      • of

        public static Color of​(java.lang.String colorName)
      • toString

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