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

Field Summary
 
Fields inherited from class com.golden.gamedev.object.Background
screen
 
Constructor Summary
ImageBackground(BufferedImage image)
           
ImageBackground(BufferedImage image, int w, int h)
           
 
Method Summary
 BufferedImage getImage()
           
 void render(Graphics2D g, int xbg, int ybg, int x, int y, int w, int h)
           
 void setImage(BufferedImage image)
           
 
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
 

Constructor Detail

ImageBackground

public ImageBackground(BufferedImage image,
                       int w,
                       int h)

ImageBackground

public ImageBackground(BufferedImage image)
Method Detail

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