|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ou.mlfw.gui.Shadow2D
edu.ou.mlfw.gui.TextBoxShadow
public class TextBoxShadow
Created by IntelliJ IDEA. User: jason Date: Mar 6, 2006 Time: 1:58:33 AM To change this template use File | Settings | File Templates.
Field Summary |
---|
Fields inherited from class edu.ou.mlfw.gui.Shadow2D |
---|
EMPTY_ITER |
Constructor Summary | |
---|---|
TextBoxShadow(int width,
int height)
Initialize the shadow with a bounding box, calculate the halfwidth and halfheight |
Method Summary | |
---|---|
void |
cleanUp()
A convenience method that gets called after all the drawings are complete and the draw position is reset to the real position. |
void |
draw(java.awt.Graphics2D g)
The actual drawing routine. |
boolean |
drawMe()
Tell the Shadow2DCanvas to draw or not draw this shadow. |
Vector2D |
getRealPosition()
JSpacewarComponent uses this method in conjunction with the bounding box information to determine if the graphic needs to be redrawn to account for wrapping. |
void |
setRealPosition(Vector2D rp)
|
void |
setString(java.lang.String str)
|
Methods inherited from class edu.ou.mlfw.gui.Shadow2D |
---|
getDrawPosition, getHalfHeight, getHalfWidth, getHeight, getWidth, resetDrawPosition, setDrawPosition |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextBoxShadow(int width, int height)
width
- The width of the bounding box.height
- The height of the bounding box.Method Detail |
---|
public void setRealPosition(Vector2D rp)
public void setString(java.lang.String str)
public Vector2D getRealPosition()
Shadow2D
getRealPosition
in class Shadow2D
public boolean drawMe()
Shadow2D
drawMe
in class Shadow2D
public void draw(java.awt.Graphics2D g)
Shadow2D
draw
in class Shadow2D
public void cleanUp()
Shadow2D
cleanUp
in class Shadow2D
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |