JHotDraw 6.0b1

org.jhotdraw.util
Class ColorMap

java.lang.Object
  extended by org.jhotdraw.util.ColorMap

public class ColorMap
extends java.lang.Object

A map that is filled with some standard colors. The colors can be looked up by name or index.


Constructor Summary
ColorMap()
           
 
Method Summary
static java.awt.Color color(int index)
           
static java.awt.Color color(java.lang.String name)
           
static int colorIndex(java.awt.Color color)
           
static boolean isTransparent(java.awt.Color color)
           
static java.lang.String name(int index)
           
static int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorMap

public ColorMap()
Method Detail

size

public static int size()

color

public static java.awt.Color color(int index)

color

public static java.awt.Color color(java.lang.String name)

name

public static java.lang.String name(int index)

colorIndex

public static int colorIndex(java.awt.Color color)

isTransparent

public static boolean isTransparent(java.awt.Color color)

JHotDraw 6.0b1