|
||||||||||
| 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 - 2009
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,
Dimension minDiameter,
Dimension maxDiameter,
int numberOfCircles,
int step)
Creates a new pulsating-circle background. |
|
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,
Graphics g)
Renders the background to the screen. |
void |
setStyle(Style style)
Allows backgrounds to be animated using CSS attribute animations. |
| 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 |
|---|
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 diameter in pixelmaxDiameter - the maximum diameter in pixelnumberOfCircles - the number of circlesstep - the number of pixels which should be added in each round to each circle
public PulsatingCirclesBackground(int firstColor,
int secondColor,
Dimension minDiameter,
Dimension 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,
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 setStyle(Style style)
Background
setStyle in class Backgroundstyle - the style containing typically only one element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||