|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.swing.util.ColorUtil
public class ColorUtil
A utility class for dealing with instances of Color
.
Method Summary | |
---|---|
static int |
getDefaultAlpha()
Returns the default alpha value used for making colors transparent. |
static java.awt.Color |
makeTransparent(java.awt.Color color)
Converts the given color into a transparent color with the same red, green, blue values. |
static java.awt.Color |
makeTransparent(java.awt.Color color,
int alpha)
Converts the given color into a transparent color with the same red, green, blue values. |
static void |
setDefaultAlpha(int alpha)
Sets the default alpha value used for making colors transparent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.awt.Color makeTransparent(java.awt.Color color)
makeTransparent(Color, int)
and uses the default alpha value.
color
- the now transparent copy of the passed in color
setDefaultAlpha(int)
public static java.awt.Color makeTransparent(java.awt.Color color, int alpha)
color
- the now transparent copy of the passed in coloralpha
- the alpha value that will be used for the new color
public static int getDefaultAlpha()
makeTransparent(Color)
public static void setDefaultAlpha(int alpha)
alpha
- the default alpha value ([0, 255])makeTransparent(Color)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |