|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.ui.Background
de.enough.polish.ui.backgrounds.PulsatingCirclesBackground
public class PulsatingCirclesBackground
Paints an animated background filled with several ever-growing circles.
Following CSS-attributes are supported:
Copyright Enough Software 2004 - 2008
history
17-Jul-2004 - rob creation
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.ui.Background |
|---|
borderWidth |
| Constructor Summary | |
|---|---|
PulsatingCirclesBackground(int firstColor,
int secondColor,
int minDiameter,
int maxDiameter,
int numberOfCircles,
int step)
Creates a new pulsating-circle background. |
|
| Method Summary | |
|---|---|
void |
animate(Screen screen,
Item parent,
long currentTime,
ClippingRegion repaintRegion)
Animates this background. |
void |
paint(int x,
int y,
int width,
int height,
javax.microedition.lcdui.Graphics g)
Renders the background to the screen. |
void |
showNotify()
Informs the background that it is being shown shortly or that it is now applied to a new visible item. |
| Methods inherited from class de.enough.polish.ui.Background |
|---|
addRelativeToBackgroundRegion, animate, hideNotify, releaseResources |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PulsatingCirclesBackground(int firstColor,
int secondColor,
int minDiameter,
int maxDiameter,
int numberOfCircles,
int step)
firstColor - the first color of circlessecondColor - the second color of circlesminDiameter - the minimum diametermaxDiameter - the maximum diameternumberOfCircles - the number of circlesstep - the number of pixels which should be added in each round to each circle| Method Detail |
|---|
public void paint(int x,
int y,
int width,
int height,
javax.microedition.lcdui.Graphics g)
paint in class Backgroundx - the x position of the backgroundy - the y position of the backgroundwidth - the width of the backgroundheight - the height of the backgroundg - the Graphics instance for rendering this background
public void animate(Screen screen,
Item parent,
long currentTime,
ClippingRegion repaintRegion)
Background
animate in class Backgroundscreen - the parent screenparent - the parent item, can be null when the background belongs to a screencurrentTime - the current time in millisecondsrepaintRegion - the repaint area that needs to be updated when this item is animatedItem.addRelativeToContentRegion(ClippingRegion, int, int, int, int)public void showNotify()
Background
showNotify in class Background
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||