com.incrediblesoft.redjey.borders
Class AbstractBorder

java.lang.Object
  extended by com.incrediblesoft.redjey.borders.AbstractBorder
Direct Known Subclasses:
SimpleBorder, SkinnedBorder

public abstract class AbstractBorder
extends java.lang.Object


Constructor Summary
AbstractBorder()
          Creates a new border.
AbstractBorder(java.util.Hashtable styleDesc)
           
 
Method Summary
abstract  AbstractBorder clone()
           
abstract  int getBottomBorderWidth()
           
abstract  int getLeftBorderWidth()
           
abstract  int getMinHeight()
           
abstract  int getMinWidth()
           
abstract  int getRightBorderWidth()
           
abstract  int getTopBorderWidth()
           
abstract  void paint(javax.microedition.lcdui.Graphics g, int x, int y, int width, int height)
          Paints this border.
 void tick(int dt)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBorder

public AbstractBorder()
Creates a new border. The width of this border is set to the default value 1 here.


AbstractBorder

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

getLeftBorderWidth

public abstract int getLeftBorderWidth()

getTopBorderWidth

public abstract int getTopBorderWidth()

getRightBorderWidth

public abstract int getRightBorderWidth()

getBottomBorderWidth

public abstract int getBottomBorderWidth()

getMinWidth

public abstract int getMinWidth()

getMinHeight

public abstract int getMinHeight()

tick

public void tick(int dt)

paint

public abstract void paint(javax.microedition.lcdui.Graphics g,
                           int x,
                           int y,
                           int width,
                           int height)
Paints this 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.

clone

public abstract AbstractBorder clone()
Overrides:
clone in class java.lang.Object