de.enough.polish.ui.backgrounds
Class BallBackground
java.lang.Object
de.enough.polish.ui.Background
de.enough.polish.ui.backgrounds.BallBackground
- All Implemented Interfaces:
- Serializable
public class BallBackground
- extends Background
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BallBackground
public BallBackground()
BallBackground
public BallBackground(int color,
int borderColor,
java.lang.String url,
int roundWidth,
int roundHeight,
int number)
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 pointy - the vertical start pointwidth - the width of the backgroundheight - the height of the backgroundg - 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)