|
||||||||||
| 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
Class LContainer: The parent for all components that can contain other components.
Revision History:
v1.0 (Mar. 13, 2004) - Created the LContainer class
| Constructor Summary | |
LContainer()
Creates a new LContainer instance. |
|
| Method Summary | |
boolean |
addChild(LComponent child)
Attempts to add the component passed in as a child of this component. |
void |
clear()
Removes all children. |
LComponent |
findActiveChild()
Returns the top-most active child of this component. |
LComponent |
findChildAtCoordinates(java.awt.Point coords)
Returns the pointer to the child of this component that the specified coordinates are inside of, if there is one, or NULL if there is no such child. |
protected java.util.List |
getChildren()
Returns the list of children. |
void |
makeDirty()
Marks the component dirty. |
void |
move(java.awt.Point offset)
Moves the component by the offsets specified by the components of the point. |
boolean |
removeChild(LComponent child)
Attempts to remove the component passed in from the list of children of the current component. |
boolean |
renderAll(java.awt.Graphics g)
Calls paint on self and then all the children in z order. |
| Methods inherited from class edu.gatech.cs2335.lemmings.gui.LComponent |
bringToTop, cleanUp, copy, getBounds, getParent, initialize, isActive, isComponentDirty, isShown, paint, setBounds, setDirty, setParent, setPosition, setShown, setSize, setSize, updateDimensions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LContainer()
LContainer instance.
| Method Detail |
public final void move(java.awt.Point offset)
move in class LComponentoffset - a Point valuepublic final void makeDirty()
makeDirty in class LComponentpublic final boolean renderAll(java.awt.Graphics g)
renderAll in class LComponentg - a Graphics value
boolean valuepublic final boolean addChild(LComponent child)
child - a LComponent value
boolean valuepublic final boolean removeChild(LComponent child)
child - a LComponent value
boolean valueprotected final java.util.List getChildren()
List valuepublic final void clear()
public final LComponent findChildAtCoordinates(java.awt.Point coords)
coords - a Point value
LComponent valuepublic final LComponent findActiveChild()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||