se.datadosen.jalbum
Class JAlbumColor

java.lang.Object
  extended by se.datadosen.jalbum.JAlbumColor

public class JAlbumColor
extends java.lang.Object


Field Summary
static java.awt.Color albumButtonsBackground
           
static java.awt.Color albumHighlight
           
static java.awt.Color albumHover
           
static java.awt.Color rubberBand
           
 
Method Summary
static java.awt.Color blend(java.awt.Color c1, java.awt.Color c2)
           
static java.awt.Color darken(java.awt.Color c, int percent)
           
static int grayLevel(java.awt.Color c)
          Return a number between 0 and 255 that represents the weighted gray level of the passed color.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rubberBand

public static final java.awt.Color rubberBand

albumHighlight

public static final java.awt.Color albumHighlight

albumHover

public static final java.awt.Color albumHover

albumButtonsBackground

public static final java.awt.Color albumButtonsBackground
Method Detail

grayLevel

public static int grayLevel(java.awt.Color c)
Return a number between 0 and 255 that represents the weighted gray level of the passed color. The weights are 30%, 59% and 11% (natural eye)


darken

public static java.awt.Color darken(java.awt.Color c,
                                    int percent)

blend

public static java.awt.Color blend(java.awt.Color c1,
                                   java.awt.Color c2)