|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.base.Border
org.xith3d.ui.hud.borders.TexturedBorder
public class TexturedBorder
A TexturedBorder 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 | |
|---|---|
TexturedBorder(Border.Description description)
Creates a new TexturedBorder with the given side widths specified in the given description. |
|
TexturedBorder(int bottomHeight,
int rightWidth,
int topHeight,
int leftWidth,
java.lang.String texture)
Creates a new TexturedBorder with the given side widths and texture. |
|
TexturedBorder(int bottomHeight,
int rightWidth,
int topHeight,
int leftWidth,
Texture2D texture)
Creates a new TexturedBorder with the given sides and texture. |
|
TexturedBorder(int width,
java.lang.String texture)
Creates a new TexturedBorder with all sides of the same width and the given texture. |
|
TexturedBorder(int width,
Texture2D texture)
Creates a new TexturedBorder with all sides of the same width and the given texture. |
|
| Method Summary | |
|---|---|
void |
drawBorder(Texture2DCanvas texCanvas,
int offsetX,
int offsetY,
int width,
int height,
Widget hostWidget)
|
Texture2D |
getTexture()
Returns the border's texture. |
void |
setTexture(Texture2D texture)
Sets the border's texture. |
| 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 |
|---|
public TexturedBorder(int bottomHeight,
int rightWidth,
int topHeight,
int leftWidth,
Texture2D texture)
TexturedBorder with the given sides and texture.
bottomHeight - the bottom heightrightWidth - the right widthtopHeight - the top heightleftWidth - the left widthtexture - the texture to use
public TexturedBorder(int width,
Texture2D texture)
TexturedBorder with all sides of the same width and the given texture.
width - the width to use for all sidestexture - the texture to usepublic TexturedBorder(Border.Description description)
TexturedBorder with the given side widths specified in the given description.
description - the Border.Description where to take the widths from
public TexturedBorder(int bottomHeight,
int rightWidth,
int topHeight,
int leftWidth,
java.lang.String texture)
TexturedBorder with the given side widths and texture.
bottomHeight - the bottom heightrightWidth - the right widthtopHeight - the top heightleftWidth - the left widthtexture - the resource name of the texture to use
public TexturedBorder(int width,
java.lang.String texture)
TexturedBorder with all sides of the same width and the given texture.
width - the width to use for all sidestexture - the resource name of the texture to use| Method Detail |
|---|
public void setTexture(Texture2D texture)
texture - the texture to usepublic final Texture2D getTexture()
public void drawBorder(Texture2DCanvas texCanvas,
int offsetX,
int offsetY,
int width,
int height,
Widget hostWidget)
drawBorder in class Border
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||