org.xith3d.ui.hud.widgets
Class EmptyBorder

java.lang.Object
  extended by org.xith3d.ui.hud.widgets.EmptyBorder
All Implemented Interfaces:
Border

public class EmptyBorder
extends java.lang.Object
implements Border

An EmptyBorder is a Border implementation without a visible component.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.xith3d.ui.hud.base.Border
Border.Description
 
Field Summary
protected  Border.Description desc
           
 
Constructor Summary
EmptyBorder(float width)
          Creates a new EmptyBorder with all sides of the same width.
EmptyBorder(float bottomHeight, float rightWidth, float topHeight, float leftWidth)
          Creates a new EmptyBorder with the given side widths.
 
Method Summary
 float getBottomHeight()
          
 float getLeftWidth()
          
 float getRightWidth()
          
 float getTopHeight()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

desc

protected Border.Description desc
Constructor Detail

EmptyBorder

public EmptyBorder(float bottomHeight,
                   float rightWidth,
                   float topHeight,
                   float leftWidth)
Creates a new EmptyBorder with the given side widths.

Parameters:
bottomHeight -
rightWidth -
topHeight -
leftWidth -

EmptyBorder

public EmptyBorder(float width)
Creates a new EmptyBorder with all sides of the same width.

Parameters:
width -
Method Detail

getBottomHeight

public float getBottomHeight()

Specified by:
getBottomHeight in interface Border
Returns:
the height of the bottom side of this Border

getRightWidth

public float getRightWidth()

Specified by:
getRightWidth in interface Border
Returns:
the width of the right side of this Border

getTopHeight

public float getTopHeight()

Specified by:
getTopHeight in interface Border
Returns:
the height of the top side of this Border

getLeftWidth

public float getLeftWidth()

Specified by:
getLeftWidth in interface Border
Returns:
the width of the left side of this Border