de.enough.polish.ui.backgrounds
Class XmasSnowBackground
java.lang.Object
de.enough.polish.ui.Background
de.enough.polish.ui.backgrounds.XmasSnowBackground
- All Implemented Interfaces:
- Serializable
public class XmasSnowBackground
- extends Background
|
Method Summary |
boolean |
animate()
Animates this background. |
void |
paint(int x,
int y,
int width,
int height,
Graphics g)
Paints this background. |
void |
setStyle(Style style)
Allows backgrounds to be animated using CSS attribute animations. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmasSnowBackground
public XmasSnowBackground()
XmasSnowBackground
public XmasSnowBackground(int color,
int snowFlakesColor,
int maxSnowFlakeSize,
int numberOfFlakes)
XmasSnowBackground
public XmasSnowBackground(int color,
String url,
int width,
int height,
int maxSnowFlakeSize,
int numberOfFlakes)
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)
paint
public void paint(int x,
int y,
int width,
int height,
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.
setStyle
public void setStyle(Style style)
- Description copied from class:
Background
- Allows backgrounds to be animated using CSS attribute animations.
- Overrides:
setStyle in class Background
- Parameters:
style - the style containing typically only one element