|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.ui.Border
de.enough.polish.ui.borders.SquareSonarBorder
public class SquareSonarBorder
Sends out square rectangles from around the item to the outside.
Copyright Enough Software 2008
| Field Summary | |
|---|---|
protected boolean[] |
activeSignals
|
protected int[] |
colors
|
protected int |
distance
|
protected int[] |
distances
|
protected int |
emittedSignals
|
protected boolean |
hasTranslucentColor
|
protected int |
innerColor
|
protected boolean |
isAnimationStopped
|
protected boolean |
isOutbound
|
protected long |
lastEmittingTime
|
protected int |
numSignals
|
protected int |
outerColor
|
protected int |
pause
|
protected int |
speed
|
protected int |
steps
|
| Fields inherited from class de.enough.polish.ui.Border |
|---|
borderWidth |
| Constructor Summary | |
|---|---|
SquareSonarBorder(int innerColor,
int outerColor,
int steps,
int distance,
int pause,
int numSignals,
int speed)
Creates a new SquareSonarBorder |
|
| Method Summary | |
|---|---|
void |
animate(Screen screen,
Item parent,
long currentTime,
ClippingRegion repaintRegion)
Animates this background. |
void |
paint(int x,
int y,
int width,
int height,
javax.microedition.lcdui.Graphics g)
Paints this border. |
void |
showNotify()
Informs the border that it is being shown shortly or that it is now applied to a new visible item. |
| Methods inherited from class de.enough.polish.ui.Border |
|---|
animate, hideNotify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final int innerColor
protected final int outerColor
protected final int steps
protected final int distance
protected final int pause
protected final int numSignals
protected final int speed
protected final boolean hasTranslucentColor
protected final int[] distances
protected final int[] colors
protected final boolean[] activeSignals
protected long lastEmittingTime
protected int emittedSignals
protected boolean isOutbound
protected boolean isAnimationStopped
| Constructor Detail |
|---|
public SquareSonarBorder(int innerColor,
int outerColor,
int steps,
int distance,
int pause,
int numSignals,
int speed)
innerColor - the color at the inner starting point.outerColor - the color at the outer end point.steps - the number of animation steps required for moving from the inner point to the outer pointdistance - the distance from the inner point to the outer point in pixelspause - the pause in ms between different sonar signalsnumSignals - the number of signals that are send out. Use -1 for not limiting the number.speed - the constant speed by which signals move from the inner to the outer point - use -1 for
moving fast in the beginning and then slowing down.| Method Detail |
|---|
public void showNotify()
Border
showNotify in class Border
public void animate(Screen screen,
Item parent,
long currentTime,
ClippingRegion repaintRegion)
Border
animate in class Borderscreen - the parent screenparent - the parent item, can be null when the background belongs to a screencurrentTime - the current time in millisecondsrepaintRegion - the repaint area that needs to be updated when this item is animatedItem.addRelativeToContentRegion(ClippingRegion, int, int, int, int)
public void paint(int x,
int y,
int width,
int height,
javax.microedition.lcdui.Graphics g)
Border
paint in class Borderx - the horizontal start pointy - the vertical start pointwidth - the width of the borderheight - the height of the borderg - the Graphics on which the border should be painted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||