org.corpstein.image
Class Palette

java.lang.Object
  extended by org.corpstein.image.Palette

public class Palette
extends java.lang.Object

Version:
$Revision: 1.2 $ $Date: 2005/04/24 20:54:57 $
Author:
David Corpstein

Method Summary
static java.awt.Color blend(java.awt.Color color1, java.awt.Color color2)
           
static java.awt.Color blend(java.awt.GradientPaint paint)
           
static java.awt.Color brighten(java.awt.Color color)
           
static java.awt.Color brighten(java.awt.Color color, int levels)
           
static java.awt.Color brighten(java.awt.Paint paint)
           
static java.awt.Color brighten(java.awt.Paint paint, int levels)
           
static java.awt.Color darken(java.awt.Color color)
           
static java.awt.Color darken(java.awt.Color color, int levels)
           
static java.awt.Color darken(java.awt.Paint paint)
           
static java.awt.Color darken(java.awt.Paint paint, int levels)
           
static java.awt.Paint setAlpha(java.awt.Paint paint, float alpha)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

blend

public static java.awt.Color blend(java.awt.Color color1,
                                   java.awt.Color color2)

blend

public static java.awt.Color blend(java.awt.GradientPaint paint)

brighten

public static java.awt.Color brighten(java.awt.Color color)

brighten

public static java.awt.Color brighten(java.awt.Paint paint)

brighten

public static java.awt.Color brighten(java.awt.Color color,
                                      int levels)

brighten

public static java.awt.Color brighten(java.awt.Paint paint,
                                      int levels)

darken

public static java.awt.Color darken(java.awt.Color color)

darken

public static java.awt.Color darken(java.awt.Paint paint)

darken

public static java.awt.Color darken(java.awt.Color color,
                                    int levels)

darken

public static java.awt.Color darken(java.awt.Paint paint,
                                    int levels)

setAlpha

public static java.awt.Paint setAlpha(java.awt.Paint paint,
                                      float alpha)


Last update: 20050424 1651