|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.ui.Background
de.enough.polish.ui.backgrounds.CombinedBackground
public class CombinedBackground
Provides a background consisting of two other backgrounds.
You can combine more by two backgrounds by using nested further combined backgrounds.
Usage:
backgrounds {
titleTop {
type: polygon;
points: 10,50 50,10 90,50 50,90;
color: #d0f;
scale-mode: proportional;
anchor: right | vcenter;
}
titleBottom {
type: combined;
foreground: titlePolygonLeft;
background: titleGradient;
}
titlePolygonLeft {
type: polygon;
points: 10,50 50,10 90,50 50,90;
color: #d0f;
scale-mode: proportional;
anchor: left | vcenter;
}
titleGradient {
type: vertical-gradient;
top-color: white;
bottom-color: blue;
}
}
title {
padding: 2;
margin-top: 0;
margin-bottom: 5;
margin-left: 0;
margin-right: 0;
font-face: proportional;
font-size: large;
font-style: bold;
font-color: brightFontColor;
border: none;
layout: horizontal-center | horizontal-expand;
background {
type: combined;
foreground: titleTop;
background: titleBottom;
}
}
Copyright Enough Software 2007 - 2008
history
Nov 21, 2007 - rob creation
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.ui.Background |
|---|
borderWidth |
| Constructor Summary | |
|---|---|
CombinedBackground(Background foreground,
Background background)
Creates a new combiend background. |
|
| Method Summary | |
|---|---|
void |
animate(Screen screen,
Item parent,
long currentTime,
ClippingRegion repaintRegion)
Animates this background. |
void |
hideNotify()
Informs the background that it is being hidden shortly. |
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 de.enough.polish.ui.Background |
|---|
addRelativeToBackgroundRegion, animate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CombinedBackground(Background foreground,
Background background)
foreground - the background painted lastbackground - the background painted in the background| Method Detail |
|---|
public void paint(int x,
int y,
int width,
int height,
javax.microedition.lcdui.Graphics g)
Background
paint in class Backgroundx - 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 animate(Screen screen,
Item parent,
long currentTime,
ClippingRegion repaintRegion)
Background
animate in class Backgroundscreen - 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 showNotify()
Background
showNotify in class Backgroundpublic void hideNotify()
Background
hideNotify in class Backgroundpublic void releaseResources()
Background
releaseResources in class Background
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||