|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.ui.Background
public abstract class Background
Background is the base class for any backgrounds of widgets or forms.
copyright Enough Software 2004 - 2008
| Field Summary | |
|---|---|
int |
borderWidth
Defines the width of this Background. |
| Constructor Summary | |
|---|---|
Background()
Creates a new Background. |
|
| Method Summary | |
|---|---|
protected void |
addRelativeToBackgroundRegion(ClippingRegion repaintRegion,
Screen screen,
Item parent,
int left,
int right,
int top,
int bottom)
Adds an repaint area relative to this background |
boolean |
animate()
Animates this background. |
void |
animate(Screen screen,
Item parent,
long currentTime,
ClippingRegion repaintRegion)
Animates this background. |
void |
hideNotify()
Informs the background that it is being hidden shortly. |
abstract void |
paint(int x,
int y,
int width,
int height,
javax.microedition.lcdui.Graphics g)
Paints this background. |
void |
releaseResources()
Releases all (memory intensive) resources such as images or RGB arrays of this background. |
void |
showNotify()
Informs the background that it is being shown shortly or that it is now applied to a new visible item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int borderWidth
| Constructor Detail |
|---|
public Background()
| Method Detail |
|---|
public void animate(Screen screen,
Item parent,
long currentTime,
ClippingRegion repaintRegion)
screen - 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)
protected void addRelativeToBackgroundRegion(ClippingRegion repaintRegion,
Screen screen,
Item parent,
int left,
int right,
int top,
int bottom)
repaintRegion - the clipping rectanglescreen - the screen of this backgroundparent - the item of this backgroundleft - left adjustment of the repaint region, use negative values to expand arearight - right adjustment of the repaint region, use positive values to expand areatop - top adjustment of the repaint region, use negative values to expand areabottom - bottom adjustment of the repaint region, use positive values to expand areapublic boolean animate()
animate(Screen, Item, long, ClippingRegion)
public abstract void paint(int x,
int y,
int width,
int height,
javax.microedition.lcdui.Graphics g)
x - the horizontal start pointy - the vertical start pointwidth - the width of the backgroundheight - the height of the backgroundg - the Graphics on which the background should be painted.public void releaseResources()
public void hideNotify()
public void showNotify()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||