edu.ou.mlfw.gui
Class CircleShadow
java.lang.Object
edu.ou.mlfw.gui.Shadow2D
edu.ou.mlfw.gui.CircleShadow
public class CircleShadow
- extends Shadow2D
The default shadow class for a Beacon.
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 |
setColor(java.awt.Color newColor)
|
void |
setDrawMe(boolean b)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CircleShadow
public CircleShadow(Vector2D location)
getRealPosition
public Vector2D getRealPosition()
- Description copied from class:
Shadow2D
- JSpacewarComponent uses this method in conjunction with the bounding box
information to determine if the graphic needs to be redrawn to account
for wrapping. Real position is the position that resetDrawPosition sets
the draw position to.
- Specified by:
getRealPosition
in class Shadow2D
- Returns:
- The current "real" center position of the bounding box.
drawMe
public boolean drawMe()
- Description copied from class:
Shadow2D
- Tell the Shadow2DCanvas to draw or not draw this shadow. This does
not remove the shadow, it just keeps it from being drawn.
- Specified by:
drawMe
in class Shadow2D
- Returns:
- Whether the shadow should be drawn or not.
setDrawMe
public void setDrawMe(boolean b)
draw
public void draw(java.awt.Graphics2D g)
- Description copied from class:
Shadow2D
- The actual drawing routine.
- Specified by:
draw
in class Shadow2D
setColor
public void setColor(java.awt.Color newColor)
cleanUp
public void cleanUp()
- Description copied from class:
Shadow2D
- A convenience method that gets called after all the drawings are
complete and the draw position is reset to the real position.
- Specified by:
cleanUp
in class Shadow2D