Class WebColors

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,​int[]>

    @Deprecated
    public class WebColors
    extends java.util.HashMap<java.lang.String,​int[]>
    Deprecated.
    since 5.5.2
    This class is a HashMap that contains the names of colors as a key and the corresponding BaseColor as value. (Source: Wikipedia http://en.wikipedia.org/wiki/Web_colors )
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static WebColors NAMES
      Deprecated.
      HashMap containing all the names and corresponding color values.
      private static long serialVersionUID
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      WebColors()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      private static int getRGBChannelValue​(java.lang.String rgbChannel)
      Deprecated.
       
      static BaseColor getRGBColor​(java.lang.String name)
      Deprecated.
      Gives you a BaseColor based on a name.
      private static boolean missingHashColorFormat​(java.lang.String colStr)
      Deprecated.
      A web color string without the leading # will be 3 or 6 characters long and all those characters will be hex digits.
      • Methods inherited from class java.util.HashMap

        clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        equals, hashCode
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Deprecated.
        See Also:
        Constant Field Values
      • NAMES

        public static final WebColors NAMES
        Deprecated.
        HashMap containing all the names and corresponding color values.
    • Constructor Detail

      • WebColors

        public WebColors()
        Deprecated.
    • Method Detail

      • missingHashColorFormat

        private static boolean missingHashColorFormat​(java.lang.String colStr)
        Deprecated.
        A web color string without the leading # will be 3 or 6 characters long and all those characters will be hex digits. NOTE: colStr must be all lower case or the current hex letter test will fail.
        Parameters:
        colStr - A non-null, lower case string that might describe an RGB color in hex.
        Returns:
        Is this a web color hex string without the leading #?
        Since:
        5.0.6
      • getRGBColor

        public static BaseColor getRGBColor​(java.lang.String name)
        Deprecated.
        Gives you a BaseColor based on a name.
        Parameters:
        name - a name such as black, violet, cornflowerblue or #RGB or #RRGGBB or RGB or RRGGBB or rgb(R,G,B)
        Returns:
        the corresponding BaseColor object. Never returns null.
        Throws:
        java.lang.IllegalArgumentException - if the String isn't a know representation of a color.
      • getRGBChannelValue

        private static int getRGBChannelValue​(java.lang.String rgbChannel)
        Deprecated.