| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgui.run.ColorUtils
public class ColorUtils
| Constructor Summary | |
|---|---|
| ColorUtils() | |
| Method Summary | |
|---|---|
| static java.lang.String | getColorHexString(java.awt.Color c) | 
| static java.awt.Color | removeAlpha(java.awt.Color color)Returns a new color equal to the old one, except that there is no alpha channel (transparency). | 
| static java.awt.Color | setAlpha(java.awt.Color col,
         int alpha)Modifies the passed in color by setting a new alpha channel (transparency) and returns the new color. | 
| static java.awt.Color | setBrightness(java.awt.Color color,
              float brightness)Modifies the passed in color by changing it's brightness using HSB calculations. | 
| static java.lang.String | toHexString(java.awt.Color color)Produces a String representing the passed in color as a hex value (including the #) suitable for use in html. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ColorUtils()
| Method Detail | 
|---|
public static java.lang.String getColorHexString(java.awt.Color c)
public static java.lang.String toHexString(java.awt.Color color)
color - the color to convert
public static java.awt.Color removeAlpha(java.awt.Color color)
color - the color to remove the alpha (transparency) from
public static java.awt.Color setAlpha(java.awt.Color col,
                                      int alpha)
col - the color to modifyalpha - the new alpha (transparency) level. Must be an int between 0 and 255
public static java.awt.Color setBrightness(java.awt.Color color,
                                           float brightness)
color - the color to modifybrightness - the brightness to use in the new color
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||