|
||||||||||
| 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.LIcon
Class LIcon: This class will display an image.
Revision History:
v1.0 (Mar. 14, 2004) - Created the LIcon class
| Constructor Summary | |
LIcon()
Creates a new LIcon instance. |
|
LIcon(TileSet set)
Creates a new LIcon instance. |
|
| Method Summary | |
protected void |
copy(LComponent component)
Deep-copies self into the component passed in. |
AnimatedSprite |
getAnimation()
Returns the animation associated with this icon. |
Looping |
getLoopingMode()
Returns the looping mode used by this animation. |
protected boolean |
paint(java.awt.Graphics g)
Performs all of the necessary drawing for this control only. |
void |
setAnimation(AnimatedSprite newSprite)
Sets up a new icon image. |
void |
setLoopingMode(Looping mode)
Sets up a new looping mode for this icon. |
| 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 LIcon()
LIcon instance.
public LIcon(TileSet set)
LIcon instance.
set - set| Method Detail |
public AnimatedSprite getAnimation()
AnimatedSprite valuepublic void setAnimation(AnimatedSprite newSprite)
newSprite - an AnimatedSprite valuepublic Looping getLoopingMode()
Looping valuepublic void setLoopingMode(Looping mode)
mode - a Looping valueprotected 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 | |||||||||