gzz.util
Class ColorUtil

java.lang.Object
  |
  +--gzz.util.ColorUtil

public final class ColorUtil
extends java.lang.Object

Some color handling utilities.


Field Summary
static java.lang.String rcsid
           
 
Constructor Summary
ColorUtil()
           
 
Method Summary
static java.awt.Color avgColor(int[] colors)
          Get the average color of an array of colors.
static java.lang.String colorGLString(java.awt.Color c)
           
static java.awt.Color[] fadingColors_line(int n)
           
static java.awt.Color[] fadingColors_solid_darker(int n)
           
static java.awt.Color[] fadingColors_solid(int n)
           
static float[] getRGBColorComponents(java.awt.Color c, float[] f)
          Emulate Color.getRGBColorComponents for Java 1.1 (including Kaffe).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rcsid

public static final java.lang.String rcsid
See Also:
Constant Field Values
Constructor Detail

ColorUtil

public ColorUtil()
Method Detail

fadingColors_line

public static java.awt.Color[] fadingColors_line(int n)

fadingColors_solid

public static java.awt.Color[] fadingColors_solid(int n)

fadingColors_solid_darker

public static java.awt.Color[] fadingColors_solid_darker(int n)

getRGBColorComponents

public static float[] getRGBColorComponents(java.awt.Color c,
                                            float[] f)
Emulate Color.getRGBColorComponents for Java 1.1 (including Kaffe).


colorGLString

public static java.lang.String colorGLString(java.awt.Color c)

avgColor

public static java.awt.Color avgColor(int[] colors)
Get the average color of an array of colors.