de.enough.polish.ui.borders
Class PulsatingSimpleBorder
java.lang.Object
de.enough.polish.ui.Border
de.enough.polish.ui.borders.SimpleBorder
de.enough.polish.ui.borders.PulsatingSimpleBorder
- All Implemented Interfaces:
- Serializable
public class PulsatingSimpleBorder
- extends SimpleBorder
A border with animated colors.
Usage:
.myStyle {
border {
type: pulsating;
width: 2;
start-color: black;
end-color: red;
steps: 5;
repeat: true;
back-and-forth: true;
}
}
Copyright Enough Software 2007 - 2008
history
Aug 3, 2007 - rob creation
- Author:
- Robert Virkus, j2mepolish@enough.de
|
Constructor Summary |
PulsatingSimpleBorder(int borderWidth,
int startColor,
int endColor,
int steps,
boolean repeat,
boolean backAndForth)
|
|
Method Summary |
boolean |
animate()
Animates this border. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PulsatingSimpleBorder
public PulsatingSimpleBorder(int borderWidth,
int startColor,
int endColor,
int steps,
boolean repeat,
boolean backAndForth)
- Parameters:
borderWidth - startColor - endColor - steps - repeat - backAndForth -
animate
public boolean animate()
- Description copied from class:
Border
- Animates this border.
Subclasses can override this method to create animations.
- Overrides:
animate in class Border
- Returns:
- true when this border has been animated and needs a repaint.
- See Also:
Border.animate(Screen, Item, long, ClippingRegion)