org.xith3d.ui.hud.widgets
Class RadioButton

java.lang.Object
  extended by org.xith3d.ui.hud.base.WidgetBase
      extended by org.xith3d.ui.hud.base.RectangularWidget
          extended by org.xith3d.ui.hud.base.StateButton
              extended by org.xith3d.ui.hud.base.LabeledStateButton
                  extended by org.xith3d.ui.hud.widgets.RadioButton
All Implemented Interfaces:
org.jagatoo.datatypes.Enableable, org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.openmali.types.twodee.Positioned2f, org.openmali.types.twodee.Positioned2fRO, org.openmali.types.twodee.Sized2f, org.openmali.types.twodee.Sized2fRO, TextWidget, Widget

public class RadioButton
extends LabeledStateButton

RadioButton implementation for your HUD.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.xith3d.ui.hud.base.LabeledStateButton
LabeledStateButton.Description
 
Nested classes/interfaces inherited from class org.xith3d.ui.hud.base.StateButton
StateButton.State
 
Nested classes/interfaces inherited from interface org.xith3d.ui.hud.base.Widget
Widget.DescriptionBase
 
Field Summary
 
Fields inherited from class org.xith3d.ui.hud.base.LabeledStateButton
buttonImage, label
 
Fields inherited from class org.xith3d.ui.hud.base.WidgetBase
containerListeners, transformGroup, translation, Z_INDEX_UNIT, Z_INDEX_UNIT_ASSEMBLER
 
Constructor Summary
RadioButton(float width, float height)
          Creates a new RadioButton
RadioButton(float width, float height, int zIndex)
          Creates a new RadioButton
RadioButton(float width, float height, int zIndex, LabeledStateButton.Description desc)
          Creates a new RadioButton
RadioButton(float width, float height, int zIndex, LabeledStateButton.Description desc, java.lang.String text)
          Creates a new RadioButton
RadioButton(float width, float height, int zIndex, java.lang.String text)
          Creates a new RadioButton
RadioButton(float width, float height, LabeledStateButton.Description desc)
          Creates a new RadioButton
RadioButton(float width, float height, LabeledStateButton.Description desc, java.lang.String text)
          Creates a new RadioButton
RadioButton(float width, float height, java.lang.String text)
          Creates a new RadioButton
RadioButton(org.openmali.types.twodee.Sized2fRO size)
          Creates a new RadioButton
RadioButton(org.openmali.types.twodee.Sized2fRO size, int zIndex)
          Creates a new RadioButton
RadioButton(org.openmali.types.twodee.Sized2fRO size, int zIndex, LabeledStateButton.Description desc)
          Creates a new RadioButton
RadioButton(org.openmali.types.twodee.Sized2fRO size, int zIndex, LabeledStateButton.Description desc, java.lang.String text)
          Creates a new RadioButton
RadioButton(org.openmali.types.twodee.Sized2fRO size, int zIndex, java.lang.String text)
          Creates a new RadioButton
RadioButton(org.openmali.types.twodee.Sized2fRO size, LabeledStateButton.Description desc)
          Creates a new RadioButton
RadioButton(org.openmali.types.twodee.Sized2fRO size, LabeledStateButton.Description desc, java.lang.String text)
          Creates a new RadioButton
RadioButton(org.openmali.types.twodee.Sized2fRO size, java.lang.String text)
          Creates a new RadioButton
 
Method Summary
protected  void cycleState()
          
 
Methods inherited from class org.xith3d.ui.hud.base.LabeledStateButton
getAlignment, getFont, getFontColor, getFontColorDisabled, getFontDisabled, getText, getTransparency, init, onStateChanged, setAlignment, setEnabledImpl, setFont, setFontColor, setFontColorDisabled, setFontDisabled, setSize, setText
 
Methods inherited from class org.xith3d.ui.hud.base.StateButton
addStateListener, getBooleanState, getState, getStateGroup, isEnabled, notifyListeners, onMouseButtonPressed, onMouseEntered, onMouseLeft, removeStateListener, setEnabled, setState, setState, setStateGroup
 
Methods inherited from class org.xith3d.ui.hud.base.RectangularWidget
getPickHeight, getPickSGZPosition, getPickWidth, pick
 
Methods inherited from class org.xith3d.ui.hud.base.WidgetBase
addContainerListener, addFocusListener, addInputListener, addLocationListener, addSizeListener, addVisibilityListener, detach, detach, getAspect, getAssembly, getCachedToolTipWidget, getContainer, getContextMenu, getCursor, getHeight, getHUD, getInheritedCursor, getLeft, getLocation, getName, getSGNode, getSGZPosition, getSize, getToolTip, getTop, getUserObject, getWidgetAssembler, getWidth, getZIndex, hasFocus, hasFocus, hasToolTip, isClickable, isDraggable, isFocussable, isInitialized, isInitializing, isPickable, isVisible, onAddedToContainer, onAddedToHUD, onControllerAxisChanged, onControllerButtonPressed, onControllerButtonReleased, onDetached, onFocusGained, onFocusLost, onInputStateChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseButtonReleased, onMouseMoved, onMouseStopped, onMouseUnbound, onMouseWheelMoved, onRemovedFromContainer, pickWidgetAssembler, removeContainerListener, removeFocusListener, removeInputListener, removeLocationListener, removeSizeListener, removeVisibilityListener, requestFocus, setAssembly, setCachedToolTipWidget, setClickable, setContainer, setContextMenu, setCursor, setDraggable, setFocussable, setHeight, setLocation, setLocation, setLocation, setName, setPickable, setSize, setSize, setSize, setToolTip, setTransparency, setUserObject, setVisible, setWidth, setZIndex, toString, update, updateTranslation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xith3d.ui.hud.base.Widget
addContainerListener, addFocusListener, addInputListener, addLocationListener, addSizeListener, addVisibilityListener, detach, detach, getAspect, getAssembly, getCachedToolTipWidget, getContainer, getContextMenu, getCursor, getHeight, getHUD, getInheritedCursor, getLeft, getLocation, getName, getSGNode, getSGZPosition, getSize, getToolTip, getTop, getUserObject, getWidth, getZIndex, hasFocus, hasFocus, hasToolTip, isClickable, isDraggable, isFocussable, isPickable, isVisible, onControllerAxisChanged, onControllerButtonPressed, onControllerButtonReleased, onDetached, onFocusGained, onFocusLost, onInputStateChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseButtonPressed, onMouseButtonReleased, onMouseEntered, onMouseLeft, onMouseMoved, onMouseStopped, onMouseUnbound, onMouseWheelMoved, pick, removeContainerListener, removeFocusListener, removeInputListener, removeLocationListener, removeSizeListener, removeVisibilityListener, requestFocus, setAssembly, setCachedToolTipWidget, setClickable, setContainer, setContextMenu, setCursor, setDraggable, setFocussable, setLocation, setLocation, setName, setPickable, setSize, setSize, setSize, setToolTip, setTransparency, setUserObject, setVisible, setZIndex, update
 
Methods inherited from interface org.openmali.types.twodee.Sized2f
setHeight, setWidth
 

Constructor Detail

RadioButton

public RadioButton(float width,
                   float height,
                   int zIndex,
                   LabeledStateButton.Description desc,
                   java.lang.String text)
Creates a new RadioButton

Parameters:
width - the desired width
height - the desired height
zIndex - the desired z-index
desc - the Description object for this Widget
text - the text to be displayed

RadioButton

public RadioButton(float width,
                   float height,
                   LabeledStateButton.Description desc,
                   java.lang.String text)
Creates a new RadioButton

Parameters:
width - the desired width
height - the desired height
desc - the Description object for this Widget
text - the text to be displayed

RadioButton

public RadioButton(float width,
                   float height,
                   int zIndex,
                   LabeledStateButton.Description desc)
Creates a new RadioButton

Parameters:
width - the desired width
height - the desired height
zIndex - the desired z-index
desc - the Description object for this Widget

RadioButton

public RadioButton(float width,
                   float height,
                   LabeledStateButton.Description desc)
Creates a new RadioButton

Parameters:
width - the desired width
height - the desired height
desc - the Description object for this Widget

RadioButton

public RadioButton(float width,
                   float height,
                   int zIndex,
                   java.lang.String text)
Creates a new RadioButton

Parameters:
width - the desired width
height - the desired height
zIndex - the desired z-index
text - the text to be displayed

RadioButton

public RadioButton(float width,
                   float height,
                   java.lang.String text)
Creates a new RadioButton

Parameters:
width - the desired width
height - the desired height
text - the text to be displayed

RadioButton

public RadioButton(float width,
                   float height,
                   int zIndex)
Creates a new RadioButton

Parameters:
width - the desired width
height - the desired height
zIndex - the desired z-index

RadioButton

public RadioButton(float width,
                   float height)
Creates a new RadioButton

Parameters:
width - the desired width
height - the desired height

RadioButton

public RadioButton(org.openmali.types.twodee.Sized2fRO size,
                   int zIndex,
                   LabeledStateButton.Description desc,
                   java.lang.String text)
Creates a new RadioButton

Parameters:
size - the desired size
zIndex - the desired z-index
desc - the Description object for this Widget
text - the text to be displayed

RadioButton

public RadioButton(org.openmali.types.twodee.Sized2fRO size,
                   LabeledStateButton.Description desc,
                   java.lang.String text)
Creates a new RadioButton

Parameters:
size - the desired size
desc - the Description object for this Widget
text - the text to be displayed

RadioButton

public RadioButton(org.openmali.types.twodee.Sized2fRO size,
                   int zIndex,
                   LabeledStateButton.Description desc)
Creates a new RadioButton

Parameters:
size - the desired size
zIndex - the desired z-index
desc - the Description object for this Widget

RadioButton

public RadioButton(org.openmali.types.twodee.Sized2fRO size,
                   LabeledStateButton.Description desc)
Creates a new RadioButton

Parameters:
size - the desired size
desc - the Description object for this Widget

RadioButton

public RadioButton(org.openmali.types.twodee.Sized2fRO size,
                   int zIndex,
                   java.lang.String text)
Creates a new RadioButton

Parameters:
size - the desired size
zIndex - the desired z-index
text - the text to be displayed

RadioButton

public RadioButton(org.openmali.types.twodee.Sized2fRO size,
                   java.lang.String text)
Creates a new RadioButton

Parameters:
size - the desired size
text - the text to be displayed

RadioButton

public RadioButton(org.openmali.types.twodee.Sized2fRO size,
                   int zIndex)
Creates a new RadioButton

Parameters:
size - the desired size
zIndex - the desired z-index

RadioButton

public RadioButton(org.openmali.types.twodee.Sized2fRO size)
Creates a new RadioButton

Parameters:
size - the desired size
Method Detail

cycleState

protected void cycleState()

Overrides:
cycleState in class StateButton