|
||||||||||
| 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.LRootPane
Class LRootPane: This is the class for the root pane. It will be the root of everything else. It will be immovable, and will distribute the events to whichever children get them.
Revision History:
v1.0 (Mar. 13, 2004) - Created the LRootPane class
| Constructor Summary | |
LRootPane()
Creates a new LRootPane instance. |
|
| Method Summary | |
protected void |
copy(LComponent component)
Deep-copies self into the component passed in. |
void |
dispatchKeyboardEvent(char keyCode,
int modifiers)
Dispatches the keyboard event to the appropriate child. |
void |
dispatchMouseClickEvent(int button,
java.awt.Point coords)
Dispatches the mouse event to the appropriate child. |
void |
dispatchMouseDragEvent(int button,
java.awt.Point coords,
java.awt.Point offset)
Dispatches the mouse event to the appropriate child. |
void |
dispatchMouseMotionEvent(java.awt.Point oldCoords,
java.awt.Point newCoords)
Dispatches the mouse event to the appropriate child. |
void |
dispatchMouseWheelEvent(java.awt.Point coordinates,
int numClicks)
Describe dispatchMouseWheelEvent method here. |
protected boolean |
paint(java.awt.Graphics g)
Performs all of the necessary drawing for this control only. |
| 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, updateDimensions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LRootPane()
LRootPane instance.
| Method Detail |
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
public void dispatchMouseClickEvent(int button,
java.awt.Point coords)
button - bcoords - c
public void dispatchMouseMotionEvent(java.awt.Point oldCoords,
java.awt.Point newCoords)
oldCoords - onewCoords - n
public void dispatchMouseWheelEvent(java.awt.Point coordinates,
int numClicks)
dispatchMouseWheelEvent method here.
coordinates - a Point valuenumClicks - an int value
public void dispatchMouseDragEvent(int button,
java.awt.Point coords,
java.awt.Point offset)
button - bcoords - coffset - o
public void dispatchKeyboardEvent(char keyCode,
int modifiers)
keyCode - kmodifiers - m
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||