com.incrediblesoft.redjey.backgrounds
Class Background

java.lang.Object
  extended by com.incrediblesoft.redjey.backgrounds.Background
Direct Known Subclasses:
SimpleBackground

public abstract class Background
extends java.lang.Object


Field Summary
 int borderHeight
           
 int borderWidth
          Defines the width and height of this Background.
 
Constructor Summary
Background()
          Creates a new Background.
Background(java.util.Hashtable styleDesc)
           
 
Method Summary
abstract  Background clone()
           
abstract  void paint(javax.microedition.lcdui.Graphics g, int x, int y, int width, int height)
          Paints this background.
 void tick(int dt)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

borderWidth

public int borderWidth
Defines the width and height of this Background.


borderHeight

public int borderHeight
Constructor Detail

Background

public Background()
Creates a new Background.


Background

public Background(java.util.Hashtable styleDesc)
Method Detail

tick

public void tick(int dt)

paint

public abstract void paint(javax.microedition.lcdui.Graphics g,
                           int x,
                           int y,
                           int width,
                           int height)
Paints this background.

Parameters:
x - the horizontal start point
y - the vertical start point
width - the width of the background
height - the height of the background
g - the Graphics on which the background should be painted.

clone

public abstract Background clone()
Overrides:
clone in class java.lang.Object