edu.gatech.cs2335.lemmings.gui
Class LRootPane

java.lang.Object
  extended byedu.gatech.cs2335.lemmings.gui.LComponent
      extended byedu.gatech.cs2335.lemmings.gui.LContainer
          extended byedu.gatech.cs2335.lemmings.gui.LRootPane

public class LRootPane
extends LContainer

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
 

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

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

LRootPane

public LRootPane()
Creates a new LRootPane instance.

Method Detail

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

dispatchMouseClickEvent

public void dispatchMouseClickEvent(int button,
                                    java.awt.Point coords)
Dispatches the mouse event to the appropriate child.

Parameters:
button - b
coords - c

dispatchMouseMotionEvent

public void dispatchMouseMotionEvent(java.awt.Point oldCoords,
                                     java.awt.Point newCoords)
Dispatches the mouse event to the appropriate child.

Parameters:
oldCoords - o
newCoords - n

dispatchMouseWheelEvent

public void dispatchMouseWheelEvent(java.awt.Point coordinates,
                                    int numClicks)
Describe dispatchMouseWheelEvent method here.

Parameters:
coordinates - a Point value
numClicks - an int value

dispatchMouseDragEvent

public void dispatchMouseDragEvent(int button,
                                   java.awt.Point coords,
                                   java.awt.Point offset)
Dispatches the mouse event to the appropriate child.

Parameters:
button - b
coords - c
offset - o

dispatchKeyboardEvent

public void dispatchKeyboardEvent(char keyCode,
                                  int modifiers)
Dispatches the keyboard event to the appropriate child.

Parameters:
keyCode - k
modifiers - m