com.golden.gamedev.object.background
Class ColorBackground

java.lang.Object
  |
  +--com.golden.gamedev.object.Background
        |
        +--com.golden.gamedev.object.background.ColorBackground
All Implemented Interfaces:
Serializable

public class ColorBackground
extends Background

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.golden.gamedev.object.Background
screen
 
Constructor Summary
ColorBackground(Color bgColor)
           
ColorBackground(Color bgColor, int w, int h)
           
 
Method Summary
 Color getColor()
           
 void render(Graphics2D g, int xbg, int ybg, int x, int y, int w, int h)
           
 void setColor(Color bgColor)
           
 
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

ColorBackground

public ColorBackground(Color bgColor,
                       int w,
                       int h)

ColorBackground

public ColorBackground(Color bgColor)
Method Detail

getColor

public Color getColor()

setColor

public void setColor(Color bgColor)

render

public void render(Graphics2D g,
                   int xbg,
                   int ybg,
                   int x,
                   int y,
                   int w,
                   int h)
Overrides:
render in class Background