|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Color
com.planeth.common.gfx.color.PhColor
com.planeth.common.gfx.color.AbstractChangingPhColor
com.planeth.common.gfx.color.FlickeringPhColor
Self changing color with flicker effect.
| Field Summary | |
static int |
NO_RESTART_TIME
|
| Fields inherited from class java.awt.Color |
black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOW |
| Fields inherited from interface java.awt.Transparency |
BITMASK, OPAQUE, TRANSLUCENT |
| Constructor Summary | |
FlickeringPhColor(java.awt.Color color1,
java.awt.Color color2)
Constructor for FlickeringPhColor. |
|
FlickeringPhColor(java.awt.Color color1,
java.awt.Color color2,
int flickerTime)
Constructor for FlickeringPhColor. |
|
FlickeringPhColor(java.awt.Color color1,
java.awt.Color color2,
int flickerTime,
int flickerRestartTime)
Constructor for FlickeringPhColor. |
|
| Method Summary | |
void |
change()
Does the color change. |
java.awt.Color |
getColor1()
|
java.awt.Color |
getColor2()
|
void |
pause(boolean pauseState)
Pauses the ITimeControllable |
void |
setColor1(java.awt.Color color1)
|
void |
setColor2(java.awt.Color color2)
|
void |
setFlickerTime(int flickerTime)
Sets the main flicker interval |
void |
setFlickerTime(int flickerTime,
int flickerRestartTime)
sets the main flicker interval and the pause and restart time. |
| Methods inherited from class com.planeth.common.gfx.color.AbstractChangingPhColor |
brighter, createContext, darker, equals, getAlpha, getBlue, getCol, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getRealTimeControl, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, setCol |
| Methods inherited from class java.awt.Color |
decode, getColor, getColor, getColor, getHSBColor, hashCode, HSBtoRGB, RGBtoHSB, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NO_RESTART_TIME
| Constructor Detail |
public FlickeringPhColor(java.awt.Color color1,
java.awt.Color color2)
color1 - the first color of the flicker effectcolor2 - the second color of the flicker effect
public FlickeringPhColor(java.awt.Color color1,
java.awt.Color color2,
int flickerTime)
color1 - the first color of the flicker effectcolor2 - the second color of the flicker effectflickerTime - the baseTime for the flicker interval
public FlickeringPhColor(java.awt.Color color1,
java.awt.Color color2,
int flickerTime,
int flickerRestartTime)
color1 - the first color of the flicker effectcolor2 - the second color of the flicker effectflickerTime - the time for the main flicker intervalflickerRestartTime - the time for the "pause and restart flickering" interval| Method Detail |
public void pause(boolean pauseState)
ITimeControllable
pause in interface ITimeControllablepauseState - ITimeControllable.pause(boolean)public void change()
AbstractChangingPhColor
change in class AbstractChangingPhColorAbstractChangingPhColor.change()public void setFlickerTime(int flickerTime)
flickerTime -
public void setFlickerTime(int flickerTime,
int flickerRestartTime)
flickerTime - flickerRestartTime - public java.awt.Color getColor1()
public void setColor1(java.awt.Color color1)
color1 - The color1 to set.public java.awt.Color getColor2()
public void setColor2(java.awt.Color color2)
color2 - The color2 to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||