de.enough.polish.ui.borders
Class RoundRectBorder

java.lang.Object
  extended by de.enough.polish.ui.Border
      extended by 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
           
 
Fields inherited from class de.enough.polish.ui.Border
borderWidth
 
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 de.enough.polish.ui.Border
animate, animate, hideNotify, showNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

color

protected int color
Constructor Detail

RoundRectBorder

public RoundRectBorder(int color,
                       int borderWidth,
                       int arcWidth,
                       int arcHeight)
Creates a new round rectangle border.

Parameters:
color - the color of the background
borderWidth - the width of the border
arcWidth - the horizontal diameter of the arc at the four corners
arcHeight - the vertical diameter of the arc at the four corners
Method Detail

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 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.