de.enough.polish.ui.borders
Class PulsatingRoundRectBorder

java.lang.Object
  extended by de.enough.polish.ui.Border
      extended by de.enough.polish.ui.borders.RoundRectBorder
          extended by 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

Field Summary
 
Fields inherited from class de.enough.polish.ui.borders.RoundRectBorder
color
 
Fields inherited from class de.enough.polish.ui.Border
borderWidth
 
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 de.enough.polish.ui.borders.RoundRectBorder
paint
 
Methods inherited from class de.enough.polish.ui.Border
animate, hideNotify, showNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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)