de.enough.polish.ui.backgrounds
Class HorizontalSplitBackground
java.lang.Object
de.enough.polish.ui.Background
de.enough.polish.ui.backgrounds.HorizontalSplitBackground
- All Implemented Interfaces:
- Serializable
public class HorizontalSplitBackground
- extends Background
Creates a rectangular background with two colors.
Copyright Enough Software 2008
- Author:
- Robert Virkus, j2mepolish@enough.de
|
Constructor Summary |
HorizontalSplitBackground(int leftColor,
int rightColor,
int splitPos,
int splitSide)
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 |
HorizontalSplitBackground
public HorizontalSplitBackground(int leftColor,
int rightColor,
int splitPos,
int splitSide)
- Creates a new background
- Parameters:
leftColor - the top colorrightColor - the bottom colorsplitPos - the split position either in percent (0 - 100) or in pixels, negative values are interpreted as percent valuessplitSide - the side of the splitPos
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.