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
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 |
ColorBackground
public ColorBackground(Color bgColor,
int w,
int h)
ColorBackground
public ColorBackground(Color bgColor)
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