|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.lib.io.output.overlay.Overlay
public class Overlay
To provide the Overlay and the base for the Hierarcy of classes which use the same get methods and have the same functions draw and animate
Constructor Summary | |
---|---|
Overlay(java.awt.Color inColor)
The constructor takes values for the color of the of the Overlay object which is being manipulated. |
Method Summary | |
---|---|
void |
animate(java.awt.Graphics g,
int x,
int y)
Animates an Overlay object |
void |
draw(java.awt.Graphics g,
int x,
int y)
Draws an Overlay object |
int |
getHeight(java.awt.Graphics g)
Returns the height of the bounding box of the Overlay object |
int |
getWidth(java.awt.Graphics g)
Returns the width of the bounding box of the Overlay object |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Overlay(java.awt.Color inColor)
inWidth
- The width of the bounding box of the ellipseinHeight
- The height of the bounding box of the ellipseinColor
- The color of the ellipseMethod Detail |
---|
public void draw(java.awt.Graphics g, int x, int y)
g
- The graphical context of the appletx
- The x coordinate corresponding to the different manipulations needed for the Overlay objecty
- The y coordinate corresponding to the different manipulations needed for the Overlay objectpublic void animate(java.awt.Graphics g, int x, int y)
g
- The graphical context of the appletx
- The x coordinate corresponding to the different manipulations needed for the Overlay objecty
- The y coordinate corresponding to the different manipulations needed for the Overlay objectpublic int getHeight(java.awt.Graphics g)
g
- The graphical context of the applet
public int getWidth(java.awt.Graphics g)
g
- The graphical context of the applet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |