org.xith3d.ui.hud.base
Class Border

java.lang.Object
  extended by org.xith3d.ui.hud.base.Border
Direct Known Subclasses:
ColoredBorder, EmptyBorder, TexturedBorder

public abstract class Border
extends java.lang.Object

This is an interface for the most basic methods of a Border.


Nested Class Summary
static class Border.Description
          This class is used to describe a Border Widget.
 
Constructor Summary
protected Border(int bottomHeight, int rightWidth, int topHeight, int leftwidth)
           
 
Method Summary
abstract  void drawBorder(Texture2DCanvas texCanvas, int offsetX, int offsetY, int width, int height, Widget hostWidget)
           
 int getBottomHeight()
           
 int getLeftWidth()
           
 int getRightWidth()
           
 int getTopHeight()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Border

protected Border(int bottomHeight,
                 int rightWidth,
                 int topHeight,
                 int leftwidth)
Method Detail

getBottomHeight

public final int getBottomHeight()
Returns:
the height of the bottom side of this Border

getRightWidth

public final int getRightWidth()
Returns:
the width of the right side of this Border

getTopHeight

public final int getTopHeight()
Returns:
the height of the top side of this Border

getLeftWidth

public final int getLeftWidth()
Returns:
the width of the left side of this Border

drawBorder

public abstract void drawBorder(Texture2DCanvas texCanvas,
                                int offsetX,
                                int offsetY,
                                int width,
                                int height,
                                Widget hostWidget)