Class BallFrame
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----BallFrame
- public class BallFrame
- extends Frame
- implements MovableObj
-
BallFrame(String)
-
-
loadImage(String, MediaTracker, int)
-
-
moveAbs(int, int)
-
-
moveRel(int, int)
-
-
paint(Graphics)
-
-
showObj(Graphics)
-
-
showText(Graphics, Dimension)
-
-
textOut(String)
-
BallFrame
public BallFrame(String name)
loadImage
public Image loadImage(String imagePath,
MediaTracker mt,
int imageID)
moveAbs
public void moveAbs(int x,
int y)
moveRel
public void moveRel(int dx,
int dy)
textOut
public void textOut(String text)
paint
public void paint(Graphics g)
- Overrides:
- paint in class Container
showText
public void showText(Graphics g,
Dimension d)
showObj
public void showObj(Graphics g)