com.incrediblesoft.redjey.borders
Class SimpleBorder

java.lang.Object
  extended by com.incrediblesoft.redjey.borders.AbstractBorder
      extended by com.incrediblesoft.redjey.borders.SimpleBorder

public class SimpleBorder
extends AbstractBorder


Constructor Summary
SimpleBorder(java.util.Hashtable styleDesc)
           
SimpleBorder(int borderWidth, int color)
           
SimpleBorder(int borderWidth, int color, int arcWidth, int arcHeight)
           
 
Method Summary
 AbstractBorder clone()
           
 int getArcHeight()
           
 int getArcWidth()
           
 int getBottomBorderWidth()
           
 int getLeftBorderWidth()
           
 int getMinHeight()
           
 int getMinWidth()
           
 int getRightBorderWidth()
           
 int getTopBorderWidth()
           
 void paint(javax.microedition.lcdui.Graphics g, int x, int y, int width, int height)
          Paints this border.
 void setArcHeight(int arcHeight)
           
 void setArcWidth(int arcWidth)
           
 
Methods inherited from class com.incrediblesoft.redjey.borders.AbstractBorder
tick
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleBorder

public SimpleBorder(int borderWidth,
                    int color)

SimpleBorder

public SimpleBorder(int borderWidth,
                    int color,
                    int arcWidth,
                    int arcHeight)

SimpleBorder

public SimpleBorder(java.util.Hashtable styleDesc)
Method Detail

getLeftBorderWidth

public int getLeftBorderWidth()
Specified by:
getLeftBorderWidth in class AbstractBorder

getTopBorderWidth

public int getTopBorderWidth()
Specified by:
getTopBorderWidth in class AbstractBorder

getRightBorderWidth

public int getRightBorderWidth()
Specified by:
getRightBorderWidth in class AbstractBorder

getBottomBorderWidth

public int getBottomBorderWidth()
Specified by:
getBottomBorderWidth in class AbstractBorder

getMinWidth

public int getMinWidth()
Specified by:
getMinWidth in class AbstractBorder

getMinHeight

public int getMinHeight()
Specified by:
getMinHeight in class AbstractBorder

getArcWidth

public int getArcWidth()

setArcWidth

public void setArcWidth(int arcWidth)

getArcHeight

public int getArcHeight()

setArcHeight

public void setArcHeight(int arcHeight)

paint

public void paint(javax.microedition.lcdui.Graphics g,
                  int x,
                  int y,
                  int width,
                  int height)
Description copied from class: AbstractBorder
Paints this border.

Specified by:
paint in class AbstractBorder
Parameters:
g - the Graphics on which the border should be painted.
x - the horizontal start point
y - the vertical start point
width - the width of the border
height - the height of the border

clone

public AbstractBorder clone()
Specified by:
clone in class AbstractBorder