org.xith3d.ui.hud.base
Class LabeledStateButton.Description

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

public static class LabeledStateButton.Description
extends Widget.DescriptionBase

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


Constructor Summary
LabeledStateButton.Description(LabeledStateButton.Description desc)
          Clone-Constructor
LabeledStateButton.Description(java.lang.String texDeactivatedNormal, java.lang.String texDeactivatedHovered, java.lang.String texActivatedNormal, java.lang.String texActivatedHovered, int space, Label.Description labelDesc)
          Create a new LabeledStateButton.Description
LabeledStateButton.Description(Texture2D texDeactivatedNormal, Texture2D texDeactivatedHovered, Texture2D texActivatedNormal, Texture2D texActivatedHovered, int space, Label.Description labelDesc)
          Create a new LabeledStateButton.Description
 
Method Summary
 LabeledStateButton.Description clone()
          Clones LabeledStateButton.Description
 Label.Description getLabelDescription()
           
 int getSpace()
           
 Texture2D getTexture(boolean state, boolean hovered)
           
 void set(LabeledStateButton.Description desc)
          Clone-Constructor
 void setLabelDescription(Label.Description labelDesc)
           
 void setSpace(int space)
           
 void setTexture(boolean state, boolean hovered, java.lang.String name)
           
 void setTexture(boolean state, boolean hovered, Texture2D texture)
           
 
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

LabeledStateButton.Description

public LabeledStateButton.Description(LabeledStateButton.Description desc)
Clone-Constructor


LabeledStateButton.Description

public LabeledStateButton.Description(Texture2D texDeactivatedNormal,
                                      Texture2D texDeactivatedHovered,
                                      Texture2D texActivatedNormal,
                                      Texture2D texActivatedHovered,
                                      int space,
                                      Label.Description labelDesc)
Create a new LabeledStateButton.Description

Parameters:
texDeactivatedNormal - Texture for DEACTIVATED_NORMAL state
texDeactivatedHovered - Texture for DEACTIVATED_HOVERED state
texActivatedNormal - Texture for ACTIVATED_NORMAL state
texActivatedHovered - Texture for ACTIVATED_HOVERED state
imageSize - size of the state images
space - space between the Image and the Label
labelDesc - description of the Label

LabeledStateButton.Description

public LabeledStateButton.Description(java.lang.String texDeactivatedNormal,
                                      java.lang.String texDeactivatedHovered,
                                      java.lang.String texActivatedNormal,
                                      java.lang.String texActivatedHovered,
                                      int space,
                                      Label.Description labelDesc)
Create a new LabeledStateButton.Description

Parameters:
texDeactivatedNormal - Texture for DEACTIVATED_NORMAL state
texDeactivatedHovered - Texture for DEACTIVATED_HOVERED state
texActivatedNormal - Texture for ACTIVATED_NORMAL state
texActivatedHovered - Texture for ACTIVATED_HOVERED state
imageSize - size of the state images
space - space between the Image and the Label
labelDesc - description of the Label
Method Detail

setTexture

public void setTexture(boolean state,
                       boolean hovered,
                       Texture2D texture)

setTexture

public void setTexture(boolean state,
                       boolean hovered,
                       java.lang.String name)

getTexture

public final Texture2D getTexture(boolean state,
                                  boolean hovered)

setSpace

public void setSpace(int space)

getSpace

public final int getSpace()

setLabelDescription

public void setLabelDescription(Label.Description labelDesc)

getLabelDescription

public final Label.Description getLabelDescription()

set

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


clone

public LabeledStateButton.Description clone()
Clones LabeledStateButton.Description

Overrides:
clone in class java.lang.Object