|
||||||||||
| 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.LAbstractButton
edu.gatech.cs2335.lemmings.gui.LevelButton
Class LevelButton: This is essentially the button that shows the name of the level, it's thumbnail, and some statistics.
Revision History:
v1.0 (Mar. 29, 2004) - Created the LevelButton class
| Constructor Summary | |
LevelButton(java.lang.String levelName)
Creates a new LevelButton instance. |
|
| Method Summary | |
protected void |
copy(LComponent component)
Deep-copies self into the component passed in. |
boolean |
isSelected()
Returns whether or not the button is currently selected. |
protected boolean |
paint(java.awt.Graphics g)
Performs all of the necessary drawing for this control only. |
void |
setLevel(java.lang.String name)
Sets up to display the level with the specified id. |
void |
setSelected(boolean v)
Describe setSelected method here. |
void |
toggleSelected()
Toggles the selection on the button. |
protected void |
updateDimensions()
Updates the bounds of the button. |
| Methods inherited from class edu.gatech.cs2335.lemmings.gui.LAbstractButton |
addActionListener, fireActionPerformed, getActionCommand, getActionListeners, registerMouseClick, removeActionListener, setActionCommand, setActionListeners |
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LevelButton(java.lang.String levelName)
LevelButton instance.
levelName - The id associated with the level we would like
to display in this button.| Method Detail |
public boolean isSelected()
boolean valuepublic void setSelected(boolean v)
setSelected method here.
v - a boolean valuepublic void toggleSelected()
protected void updateDimensions()
updateDimensions in class LComponentpublic final void setLevel(java.lang.String name)
name - a String value
name cannot be found.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 | |||||||||