com.golden.gamedev.object.background
Class ImageBackground
java.lang.Object
|
+--com.golden.gamedev.object.Background
|
+--com.golden.gamedev.object.background.ImageBackground
- All Implemented Interfaces:
- Serializable
- public class ImageBackground
- extends Background
- See Also:
- Serialized Form
Methods inherited from class com.golden.gamedev.object.Background |
getClip, getDefaultBackground, getHeight, getWidth, getX, getY, move, render, setClip, setLocation, setSize, setToCenter, setToCenter, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageBackground
public ImageBackground(BufferedImage image,
int w,
int h)
ImageBackground
public ImageBackground(BufferedImage image)
getImage
public BufferedImage getImage()
setImage
public void setImage(BufferedImage image)
render
public void render(Graphics2D g,
int xbg,
int ybg,
int x,
int y,
int w,
int h)
- Overrides:
render
in class Background