org.xith3d.ui.hud.widgets
Class EmptyBorder
java.lang.Object
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.
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
desc
protected Border.Description desc
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 -
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