de.enough.polish.ui.backgrounds
Class GradientVerticalBackground
java.lang.Object
de.enough.polish.ui.Background
de.enough.polish.ui.backgrounds.GradientVerticalBackground
- All Implemented Interfaces:
- Serializable
public class GradientVerticalBackground
- extends Background
GradientVerticalBackground generates an nice Backgroundscreen,
with an gradient from the top-color to the bottom-color.
- Author:
- Tim Muders, Robert Virkus refinements
|
Constructor Summary |
GradientVerticalBackground(int topColor,
int bottomColor,
int stroke)
Creates a new gradient background |
GradientVerticalBackground(int topColor,
int bottomColor,
int stroke,
int start,
int end,
boolean isPercent)
Creates a new gradient background |
|
Method Summary |
void |
paint(int x,
int y,
int width,
int height,
javax.microedition.lcdui.Graphics g)
Paints this background. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GradientVerticalBackground
public GradientVerticalBackground(int topColor,
int bottomColor,
int stroke)
- Creates a new gradient background
- Parameters:
topColor - the color at the top of the gradientbottomColor - the color at the bottom of the gradientstroke - the line stroke style
GradientVerticalBackground
public GradientVerticalBackground(int topColor,
int bottomColor,
int stroke,
int start,
int end,
boolean isPercent)
- Creates a new gradient background
- Parameters:
topColor - the color at the top of the gradientbottomColor - the color at the bottom of the gradientstroke - the line stroke stylestart - the line counted from the top at which the gradient starts, either in pixels or in percentend - the line counted from the top at which the gradient ends, either in pixels or in percentisPercent - true when the start and end settings should be counted in percent
paint
public void paint(int x,
int y,
int width,
int height,
javax.microedition.lcdui.Graphics g)
- Description copied from class:
Background
- Paints this background.
- Specified by:
paint in class Background
- Parameters:
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.