de.enough.polish.ui.backgrounds
Class BallBackground

java.lang.Object
  extended by de.enough.polish.ui.Background
      extended by de.enough.polish.ui.backgrounds.BallBackground
All Implemented Interfaces:
Serializable

public class BallBackground
extends Background


Field Summary
 
Fields inherited from class de.enough.polish.ui.Background
borderWidth
 
Constructor Summary
BallBackground()
           
BallBackground(int color, int borderColor, java.lang.String url, int roundWidth, int roundHeight, int number)
           
 
Method Summary
 boolean animate()
          Animates this background.
 void changeDirection(int id)
           
 void paint(int x, int y, int width, int height, javax.microedition.lcdui.Graphics g)
          Paints this background.
 
Methods inherited from class de.enough.polish.ui.Background
addRelativeToBackgroundRegion, animate, hideNotify, releaseResources, showNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BallBackground

public BallBackground()

BallBackground

public BallBackground(int color,
                      int borderColor,
                      java.lang.String url,
                      int roundWidth,
                      int roundHeight,
                      int number)
Method Detail

changeDirection

public void changeDirection(int id)

paint

public void paint(int x,
                  int y,
                  int width,
                  int height,
                  javax.microedition.lcdui.Graphics g)
Description copied from class: Background
Paints this background.

Specified by:
paint in class 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.

animate

public boolean animate()
Description copied from class: Background
Animates this background. Subclasses can override this method to create animations.

Overrides:
animate in class Background
Returns:
true when this background has been animated.
See Also:
Background.animate(Screen, Item, long, ClippingRegion)