de.enough.polish.ui.borders
Class MultiImageBorder

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

public class MultiImageBorder
extends Border

Paints an border with customizable images for each edge and each side.

Copyright Enough Software 2007 - 2008

Author:
Michael Koch, michael.koch@enough.de

Field Summary
 
Fields inherited from class de.enough.polish.ui.Border
borderWidth
 
Constructor Summary
MultiImageBorder(int borderWidth, javax.microedition.lcdui.Image topLeft, javax.microedition.lcdui.Image topCenter, javax.microedition.lcdui.Image topRight, javax.microedition.lcdui.Image middleLeft, javax.microedition.lcdui.Image middleRight, javax.microedition.lcdui.Image bottomLeft, javax.microedition.lcdui.Image bottomCenter, javax.microedition.lcdui.Image bottomRight)
           
MultiImageBorder(int borderWidth, java.lang.String topLeft, java.lang.String topCenter, java.lang.String topRight, java.lang.String middleLeft, java.lang.String middleRight, java.lang.String bottomLeft, java.lang.String bottomCenter, java.lang.String bottomRight)
           
 
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

MultiImageBorder

public MultiImageBorder(int borderWidth,
                        javax.microedition.lcdui.Image topLeft,
                        javax.microedition.lcdui.Image topCenter,
                        javax.microedition.lcdui.Image topRight,
                        javax.microedition.lcdui.Image middleLeft,
                        javax.microedition.lcdui.Image middleRight,
                        javax.microedition.lcdui.Image bottomLeft,
                        javax.microedition.lcdui.Image bottomCenter,
                        javax.microedition.lcdui.Image bottomRight)

MultiImageBorder

public MultiImageBorder(int borderWidth,
                        java.lang.String topLeft,
                        java.lang.String topCenter,
                        java.lang.String topRight,
                        java.lang.String middleLeft,
                        java.lang.String middleRight,
                        java.lang.String bottomLeft,
                        java.lang.String bottomCenter,
                        java.lang.String bottomRight)
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.