de.enough.polish.ui.borders
Class DropShadowBorder

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

public class DropShadowBorder
extends Border

Paints a translucent shadow on MIDP 2.0 and Nokia-UI-API devices.

Copyright (c) Enough Software 2005 - 2008

 history
        22-Aug-2005 - rob creation
 

Author:
Robert Virkus, j2mepolish@enough.de

Field Summary
static int ALL
          paints the border at all sides of the corresponding item
static int BOTTOM_LEFT
          paints the border at the bottom and the left sides of the corresponding item
static int BOTTOM_RIGHT
          paints the border at the bottom and the right sides of the corresponding item
static int TOP_LEFT
          paints the border at the top and the left sides of the corresponding item
static int TOP_RIGHT
          paints the border at the top and the right sides of the corresponding item
 
Fields inherited from class de.enough.polish.ui.Border
borderWidth
 
Constructor Summary
DropShadowBorder(int innerColor, int outerColor, int width, int offset, int orientation)
           
 
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

BOTTOM_RIGHT

public static final int BOTTOM_RIGHT
paints the border at the bottom and the right sides of the corresponding item

See Also:
Constant Field Values

TOP_RIGHT

public static final int TOP_RIGHT
paints the border at the top and the right sides of the corresponding item

See Also:
Constant Field Values

BOTTOM_LEFT

public static final int BOTTOM_LEFT
paints the border at the bottom and the left sides of the corresponding item

See Also:
Constant Field Values

TOP_LEFT

public static final int TOP_LEFT
paints the border at the top and the left sides of the corresponding item

See Also:
Constant Field Values

ALL

public static final int ALL
paints the border at all sides of the corresponding item

See Also:
Constant Field Values
Constructor Detail

DropShadowBorder

public DropShadowBorder(int innerColor,
                        int outerColor,
                        int width,
                        int offset,
                        int orientation)
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.