de.enough.polish.ui.borders
Class PulsatingSimpleBorder

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

Field Summary
 
Fields inherited from class de.enough.polish.ui.borders.SimpleBorder
color
 
Fields inherited from class de.enough.polish.ui.Border
borderWidth
 
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 de.enough.polish.ui.borders.SimpleBorder
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

PulsatingSimpleBorder

public PulsatingSimpleBorder(int borderWidth,
                             int startColor,
                             int endColor,
                             int steps,
                             boolean repeat,
                             boolean backAndForth)
Parameters:
borderWidth -
startColor -
endColor -
steps -
repeat -
backAndForth -
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)