de.enough.polish.ui.backgrounds
Class RoundRectDoubleGradientVerticalBackground
java.lang.Object
de.enough.polish.ui.Background
de.enough.polish.ui.backgrounds.DoubleGradientVerticalBackground
de.enough.polish.ui.backgrounds.RoundRectDoubleGradientVerticalBackground
- All Implemented Interfaces:
- Serializable
public class RoundRectDoubleGradientVerticalBackground
- extends DoubleGradientVerticalBackground
Paints a translucent rectangle with round corners as a background.
Copyright Enough Software 2007 - 2008
- Author:
- Robert Virkus, robert@enough.de
|
Constructor Summary |
RoundRectDoubleGradientVerticalBackground(int firstTopColor,
int firstBottomColor,
int secondTopColor,
int secondBottomColor,
int stroke,
int start,
int end,
boolean isPercent,
int arcWidth,
int arcHeight,
int borderColor,
int borderWidth)
Creates a new round rectangle background with a border. |
|
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 |
RoundRectDoubleGradientVerticalBackground
public RoundRectDoubleGradientVerticalBackground(int firstTopColor,
int firstBottomColor,
int secondTopColor,
int secondBottomColor,
int stroke,
int start,
int end,
boolean isPercent,
int arcWidth,
int arcHeight,
int borderColor,
int borderWidth)
- Creates a new round rectangle background with a border.
- Parameters:
firstTopColor - the color at the top of the first gradientfirstBottomColor - the color at the bottom of the first gradientsecondTopColor - the color at the top of the second gradientsecondBottomColor - the color at the bottom of the second 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 percentarcWidth - the horizontal diameter of the arc at the four cornersarcHeight - the vertical diameter of the arc at the four cornersborderColor - the color of the borderborderWidth - the width of the border
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.
- Overrides:
paint in class DoubleGradientVerticalBackground
- 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.