de.enough.polish.ui.borders
Class CircleBorder

java.lang.Object
  extended by de.enough.polish.ui.Border
      extended by 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:

Copyright Enough Software 2004 - 2009

 history
        17-Jul-2004 - rob creation
 

Author:
Robert Virkus, j2mepolish@enough.de

Field Summary
 
Fields inherited from class de.enough.polish.ui.Border
borderWidthBottom, borderWidthLeft, borderWidthRight, borderWidthTop
 
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 de.enough.polish.ui.Border
animate, animate, getBorderWidthBottom, getBorderWidthLeft, getBorderWidthRight, getBorderWidthTop, hideNotify, setStyle, showNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CircleBorder

public CircleBorder(int color,
                    int width,
                    int strokeStyle)
Method Detail

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 point
y - the vertical start point
width - the width of the border
height - the height of the border
g - the Graphics on which the border should be painted.