de.enough.polish.ui.backgrounds
Class RoundTabBackground
java.lang.Object
de.enough.polish.ui.Background
de.enough.polish.ui.backgrounds.RoundTabBackground
- All Implemented Interfaces:
- Serializable
public class RoundTabBackground
- extends Background
Paints a background in which the top uses rounded edges, but the bottom uses straight ones. CSS-type is "round-tab"
Copyright (c) Enough Software 2005 - 2008
history
24-Jan-2005 - rob creation
- Author:
- Robert Virkus, j2mepolish@enough.de
|
Constructor Summary |
RoundTabBackground(int color,
int arcWidth,
int arcHeight)
Creates a new round tab 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 |
RoundTabBackground
public RoundTabBackground(int color,
int arcWidth,
int arcHeight)
- Creates a new round tab background.
- Parameters:
color - the color of the backgroundarcWidth - the horizontal diameter of the arc at the top cornersarcHeight - the vertical diameter of the arc at the top corners
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.