Class ColorUtils


  • public class ColorUtils
    extends java.lang.Object
    Defines a color with some utility methods.
    Author:
    robert.ladstaetter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BLACK  
    • Constructor Summary

      Constructors 
      Constructor Description
      ColorUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String colorToString​(java.awt.Color col)  
      static java.awt.Color createColor​(java.awt.Color color, int alpha)  
      static java.awt.Color stringToColor​(java.lang.String str)  
      • 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

      • colorToString

        public static java.lang.String colorToString​(java.awt.Color col)
      • stringToColor

        public static java.awt.Color stringToColor​(java.lang.String str)
      • createColor

        public static java.awt.Color createColor​(java.awt.Color color,
                                                 int alpha)