de.enough.polish.ui.borders
Class RoundRectBorder
java.lang.Object
de.enough.polish.ui.Border
de.enough.polish.ui.borders.RoundRectBorder
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- PulsatingRoundRectBorder
public class RoundRectBorder
- extends Border
Paints a border with round corners.
Copyright Enough Software 2004 - 2008
- Author:
- Robert Virkus, robert@enough.de
|
Field Summary |
protected int |
color
|
|
Constructor Summary |
RoundRectBorder(int color,
int borderWidth,
int arcWidth,
int arcHeight)
Creates a new round rectangle border. |
|
Method Summary |
void |
paint(int x,
int y,
int width,
int height,
javax.microedition.lcdui.Graphics g)
Paints this border. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
color
protected int color
RoundRectBorder
public RoundRectBorder(int color,
int borderWidth,
int arcWidth,
int arcHeight)
- Creates a new round rectangle border.
- Parameters:
color - the color of the backgroundborderWidth - the width of the borderarcWidth - the horizontal diameter of the arc at the four cornersarcHeight - the vertical diameter of the arc at the four corners
paint
public void paint(int x,
int y,
int width,
int height,
javax.microedition.lcdui.Graphics g)
- Description copied from class:
Border
- Paints this border.
- Specified by:
paint in class Border
- Parameters:
x - the horizontal start pointy - the vertical start pointwidth - the width of the borderheight - the height of the borderg - the Graphics on which the border should be painted.