Class ColorUtils


  • public class ColorUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ColorUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int getGrayScale​(int rgb)  
      static int getGrayScale​(int red, int green, int blue)  
      static int getGrayScale​(java.awt.Color color)  
      static java.awt.Color getGrayScaleColor​(java.awt.Color color)  
      static java.awt.Color getGrayScaleColorReverse​(java.awt.Color color)  
      static java.awt.Color getReversed​(java.awt.Color color)  
      static java.awt.Color greyToColor​(java.awt.Color color, int grey)  
      static java.awt.Color reverseHsluv​(java.awt.Color color)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ColorUtils

        public ColorUtils()
    • Method Detail

      • getGrayScale

        public static int getGrayScale​(java.awt.Color color)
      • getGrayScale

        public static int getGrayScale​(int red,
                                       int green,
                                       int blue)
      • getGrayScale

        public static int getGrayScale​(int rgb)
      • getGrayScaleColor

        public static java.awt.Color getGrayScaleColor​(java.awt.Color color)
      • getGrayScaleColorReverse

        public static java.awt.Color getGrayScaleColorReverse​(java.awt.Color color)
      • reverseHsluv

        public static java.awt.Color reverseHsluv​(java.awt.Color color)
      • greyToColor

        public static java.awt.Color greyToColor​(java.awt.Color color,
                                                 int grey)
      • getReversed

        public static java.awt.Color getReversed​(java.awt.Color color)