Java Color to HTML attemptHTML(String colour)

Here you can find the source of attemptHTML(String colour)

Description

attempt HTML

License

Apache License

Declaration

private static Color attemptHTML(String colour) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.awt.Color;
import java.util.HashMap;
import java.util.Map;

public class Main {
    private static Map<String, Color> htmlColours = new HashMap<String, Color>();

    private static Color attemptHTML(String colour) {
        return htmlColours.get(colour.toLowerCase());
    }//from   ww w.  j a  v  a 2s.c  o m
}

Related

  1. colourToHtmlString(Color colour)
  2. covertToHtmlColor(Color color)
  3. toHTMLColor(Color c)
  4. toHTMLColor(Color c)