org.jscience.util
Class NamedColors

java.lang.Object
  extended by org.jscience.util.NamedColors

public final class NamedColors
extends java.lang.Object

A class representing javascript and netscape colors.


Constructor Summary
NamedColors()
          Creates a new NamedColors object.
 
Method Summary
static java.awt.Color getColor(java.lang.String name)
          DOCUMENT ME!
 boolean isNetscapeColor(java.awt.Color color)
          DOCUMENT ME!
 boolean isNetscapeColor(int r, int g, int b)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedColors

public NamedColors()
Creates a new NamedColors object.

Method Detail

getColor

public static java.awt.Color getColor(java.lang.String name)
DOCUMENT ME!

Parameters:
name - DOCUMENT ME!
Returns:
DOCUMENT ME!

isNetscapeColor

public boolean isNetscapeColor(java.awt.Color color)
DOCUMENT ME!

Parameters:
color - DOCUMENT ME!
Returns:
DOCUMENT ME!

isNetscapeColor

public boolean isNetscapeColor(int r,
                               int g,
                               int b)
DOCUMENT ME!

Parameters:
r - DOCUMENT ME!
g - DOCUMENT ME!
b - DOCUMENT ME!
Returns:
DOCUMENT ME!