de.enough.polish.ui.backgrounds
Class PulsatingRoundRectBackground
java.lang.Object
de.enough.polish.ui.Background
de.enough.polish.ui.backgrounds.PulsatingRoundRectBackground
- All Implemented Interfaces:
- Serializable
public class PulsatingRoundRectBackground
- extends Background
Paints an animated background, which colors change.
Following CSS parameters are supported:
- start-color: The color with which the animation is started.
- end-color: The color with which the animation is stopped.
- repeat: true when the animation should run without stopping.
Is enabled by default.
- back-and-forth: true when the animation should run backward when
the end-color is reached. Is enabled by default
Copyright Enough Software 2004 - 2008
history
15-Mar-2004 - rob creation
- Author:
- Robert Virkus, robert@enough.de
|
Constructor Summary |
PulsatingRoundRectBackground(int startColor,
int endColor,
int steps,
boolean repeat,
boolean backAndForth,
int arcWidth,
int arcHeight)
|
|
Method Summary |
boolean |
animate()
Animates this background. |
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 |
PulsatingRoundRectBackground
public PulsatingRoundRectBackground(int startColor,
int endColor,
int steps,
boolean repeat,
boolean backAndForth,
int arcWidth,
int arcHeight)
- Parameters:
startColor - endColor - steps - repeat - backAndForth - arcWidth - the horizontal diameter of the arc at the four cornersarcHeight - the vertical diameter of the arc at the four corners
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)