|
||||||||||
| 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.LToggleButton
Class LToggleButton: this is the ltogglebutton class.
Revision History:
v1.0 (Apr. 14, 2004) - Created the LToggleButton class
| Constructor Summary | |
LToggleButton()
Creates a new LToggleButton instance. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Describe actionPerformed method here. |
protected void |
copy(LComponent component)
Deep-copies self into the component passed in. |
AnimatedSprite |
getImage()
Returns the image displayed on this button. |
java.lang.String |
getText()
Returns the text displayed on this button. |
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 |
setImage(AnimatedSprite newImage)
Sets up a new value for the image of this button. |
void |
setSelected(boolean v)
Describe setSelected method here. |
void |
setText(java.lang.String v)
Sets the new value of the text on this button. |
void |
toggleSelected()
Toggles the selection on the button. |
protected void |
updateDimensions()
Describe updateDimensions method here. |
| 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 LToggleButton()
LToggleButton instance.
| Method Detail |
public java.lang.String getText()
String valuepublic void setText(java.lang.String v)
v - a String valuepublic AnimatedSprite getImage()
AnimatedSprite valuepublic void setImage(AnimatedSprite newImage)
newImage - an AnimatedSprite valueprotected void updateDimensions()
updateDimensions method here.
updateDimensions in class LComponentpublic boolean isSelected()
boolean valuepublic void setSelected(boolean v)
setSelected method here.
v - a boolean valuepublic void toggleSelected()
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 valuepublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed method here.
actionPerformed in interface java.awt.event.ActionListenere - an ActionEvent value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||