|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gatech.cs2335.lemmings.gui.LComponent
edu.gatech.cs2335.lemmings.gui.LLeafComponent
edu.gatech.cs2335.lemmings.gui.LColoredComponent
edu.gatech.cs2335.lemmings.gui.LFader
Class LFader: This little widget allows one to fade the screen to a certain color in different kinds of cool ways.
Revision History:
v1.0 (Apr. 15, 2004) - Created the LFader class
| Field Summary |
| Fields inherited from class edu.gatech.cs2335.lemmings.gui.LColoredComponent |
DEFAULT_BACKGROUND_COLOR, DEFAULT_FOREGROUND_COLOR |
| Constructor Summary | |
LFader()
Creates a new LFader instance. |
|
| Method Summary | |
protected void |
copy(LComponent component)
Deep-copies self into the component passed in. |
void |
fadeToForeground(long time)
Fades to foreground in the time specified. |
long |
getTimeRemaining()
Describe getTimeRemaining method here. |
boolean |
isFading()
Returns true if we are currently fading. |
protected boolean |
paint(java.awt.Graphics g)
Performs all of the necessary drawing for this control only. |
protected void |
resetFade()
Resets the fading to the original configuration. |
protected void |
update(float progress)
Updates the fading. |
| Methods inherited from class edu.gatech.cs2335.lemmings.gui.LColoredComponent |
getBackground, getForeground, setBackground, setBackground, setForeground, setForeground |
| Methods inherited from class edu.gatech.cs2335.lemmings.gui.LLeafComponent |
makeDirty, move, renderAll |
| Methods inherited from class edu.gatech.cs2335.lemmings.gui.LComponent |
bringToTop, cleanUp, getBounds, getParent, initialize, isActive, isComponentDirty, isShown, setBounds, setDirty, setParent, setPosition, setShown, setSize, setSize, updateDimensions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LFader()
LFader instance.
| Method Detail |
public void fadeToForeground(long time)
time - a long valuepublic boolean isFading()
boolean valuepublic long getTimeRemaining()
getTimeRemaining method here.
long valueprotected void update(float progress)
progress - the percent to completion.protected void resetFade()
protected void copy(LComponent component)
copy in class LComponentcomponent - a LComponent valueprotected boolean paint(java.awt.Graphics g)
paint in class LComponentg - a Graphics value
boolean value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||