org.xith3d.ui.hud.borders
Class ColoredBorder

java.lang.Object
  extended by org.xith3d.ui.hud.base.Border
      extended by org.xith3d.ui.hud.borders.ColoredBorder

public class ColoredBorder
extends Border

A ColoredBorder is a Border implementation with no Textures but only a color.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.xith3d.ui.hud.base.Border
Border.Description
 
Constructor Summary
ColoredBorder(int width, org.openmali.vecmath2.Colorf color)
          Creates a new ColoredBorder with all sides of the same width.
ColoredBorder(int bottomHeight, int rightWidth, int topHeight, int leftWidth, org.openmali.vecmath2.Colorf color)
          Creates a new ColoredBorder with the given side widths.
 
Method Summary
 void drawBorder(Texture2DCanvas texCanvas, int offsetX, int offsetY, int width, int height, Widget hostWidget)
          
 org.openmali.vecmath2.Colorf getColor()
          Returns the border's color.
 void setColor(org.openmali.vecmath2.Colorf color)
          Sets the border's color.
 
Methods inherited from class org.xith3d.ui.hud.base.Border
getBottomHeight, getLeftWidth, getRightWidth, getTopHeight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColoredBorder

public ColoredBorder(int bottomHeight,
                     int rightWidth,
                     int topHeight,
                     int leftWidth,
                     org.openmali.vecmath2.Colorf color)
Creates a new ColoredBorder with the given side widths.

Parameters:
bottomHeight -
rightWidth -
topHeight -
leftWidth -
color -

ColoredBorder

public ColoredBorder(int width,
                     org.openmali.vecmath2.Colorf color)
Creates a new ColoredBorder with all sides of the same width.

Parameters:
width -
color -
Method Detail

setColor

public void setColor(org.openmali.vecmath2.Colorf color)
Sets the border's color.

Parameters:
color -

getColor

public final org.openmali.vecmath2.Colorf getColor()
Returns the border's color.

Returns:
the border's color.

drawBorder

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

Specified by:
drawBorder in class Border