|
||||||||||
| 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.LColoredComponent
edu.gatech.cs2335.lemmings.gui.LLabel
edu.gatech.cs2335.lemmings.gui.LFancyLabel
Class LFancyLabel: In addition to the regular label functionality, this guy allows you to specify different fonts for the label.
Revision History:
v1.0 (Mar. 13, 2004) - Created the LFancyLabel class
| Field Summary | |
static java.awt.Font |
DEFAULT_FONT
The default font. |
| Fields inherited from class edu.gatech.cs2335.lemmings.gui.LColoredComponent |
DEFAULT_BACKGROUND_COLOR, DEFAULT_FOREGROUND_COLOR |
| Constructor Summary | |
LFancyLabel()
Creates a new LFancyLabel instance. |
|
LFancyLabel(java.lang.String text)
Creates a new LFancyLabel instance. |
|
LFancyLabel(java.lang.String text,
java.awt.Font font)
Creates a new LFancyLabel instance. |
|
| Method Summary | |
protected void |
copy(LComponent component)
Deep-copies self into the component passed in. |
java.awt.Font |
getFont()
Returns the fint associated with this label. |
protected boolean |
paint(java.awt.Graphics g)
Performs all of the necessary drawing for this control only. |
void |
setFont(java.awt.Font newFont)
Sets up a new font value. |
| Methods inherited from class edu.gatech.cs2335.lemmings.gui.LLabel |
getText, setText, updateDimensions |
| 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 |
| Field Detail |
public static final java.awt.Font DEFAULT_FONT
| Constructor Detail |
public LFancyLabel()
LFancyLabel instance.
public LFancyLabel(java.lang.String text)
LFancyLabel instance.
text - a String value
public LFancyLabel(java.lang.String text,
java.awt.Font font)
LFancyLabel instance.
text - a String valuefont - a Font value| Method Detail |
public java.awt.Font getFont()
Font valuepublic void setFont(java.awt.Font newFont)
newFont - a Font valueprotected void copy(LComponent component)
copy in class LLabelcomponent - a LComponent valueprotected boolean paint(java.awt.Graphics g)
paint in class LLabelg - a Graphics value
boolean value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||