Applicet Framework for Applets and Applications v2.03

be.arci.pub
Class ColorParameter

java.lang.Object
  |
  +--be.arci.pub.ColorParameter

public class ColorParameter
extends java.lang.Object

Convenience class that contains one single method to decode Applicet and JApplicet parameter Strings to a Color value, which is quite commonly required (some IDE code generators even put such a method by default into your applet's java code).

We supply this class as a free service to all Applicet users. You are allowed to modify this source code, provided you move the class out of the be.arci package hierarchy.

Since:
05/feb/2000

Method Summary
static java.awt.Color getColor(java.lang.String sColor)
          Convenience method to convert an HTML-style hexadimal "RRGGBB" or "#RRGGBB" color number or one of the predefined Color names (case-insensitive) to an awt.Color object, or null if no color is matched.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getColor

public static java.awt.Color getColor(java.lang.String sColor)
Convenience method to convert an HTML-style hexadimal "RRGGBB" or "#RRGGBB" color number or one of the predefined Color names (case-insensitive) to an awt.Color object, or null if no color is matched. The predefined Color names are

Parameters:
sColor - The color name or number. May be null or an empty String.

Applicet Framework for Applets and Applications v2.03