|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.base.Widget
org.xith3d.ui.hud.base.BackgroundSettableWidget
public abstract class BackgroundSettableWidget
This class implements a base for rectangular Widgets, which are BackgroundSettable
| Nested Class Summary | |
|---|---|
protected static class |
BackgroundSettableWidget.BackgroundSettableDescriptionBase
|
| Nested classes/interfaces inherited from class org.xith3d.ui.hud.base.Widget |
|---|
Widget.DescriptionBase |
| Field Summary |
|---|
| Fields inherited from class org.xith3d.ui.hud.base.Widget |
|---|
transformHeight_Pixels2HUD, transformWidth_Pixels2HUD |
| Constructor Summary | |
|---|---|
protected |
BackgroundSettableWidget(boolean isHeavyWeight,
boolean hasWidgetAssembler,
org.openmali.vecmath2.Colorf backgroundColor,
Texture2D backgroundTexture,
TileMode tileMode)
Creates a new BackgroundSettableWidget. |
protected |
BackgroundSettableWidget(boolean isHeavyWeight,
boolean hasWidgetAssembler,
float width,
float height,
org.openmali.vecmath2.Colorf backgroundColor,
Texture2D backgroundTexture,
TileMode tileMode)
Creates a new BackgroundSettableWidget with the given width and height. |
| Method Summary | |
|---|---|
protected void |
drawBackground(Texture2DCanvas texCanvas,
int offsetX,
int offsetY,
int width,
int height)
Draws the Widget's background. |
org.openmali.vecmath2.Colorf |
getBackgroundColor()
|
Texture2D |
getBackgroundTexture()
|
TileMode |
getBackgroundTileMode()
|
void |
setBackground(org.openmali.vecmath2.Colorf color,
java.lang.String texture)
Sets background color and texture at once. |
void |
setBackground(org.openmali.vecmath2.Colorf color,
java.lang.String texture,
TileMode tileMode)
Sets background color and texture at once. |
void |
setBackground(org.openmali.vecmath2.Colorf color,
Texture2D texture,
TileMode tileMode)
Sets background color and texture at once. |
void |
setBackgroundColor(org.openmali.vecmath2.Colorf color)
Sets the background color of the Widget. |
void |
setBackgroundTexture(java.lang.String texture)
Sets the background Texture of the Widget. |
void |
setBackgroundTexture(java.lang.String texture,
TileMode tileMode)
Sets the background Texture of the Widget. |
void |
setBackgroundTexture(Texture2D texture)
Sets the background texture of the Widget. |
void |
setBackgroundTexture(Texture2D texture,
TileMode tileMode)
Sets the background texture of the Widget. |
void |
setBackgroundTileMode(TileMode mode)
Sets the background tile mode (null for no tiling) |
void |
setNoBackground()
Sets background color and texture to nothing at once. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected BackgroundSettableWidget(boolean isHeavyWeight,
boolean hasWidgetAssembler,
org.openmali.vecmath2.Colorf backgroundColor,
Texture2D backgroundTexture,
TileMode tileMode)
isHeavyWeight - hasWidgetAssembler - backgroundColor - backgroundTexture - tileMode -
protected BackgroundSettableWidget(boolean isHeavyWeight,
boolean hasWidgetAssembler,
float width,
float height,
org.openmali.vecmath2.Colorf backgroundColor,
Texture2D backgroundTexture,
TileMode tileMode)
isHeavyWeight - hasWidgetAssembler - width - the new width of this Widgetheight - the new height of this WidgetbackgroundColor - backgroundTexture - tileMode - | Method Detail |
|---|
public void setBackgroundColor(org.openmali.vecmath2.Colorf color)
color - the color to usepublic final org.openmali.vecmath2.Colorf getBackgroundColor()
public void setBackgroundTexture(Texture2D texture)
texture - the texture resource to use
public void setBackgroundTexture(Texture2D texture,
TileMode tileMode)
texture - the texture resource to usetileMode - public final void setBackgroundTexture(java.lang.String texture)
texture - the texture resource to use
public final void setBackgroundTexture(java.lang.String texture,
TileMode tileMode)
texture - the texture resource to use
public final void setBackground(org.openmali.vecmath2.Colorf color,
java.lang.String texture,
TileMode tileMode)
color - texture - tileMode -
public final void setBackground(org.openmali.vecmath2.Colorf color,
Texture2D texture,
TileMode tileMode)
color - texture - tileMode -
public final void setBackground(org.openmali.vecmath2.Colorf color,
java.lang.String texture)
color - texture - public final void setNoBackground()
public final Texture2D getBackgroundTexture()
public void setBackgroundTileMode(TileMode mode)
mode - public final TileMode getBackgroundTileMode()
protected void drawBackground(Texture2DCanvas texCanvas,
int offsetX,
int offsetY,
int width,
int height)
drawBackground in class Widget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||