|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lessvoid.nifty.tools.Alpha
public class Alpha
Alpha helper class to manage alpha values.
| Field Summary | |
|---|---|
static Alpha |
FULL
|
static Alpha |
ZERO
|
| Constructor Summary | |
|---|---|
Alpha(float newAlpha)
|
|
Alpha(String color)
|
|
| Method Summary | |
|---|---|
float |
getAlpha()
get alpha value. |
Alpha |
linear(Alpha end,
float t)
linear interpolate between this color and the given color. |
Alpha |
mutiply(float factor)
Multiply all components with the given factor. |
void |
setAlpha(float newColorAlpha)
Set color alpha. |
String |
toString()
convert color to string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Alpha ZERO
public static final Alpha FULL
| Constructor Detail |
|---|
public Alpha(String color)
public Alpha(float newAlpha)
| Method Detail |
|---|
public Alpha linear(Alpha end,
float t)
end - end colort - t in [0,1]
public final float getAlpha()
public Alpha mutiply(float factor)
factor - factor to multiply
public String toString()
toString in class Objectpublic void setAlpha(float newColorAlpha)
newColorAlpha - new color alpha
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||