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()
          Create a new LabeledStateButton.Description
LabeledStateButton.Description(LabeledStateButton.Description desc)
          Clone-Constructor
LabeledStateButton.Description(java.lang.String texDeactivatedNormal, java.lang.String texActivatedNormal, float space)
          Create a new LabeledStateButton.Description
LabeledStateButton.Description(java.lang.String texDeactivatedNormal, java.lang.String texActivatedNormal, float space, Label.Description labelDesc)
          Create a new LabeledStateButton.Description
LabeledStateButton.Description(java.lang.String texDeactivatedNormal, java.lang.String texActivatedNormal, org.openmali.types.twodee.Sized2fRO imageSize, float space)
          Create a new LabeledStateButton.Description
LabeledStateButton.Description(java.lang.String texDeactivatedNormal, java.lang.String texActivatedNormal, org.openmali.types.twodee.Sized2fRO imageSize, float space, Label.Description labelDesc)
          Create a new LabeledStateButton.Description
LabeledStateButton.Description(java.lang.String texDeactivatedNormal, java.lang.String texDeactivatedHovered, java.lang.String texActivatedNormal, java.lang.String texActivatedHovered, float space)
          Create a new LabeledStateButton.Description
LabeledStateButton.Description(java.lang.String texDeactivatedNormal, java.lang.String texDeactivatedHovered, java.lang.String texActivatedNormal, java.lang.String texActivatedHovered, float space, Label.Description labelDesc)
          Create a new LabeledStateButton.Description
LabeledStateButton.Description(java.lang.String texDeactivatedNormal, java.lang.String texDeactivatedHovered, java.lang.String texActivatedNormal, java.lang.String texActivatedHovered, org.openmali.types.twodee.Sized2fRO imageSize, float space)
          Create a new LabeledStateButton.Description
LabeledStateButton.Description(java.lang.String texDeactivatedNormal, java.lang.String texDeactivatedHovered, java.lang.String texActivatedNormal, java.lang.String texActivatedHovered, org.openmali.types.twodee.Sized2fRO imageSize, float space, Label.Description labelDesc)
          Create a new LabeledStateButton.Description
LabeledStateButton.Description(Texture texDeactivatedNormal, Texture texActivatedNormal, float space)
          Create a new LabeledStateButton.Description
LabeledStateButton.Description(Texture texDeactivatedNormal, Texture texActivatedNormal, float space, Label.Description labelDesc)
          Create a new LabeledStateButton.Description
LabeledStateButton.Description(Texture texDeactivatedNormal, Texture texActivatedNormal, org.openmali.types.twodee.Sized2fRO imageSize, float space)
          Create a new LabeledStateButton.Description
LabeledStateButton.Description(Texture texDeactivatedNormal, Texture texActivatedNormal, org.openmali.types.twodee.Sized2fRO imageSize, float space, Label.Description labelDesc)
          Create a new LabeledStateButton.Description
LabeledStateButton.Description(Texture texDeactivatedNormal, Texture texDeactivatedHovered, Texture texActivatedNormal, Texture texActivatedHovered, float space)
          Create a new LabeledStateButton.Description
LabeledStateButton.Description(Texture texDeactivatedNormal, Texture texDeactivatedHovered, Texture texActivatedNormal, Texture texActivatedHovered, float space, Label.Description labelDesc)
          Create a new LabeledStateButton.Description
LabeledStateButton.Description(Texture texDeactivatedNormal, Texture texDeactivatedHovered, Texture texActivatedNormal, Texture texActivatedHovered, org.openmali.types.twodee.Sized2fRO imageSize, float space)
          Create a new LabeledStateButton.Description
LabeledStateButton.Description(Texture texDeactivatedNormal, Texture texDeactivatedHovered, Texture texActivatedNormal, Texture texActivatedHovered, org.openmali.types.twodee.Sized2fRO imageSize, float space, Label.Description labelDesc)
          Create a new LabeledStateButton.Description
 
Method Summary
 LabeledStateButton.Description clone()
          Clones LabeledStateButton.Description
 org.openmali.types.twodee.Dim2f getImageSize()
           
 Label.Description getLabelDescription()
           
 HUDUnitsMeasurement getMeasurement()
           
 float getSpace()
           
 Texture getTexture(StateButton.State state)
           
 void set(LabeledStateButton.Description desc)
          Clone-Constructor
 void setImageSize(org.openmali.types.twodee.Dim2f size)
           
 void setImageSize(float width, float height)
           
 void setLabelDescription(Label.Description labelDesc)
           
 void setMeasurement(HUDUnitsMeasurement measurement)
           
 void setSpace(float space)
           
 void setTexture(StateButton.State state, java.lang.String name)
           
 void setTexture(StateButton.State state, Texture 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(Texture texDeactivatedNormal,
                                      Texture texDeactivatedHovered,
                                      Texture texActivatedNormal,
                                      Texture texActivatedHovered,
                                      org.openmali.types.twodee.Sized2fRO imageSize,
                                      float 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(Texture texDeactivatedNormal,
                                      Texture texDeactivatedHovered,
                                      Texture texActivatedNormal,
                                      Texture texActivatedHovered,
                                      float 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
space - space between the Image and the Label
labelDesc - description of the Label

LabeledStateButton.Description

public LabeledStateButton.Description(Texture texDeactivatedNormal,
                                      Texture texDeactivatedHovered,
                                      Texture texActivatedNormal,
                                      Texture texActivatedHovered,
                                      float space)
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
space - space between the Image and the Label

LabeledStateButton.Description

public LabeledStateButton.Description(Texture texDeactivatedNormal,
                                      Texture texDeactivatedHovered,
                                      Texture texActivatedNormal,
                                      Texture texActivatedHovered,
                                      org.openmali.types.twodee.Sized2fRO imageSize,
                                      float space)
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

LabeledStateButton.Description

public LabeledStateButton.Description(Texture texDeactivatedNormal,
                                      Texture texActivatedNormal,
                                      org.openmali.types.twodee.Sized2fRO imageSize,
                                      float space,
                                      Label.Description labelDesc)
Create a new LabeledStateButton.Description

Parameters:
texDeactivatedNormal - Texture for DEACTIVATED_NORMAL state
texActivatedNormal - Texture for ACTIVATED_NORMAL 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(Texture texDeactivatedNormal,
                                      Texture texActivatedNormal,
                                      float space,
                                      Label.Description labelDesc)
Create a new LabeledStateButton.Description

Parameters:
texDeactivatedNormal - Texture for DEACTIVATED_NORMAL state
texActivatedNormal - Texture for ACTIVATED_NORMAL state
space - space between the Image and the Label
labelDesc - description of the Label

LabeledStateButton.Description

public LabeledStateButton.Description(Texture texDeactivatedNormal,
                                      Texture texActivatedNormal,
                                      org.openmali.types.twodee.Sized2fRO imageSize,
                                      float space)
Create a new LabeledStateButton.Description

Parameters:
texDeactivatedNormal - Texture for DEACTIVATED_NORMAL state
texActivatedNormal - Texture for ACTIVATED_NORMAL state
imageSize - size of the state images
space - space between the Image and the Label

LabeledStateButton.Description

public LabeledStateButton.Description(Texture texDeactivatedNormal,
                                      Texture texActivatedNormal,
                                      float space)
Create a new LabeledStateButton.Description

Parameters:
texDeactivatedNormal - Texture for DEACTIVATED_NORMAL state
texActivatedNormal - Texture for ACTIVATED_NORMAL state
space - space between the Image and the Label

LabeledStateButton.Description

public LabeledStateButton.Description(java.lang.String texDeactivatedNormal,
                                      java.lang.String texDeactivatedHovered,
                                      java.lang.String texActivatedNormal,
                                      java.lang.String texActivatedHovered,
                                      org.openmali.types.twodee.Sized2fRO imageSize,
                                      float 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,
                                      float 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
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,
                                      float space)
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
space - space between the Image and the Label

LabeledStateButton.Description

public LabeledStateButton.Description(java.lang.String texDeactivatedNormal,
                                      java.lang.String texDeactivatedHovered,
                                      java.lang.String texActivatedNormal,
                                      java.lang.String texActivatedHovered,
                                      org.openmali.types.twodee.Sized2fRO imageSize,
                                      float space)
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

LabeledStateButton.Description

public LabeledStateButton.Description(java.lang.String texDeactivatedNormal,
                                      java.lang.String texActivatedNormal,
                                      org.openmali.types.twodee.Sized2fRO imageSize,
                                      float space,
                                      Label.Description labelDesc)
Create a new LabeledStateButton.Description

Parameters:
texDeactivatedNormal - Texture for DEACTIVATED_NORMAL state
texActivatedNormal - Texture for ACTIVATED_NORMAL 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 texActivatedNormal,
                                      float space,
                                      Label.Description labelDesc)
Create a new LabeledStateButton.Description

Parameters:
texDeactivatedNormal - Texture for DEACTIVATED_NORMAL state
texActivatedNormal - Texture for ACTIVATED_NORMAL state
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 texActivatedNormal,
                                      org.openmali.types.twodee.Sized2fRO imageSize,
                                      float space)
Create a new LabeledStateButton.Description

Parameters:
texDeactivatedNormal - Texture for DEACTIVATED_NORMAL state
texActivatedNormal - Texture for ACTIVATED_NORMAL state
imageSize - size of the state images
space - space between the Image and the Label

LabeledStateButton.Description

public LabeledStateButton.Description(java.lang.String texDeactivatedNormal,
                                      java.lang.String texActivatedNormal,
                                      float space)
Create a new LabeledStateButton.Description

Parameters:
texDeactivatedNormal - Texture for DEACTIVATED_NORMAL state
texActivatedNormal - Texture for ACTIVATED_NORMAL state
space - space between the Image and the Label

LabeledStateButton.Description

public LabeledStateButton.Description()
Create a new LabeledStateButton.Description

Method Detail

setTexture

public void setTexture(StateButton.State state,
                       Texture texture)

setTexture

public void setTexture(StateButton.State state,
                       java.lang.String name)

getTexture

public Texture getTexture(StateButton.State state)

setMeasurement

public void setMeasurement(HUDUnitsMeasurement measurement)

getMeasurement

public HUDUnitsMeasurement getMeasurement()

setImageSize

public void setImageSize(org.openmali.types.twodee.Dim2f size)

setImageSize

public void setImageSize(float width,
                         float height)

getImageSize

public org.openmali.types.twodee.Dim2f getImageSize()

setSpace

public void setSpace(float space)

getSpace

public float getSpace()

setLabelDescription

public void setLabelDescription(Label.Description labelDesc)

getLabelDescription

public 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