de.enough.polish.ui.borders
Class CircleBorder
java.lang.Object
de.enough.polish.ui.Border
de.enough.polish.ui.borders.CircleBorder
- All Implemented Interfaces:
- Serializable
public class CircleBorder
- extends Border
The CircleBorder paints a circle or elliptical border.
Following CSS-attributes are supported:
- type: the type of the border, needs to be "circle".
- color: the color of the border, defaults to "black".
- width: the width of the border, defaults to "1" pixel.
- stroke-style: the stroke-style, either "dotted" or "solid". Defaults to "solid".
Copyright Enough Software 2004 - 2009
history
17-Jul-2004 - rob creation
- Author:
- Robert Virkus, j2mepolish@enough.de
|
Constructor Summary |
CircleBorder(int color,
int width,
int strokeStyle)
|
|
Method Summary |
void |
paint(int x,
int y,
int width,
int height,
Graphics g)
Paints this border. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CircleBorder
public CircleBorder(int color,
int width,
int strokeStyle)
paint
public void paint(int x,
int y,
int width,
int height,
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.