|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gatech.cs2335.lemmings.gui.LComponent
The base component class, from which all of the more specific components, such as buttons, will be derived.
| Constructor Summary | |
LComponent()
Creates a new LComponent instance. |
|
| Method Summary | |
void |
bringToTop()
Brings the current component to the top of the z-order. |
boolean |
cleanUp()
Performs all the necessary operations to clean up after the component. |
protected abstract void |
copy(LComponent component)
Deep-copies self into the component passed in. |
java.awt.Rectangle |
getBounds()
Returns the rectangle denoting the bounds of the component. |
LContainer |
getParent()
Returns a pointer to the parent component of this one if there is one, or NULL if this component has no parent or is the root window. |
boolean |
initialize()
Performs all of the initialization necessary for the component. |
boolean |
isActive()
Returns true if the component has input focus, and false if it does not. |
boolean |
isComponentDirty()
Returns true if the component is to be rerendered during the next frame. |
boolean |
isShown()
Returns true if the component is visible, and false if it is not. |
abstract void |
makeDirty()
Marks the component dirty. |
abstract void |
move(java.awt.Point offset)
Moves the component by the offsets specified by the components of the point. |
protected abstract boolean |
paint(java.awt.Graphics g)
Performs all of the necessary drawing for this control only. |
abstract boolean |
renderAll(java.awt.Graphics g)
Calls paint on self and then all the children in z order. |
void |
setBounds(java.awt.Rectangle newBounds)
Sets the new bounds of the component. |
protected void |
setDirty(boolean value)
Sets the component's dirty value to the one passed in. |
void |
setParent(LContainer c)
Sets a new parent for this component. |
void |
setPosition(java.awt.Point p)
Sets the location of the top-left corner of the component to the desired coordinates. |
void |
setShown(boolean value)
Sets the visibility of the component to the value passed in. |
void |
setSize(java.awt.Dimension d)
Sets the size of the component. |
protected void |
setSize(int width,
int height)
Describe setSize method here. |
protected void |
updateDimensions()
Updates the dimensions of the component. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LComponent()
LComponent instance.
| Method Detail |
public boolean initialize()
boolean valuepublic boolean cleanUp()
boolean valuepublic final LContainer getParent()
LComponent valuepublic final void setParent(LContainer c)
c - a LContainer valuepublic final boolean isShown()
boolean valuepublic final void setShown(boolean value)
value - a boolean valuepublic final boolean isComponentDirty()
protected final void setDirty(boolean value)
value - vpublic final boolean isActive()
boolean valuepublic final void bringToTop()
public final java.awt.Rectangle getBounds()
Rectangle valuepublic final void setBounds(java.awt.Rectangle newBounds)
newBounds - npublic final void setPosition(java.awt.Point p)
p - a Point valuepublic final void setSize(java.awt.Dimension d)
d - a Dimension value
protected final void setSize(int width,
int height)
setSize method here.
width - an int valueheight - an int valueprotected void updateDimensions()
public abstract void makeDirty()
public abstract void move(java.awt.Point offset)
offset - a Point valuepublic abstract boolean renderAll(java.awt.Graphics g)
g - a Graphics value
boolean valueprotected abstract void copy(LComponent component)
component - a LComponent valueprotected abstract boolean paint(java.awt.Graphics g)
g - a Graphics value
boolean value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||