de.enough.polish.ui.backgrounds
Class HorizontalStripesBackground
java.lang.Object
de.enough.polish.ui.Background
de.enough.polish.ui.backgrounds.HorizontalStripesBackground
- All Implemented Interfaces:
- Serializable
public class HorizontalStripesBackground
- extends Background
Paints stripes with two colors that can change their color.
Copyright Enough Software 2006 - 2008
history
Jan 31, 2007 - rob creation
- Author:
- Robert Virkus, j2mepolish@enough.de
|
Constructor Summary |
HorizontalStripesBackground(int firstTopColor,
int firstBottomColor,
int secondTopColor,
int secondBottomColor)
Creates a new 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 |
HorizontalStripesBackground
public HorizontalStripesBackground(int firstTopColor,
int firstBottomColor,
int secondTopColor,
int secondBottomColor)
- Creates a new background.
- Parameters:
firstTopColor - the first color at the start of the backgroundfirstBottomColor - the first color at the end of the backgroundsecondTopColor - the second color at the start of the backgroundsecondBottomColor - the second color at the end of the background
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.