|
||||||||||
| 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.LContainer
edu.gatech.cs2335.lemmings.gui.LevelContainer
Class LevelContainer: Basically a panel that contains level buttons.
Revision History:
v1.0 (Apr. 11, 2004) - Created the LevelContainer class
| Field Summary | |
static int |
SPACING
The number of pixels to put between the buttons. |
static boolean |
VERBOSE
Show debug output? |
| Constructor Summary | |
LevelContainer()
Creates a new LevelContainer instance. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Describe actionPerformed method here. |
void |
addLevelButton(java.lang.String levelId)
Creates a level button for the specified level id. |
protected void |
copy(LComponent component)
Deep-copies self into the component passed in. |
java.lang.String |
getSelectedLevel()
Describe getSelectedLevel method here. |
protected boolean |
paint(java.awt.Graphics g)
Performs all of the necessary drawing for this control only. |
void |
processMouseWheel(int numClicks)
Processes the mouse wheel rotation. |
protected void |
setSelectedButton(java.lang.String id)
Sets up the selected button. |
protected void |
updateDimensions()
Updates the bounds of the button. |
| Methods inherited from class edu.gatech.cs2335.lemmings.gui.LContainer |
addChild, clear, findActiveChild, findChildAtCoordinates, getChildren, makeDirty, move, removeChild, 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 |
| Field Detail |
public static final boolean VERBOSE
public static final int SPACING
| Constructor Detail |
public LevelContainer()
LevelContainer instance.
| Method Detail |
protected void updateDimensions()
updateDimensions in class LComponentpublic void addLevelButton(java.lang.String levelId)
levelId - a String valueprotected void setSelectedButton(java.lang.String id)
id - a String valuepublic java.lang.String getSelectedLevel()
getSelectedLevel method here.
String valuepublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed method here.
actionPerformed in interface java.awt.event.ActionListenere - an ActionEvent valuepublic void processMouseWheel(int numClicks)
processMouseWheel in interface IMouseWheelablenumClicks - The number of clicks the wheel was rotated. A
negative value means the wheel was rotated away from the user,
and positive means it was rotated towards the user.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 | |||||||||