edu.gatech.cs2335.lemmings.gui
Class LLabel

java.lang.Object
  extended byedu.gatech.cs2335.lemmings.gui.LComponent
      extended byedu.gatech.cs2335.lemmings.gui.LLeafComponent
          extended byedu.gatech.cs2335.lemmings.gui.LColoredComponent
              extended byedu.gatech.cs2335.lemmings.gui.LLabel
Direct Known Subclasses:
LFancyLabel

public class LLabel
extends LColoredComponent

Class LLabel: Your regular old label.

 Revision History:
     v1.0 (Mar. 13, 2004) - Created the LLabel class
 

Version:
Version 1.0, Mar. 13, 2004
Author:
Vladimir Urazov

Field Summary
 
Fields inherited from class edu.gatech.cs2335.lemmings.gui.LColoredComponent
DEFAULT_BACKGROUND_COLOR, DEFAULT_FOREGROUND_COLOR
 
Constructor Summary
LLabel()
          Creates a new LLabel instance.
LLabel(java.lang.String text)
          Creates a new LLabel instance.
 
Method Summary
protected  void copy(LComponent component)
          Deep-copies self into the component passed in.
 java.lang.String getText()
          Returns the text of this label.
protected  boolean paint(java.awt.Graphics g)
          Performs all of the necessary drawing for this control only.
 void setText(java.lang.String text)
          Gives this label new text.
protected  void updateDimensions()
          Updates the bounds of the button.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LLabel

public LLabel()
Creates a new LLabel instance.


LLabel

public LLabel(java.lang.String text)
Creates a new LLabel instance.

Parameters:
text - a String value
Method Detail

getText

public final java.lang.String getText()
Returns the text of this label.

Returns:
a String value

setText

public final void setText(java.lang.String text)
Gives this label new text.

Parameters:
text - a String value

updateDimensions

protected final void updateDimensions()
Updates the bounds of the button.

Overrides:
updateDimensions in class LComponent

copy

protected void copy(LComponent component)
Deep-copies self into the component passed in.

Specified by:
copy in class LComponent
Parameters:
component - a LComponent value

paint

protected boolean paint(java.awt.Graphics g)
Performs all of the necessary drawing for this control only. The children will be taken care of separately. This method need not concern itself with them.

Specified by:
paint in class LComponent
Parameters:
g - a Graphics value
Returns:
a boolean value