de.enough.polish.ui.borders
Class BottomRightShadowBorder

java.lang.Object
  extended by de.enough.polish.ui.Border
      extended by de.enough.polish.ui.borders.BottomRightShadowBorder
All Implemented Interfaces:
Serializable

public class BottomRightShadowBorder
extends Border

Paints a border which is like shadow, which is seen on the bottom and on the right of the bordered Item.

Copyright Enough Software 2004 - 2008

Author:
Robert Virkus, robert@enough.de

Field Summary
 
Fields inherited from class de.enough.polish.ui.Border
borderWidth
 
Constructor Summary
BottomRightShadowBorder(int color, int borderWidth, int offset)
          Creates a new border which is like a shadow which is seen on the bottom and on the right of the Item.
 
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
 

Constructor Detail

BottomRightShadowBorder

public BottomRightShadowBorder(int color,
                               int borderWidth,
                               int offset)
Creates a new border which is like a shadow which is seen on the bottom and on the right of the Item.

Parameters:
color - the color of this border in RGB, e.g. 0xFFDD12
borderWidth - the width of this border
offset - the offset of the shadow
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.