org.xith3d.ui.hud.base
Class BackgroundSettableWidget.BackgroundSettableDescriptionBase

java.lang.Object
  extended by org.xith3d.ui.hud.base.Widget.DescriptionBase
      extended by org.xith3d.ui.hud.base.BackgroundSettableWidget.BackgroundSettableDescriptionBase
Direct Known Subclasses:
HUDConsole.Description, ProgressBar.Description
Enclosing class:
BackgroundSettableWidget

protected abstract static class BackgroundSettableWidget.BackgroundSettableDescriptionBase
extends Widget.DescriptionBase


Constructor Summary
BackgroundSettableWidget.BackgroundSettableDescriptionBase(org.openmali.vecmath2.Colorf backgroundColor, Texture2D backgroundTexture)
          Creates a new Label.Description.
 
Method Summary
abstract  BackgroundSettableWidget.BackgroundSettableDescriptionBase clone()
          Returns a clone of this instance.
 org.openmali.vecmath2.Colorf getBackgroundColor()
          Returns the background color of this Widget.
 Texture2D getBackgroundTexture()
          Returns the background texture of this Widget.
 void setBackgroundColor(org.openmali.vecmath2.Colorf color)
          Sets the background color of this Widget.
 void setBackgroundTexture(java.lang.String texture)
          Sets the background texture of this Widget.
 void setBackgroundTexture(Texture2D texture)
          Sets the background texture of this Widget.
protected  void setBgSDB(BackgroundSettableWidget.BackgroundSettableDescriptionBase desc)
          Clon-Constructor
 
Methods inherited from class org.xith3d.ui.hud.base.Widget.DescriptionBase
toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BackgroundSettableWidget.BackgroundSettableDescriptionBase

public BackgroundSettableWidget.BackgroundSettableDescriptionBase(org.openmali.vecmath2.Colorf backgroundColor,
                                                                  Texture2D backgroundTexture)
Creates a new Label.Description.

Parameters:
font - the Font to be used for the text
color - the color to be used
alignment - the horizontal and vertical alignment
bgTex - the background texture
Method Detail

setBackgroundColor

public void setBackgroundColor(org.openmali.vecmath2.Colorf color)
Sets the background color of this Widget.

Parameters:
color - the color to use

getBackgroundColor

public final org.openmali.vecmath2.Colorf getBackgroundColor()
Returns the background color of this Widget.

Returns:
the background color of this Widget.

setBackgroundTexture

public void setBackgroundTexture(Texture2D texture)
Sets the background texture of this Widget.

Parameters:
texture - the texture to use

setBackgroundTexture

public final void setBackgroundTexture(java.lang.String texture)
Sets the background texture of this Widget.

Parameters:
texture - the texture resource to use

getBackgroundTexture

public final Texture2D getBackgroundTexture()
Returns the background texture of this Widget.

Returns:
the background texture of this Widget.

setBgSDB

protected void setBgSDB(BackgroundSettableWidget.BackgroundSettableDescriptionBase desc)
Clon-Constructor

Parameters:
desc - the original to clone

clone

public abstract BackgroundSettableWidget.BackgroundSettableDescriptionBase clone()
Returns a clone of this instance.

Overrides:
clone in class java.lang.Object
Returns:
a clone of this instance.