de.enough.polish.ui.borders
Class PulsatingRoundRectBorder
java.lang.Object
de.enough.polish.ui.Border
de.enough.polish.ui.borders.RoundRectBorder
de.enough.polish.ui.borders.PulsatingRoundRectBorder
- All Implemented Interfaces:
- Serializable
public class PulsatingRoundRectBorder
- extends RoundRectBorder
A color-changing border with round corners
Usage:
.myStyle {
border {
type: pulsating-round-rect;
width: 2;
start-color: black;
end-color: red;
steps: 5;
repeat: true;
back-and-forth: true;
arc-width: 10;
arc-height: 10;
}
}
Copyright Enough Software 2007 - 2008
history
Aug 3, 2007 - rob creation
- Author:
- Robert Virkus, j2mepolish@enough.de
|
Constructor Summary |
PulsatingRoundRectBorder(int borderWidth,
int startColor,
int endColor,
int steps,
boolean repeat,
boolean backAndForth,
int arcWidth,
int arcHeight)
|
|
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 |
PulsatingRoundRectBorder
public PulsatingRoundRectBorder(int borderWidth,
int startColor,
int endColor,
int steps,
boolean repeat,
boolean backAndForth,
int arcWidth,
int arcHeight)
- Parameters:
borderWidth - startColor - endColor - steps - repeat - backAndForth - arcWidth - arcHeight -
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)