org.xith3d.ui.hud.widgets
Class Button.Description

java.lang.Object
  extended by org.xith3d.ui.hud.base.Widget.DescriptionBase
      extended by org.xith3d.ui.hud.widgets.Button.Description
Enclosing class:
Button

public static class Button.Description
extends Widget.DescriptionBase

This class is used to describe a Button Widget. You can pass it to the Button constructor. Modifications on the used instance after creating the Button Widget won't have any effect.


Constructor Summary
Button.Description()
           
Button.Description(int bottom, int right, int top, int left, java.lang.String texNormal, java.lang.String texHovered, java.lang.String texPressed)
           
Button.Description(int bottom, int right, int top, int left, java.lang.String texNormal, java.lang.String texHovered, java.lang.String texPressed, HUDFont font, org.openmali.vecmath2.Colorf fontColor)
           
Button.Description(int bottom, int right, int top, int left, Texture2D texNormal, Texture2D texHovered, Texture2D texPressed)
           
Button.Description(int bottom, int right, int top, int left, Texture2D texNormal, Texture2D texHovered, Texture2D texPressed, HUDFont font, org.openmali.vecmath2.Colorf fontColor)
           
Button.Description(java.lang.String texNormal, java.lang.String texHovered, java.lang.String texPressed)
           
Button.Description(Texture2D texNormal, Texture2D texHovered, Texture2D texPressed)
           
 
Method Summary
 Button.Description clone()
           
 int getBottomHeight()
           
 Label.Description getLabelDescription()
           
 int getLeftWidth()
           
 int getRightWidth()
           
 Texture2D getTextureHovered()
           
 Texture2D getTextureNormal()
           
 Texture2D getTexturePressed()
           
 int getTopHeight()
           
 void set(Button.Description desc)
          Clone-Constructor
 void setBottomHeight(int bh)
           
 void setLabelDescription(Label.Description labelDesc)
           
 void setLeftWidth(int lw)
           
 void setRightWidth(int rw)
           
 void setTextureHovered(java.lang.String texture)
           
 void setTextureHovered(Texture2D texture)
           
 void setTextureNormal(java.lang.String texture)
           
 void setTextureNormal(Texture2D texture)
           
 void setTexturePressed(java.lang.String texture)
           
 void setTexturePressed(Texture2D texture)
           
 void setTopHeight(int th)
           
 
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

Button.Description

public Button.Description(int bottom,
                          int right,
                          int top,
                          int left,
                          Texture2D texNormal,
                          Texture2D texHovered,
                          Texture2D texPressed)

Button.Description

public Button.Description(int bottom,
                          int right,
                          int top,
                          int left,
                          java.lang.String texNormal,
                          java.lang.String texHovered,
                          java.lang.String texPressed)

Button.Description

public Button.Description()

Button.Description

public Button.Description(Texture2D texNormal,
                          Texture2D texHovered,
                          Texture2D texPressed)

Button.Description

public Button.Description(java.lang.String texNormal,
                          java.lang.String texHovered,
                          java.lang.String texPressed)

Button.Description

public Button.Description(int bottom,
                          int right,
                          int top,
                          int left,
                          Texture2D texNormal,
                          Texture2D texHovered,
                          Texture2D texPressed,
                          HUDFont font,
                          org.openmali.vecmath2.Colorf fontColor)

Button.Description

public Button.Description(int bottom,
                          int right,
                          int top,
                          int left,
                          java.lang.String texNormal,
                          java.lang.String texHovered,
                          java.lang.String texPressed,
                          HUDFont font,
                          org.openmali.vecmath2.Colorf fontColor)
Method Detail

setBottomHeight

public void setBottomHeight(int bh)

getBottomHeight

public final int getBottomHeight()

setRightWidth

public void setRightWidth(int rw)

getRightWidth

public final int getRightWidth()

setTopHeight

public void setTopHeight(int th)

getTopHeight

public final int getTopHeight()

setLeftWidth

public void setLeftWidth(int lw)

getLeftWidth

public final int getLeftWidth()

setTextureNormal

public void setTextureNormal(Texture2D texture)

setTextureNormal

public final void setTextureNormal(java.lang.String texture)

getTextureNormal

public final Texture2D getTextureNormal()

setTextureHovered

public void setTextureHovered(Texture2D texture)

setTextureHovered

public final void setTextureHovered(java.lang.String texture)

getTextureHovered

public final Texture2D getTextureHovered()

setTexturePressed

public void setTexturePressed(Texture2D texture)

setTexturePressed

public final void setTexturePressed(java.lang.String texture)

getTexturePressed

public final Texture2D getTexturePressed()

setLabelDescription

public void setLabelDescription(Label.Description labelDesc)

getLabelDescription

public final Label.Description getLabelDescription()

set

public void set(Button.Description desc)
Clone-Constructor

Parameters:
desc - the original to be duplicated

clone

public Button.Description clone()
Overrides:
clone in class java.lang.Object
Returns:
a clone of this instance.