org.xith3d.ui.hud.widgets
Class RadioButton

java.lang.Object
  extended by org.xith3d.ui.hud.base.Widget
      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, AutoSizable, TextWidget

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.Widget
Widget.DescriptionBase
 
Field Summary
 
Fields inherited from class org.xith3d.ui.hud.base.LabeledStateButton
DEFAULT_HEAVYWEIGHT
 
Fields inherited from class org.xith3d.ui.hud.base.Widget
transformHeight_Pixels2HUD, transformWidth_Pixels2HUD
 
Constructor Summary
RadioButton(boolean isHeavyWeight, float width, float height, java.lang.String text)
          Creates a new RadioButton
RadioButton(boolean isHeavyWeight, float width, float height, java.lang.String text, HUDFont font, org.openmali.vecmath2.Colorf fontColor)
          Creates a new RadioButton.
RadioButton(boolean isHeavyWeight, float width, float height, java.lang.String text, LabeledStateButton.Description desc)
          Creates a new RadioButton
RadioButton(float width, float height, java.lang.String text)
          Creates a new RadioButton
RadioButton(float width, float height, java.lang.String text, HUDFont font, org.openmali.vecmath2.Colorf fontColor)
          Creates a new RadioButton.
RadioButton(float width, float height, java.lang.String text, LabeledStateButton.Description desc)
          Creates a new RadioButton
 
Method Summary
protected  void cycleState()
          
 
Methods inherited from class org.xith3d.ui.hud.base.LabeledStateButton
drawWidget, drawWidgetAfterWidgetAssembler, getAlignment, getBackgroundColor, getBackgroundTexture, getBackgroundTileMode, getFont, getFontColor, getFontColorDisabled, getFontDisabled, getMinimalHeight, getMinimalSize, getMinimalWidth, getText, init, initSize, isAutoSizeEnabled, isMouseOverStateImage, onExtendedStateChanged, onSizeChanged, setAlignment, setAutoSizeEnabled, setBackground, setBackground, setBackgroundColor, setBackgroundTexture, setBackgroundTexture, setBackgroundTileMode, setEnabledImpl, setFont, setFontColor, setFontColorDisabled, setFontDisabled, setMinimalSize, setNoBackground, setText
 
Methods inherited from class org.xith3d.ui.hud.base.StateButton
addStateListener, getState, getStateGroup, isEnabled, notifyListeners, onMouseButtonPressed, onMouseEntered, onMouseExited, removeStateListener, setEnabled, setState, setStateGroup
 
Methods inherited from class org.xith3d.ui.hud.base.Widget
addContainerListener, addControllerListener, addFocusListener, addInputListener, addKeyboardListener, addLocationListener, addMouseListener, addSizeListener, addVisibilityListener, bindToGlobalMouseMovement, blocksFocusMoveDeviceComponent, calculateTransformHeight_Pixels2HUD, calculateTransformWidth_Pixels2HUD, compareAbsZIndex, createShape, detach, drawAndUpdateWidget, drawBackground, drawBorder, drawWidgetContents, getAbsoluteLocationOnHUD_, getAspect, getAssembly, getBorder, getContainer, getContentAspect, getContentHeight, getContentHeightPX, getContentLeftPX, getContentOffset, getContentTopPX, getContentWidth, getContentWidthPX, getContextMenu, getCursor, getEqualHeight_, getEqualWidth_, getForcedRedrawFrequency, getHeight, getHeightPX, getHUD, getLeft, getLevel, getLocation, getLocation, getLocationHUD2Pixels_, getLocationHUD2SG_, getLocationPixels2HUD_, getLocationSG2HUD_, getMaxRedrawFrequency, getMinHeight, getMinWidth, getName, getParentWindow, getPickHeight, getPickWidth, getRelLocationHUD2Pixels_, getRootHostWidget, getShape, getSize, getSizeHUD2Pixels_, getSizeHUD2SG_, getSizeOfPixels_, getSizePixels2HUD_, getSizeSG2HUD_, getToolTip, getTop, getTransparency, getUserObject, getWidgetAssembler, getWidth, getWidthPX, getZIndex, hasDropShadow, hasFocus, hasFocus, hasToolTip, isAHostedWidgetDirty, isClickable, isDraggable, isFocussable, isHeavyWeight, isHovered, isInitialized, isInitializing, isPickable, isThisWidgetDirty, isVisible, notifyOnDragStopped, onAttachedToContainer, onAttachedToHUD, onControllerAxisChanged, onControllerButtonPressed, onControllerButtonReleased, onDetachedFromContainer, onDetachedFromHUD, onFocusGained, onFocusLost, onInputStateChanged, onKeyPressed, onKeyReleased, onKeyTyped, onLocationChanged, onMouseButtonReleased, onMouseMoved, onMouseStopped, onMouseWheelMoved, onVisibilityChanged, pick, pickConditionsMatch, removeContainerListener, removeControllerListener, removeFocusListener, removeInputListener, removeKeyboardListener, removeLocationListener, removeMouseListener, removeSizeListener, removeVisibilityListener, requestFocus, resetWidgetDirty, setBorder, setBorder, setClickable, setContentClipRect, setContextMenu, setCursor, setDraggable, setFocussable, setForcedRedrawFrequency, setHasDropShadow, setHeight, setHostedWidgetDirty, setHostTextureDirty, setHostTextureDirty, setHostWidget, setLocation, setLocation, setLocation, setMaxRedrawFrequency, setName, setPickable, setSize, setSize, setSize, setSize, setTextureDirty, setTextureDirty, setToolTip, setTransparency, setTransparency, setUserObject, setVisible, setWidgetDirty, setWidth, setZIndex, startDragging, toString, update, updateAbsZIndex, updateSizeFactors, updateTranslation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RadioButton

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

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

RadioButton

public RadioButton(boolean isHeavyWeight,
                   float width,
                   float height,
                   java.lang.String text,
                   HUDFont font,
                   org.openmali.vecmath2.Colorf fontColor)
Creates a new RadioButton.

Parameters:
isHeavyWeight -
width - the desired width
height - the desired height
text - the text to be displayed
font - the font to use for the label
fontColor - the color to use for the label's font

RadioButton

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

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

RadioButton

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

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

RadioButton

public RadioButton(float width,
                   float height,
                   java.lang.String text,
                   HUDFont font,
                   org.openmali.vecmath2.Colorf fontColor)
Creates a new RadioButton.

Parameters:
width - the desired width
height - the desired height
text - the text to be displayed
font - the font to use for the label
fontColor - the color to use for the label's font

RadioButton

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

Parameters:
isHeavyWeight -
width - the desired width
height - the desired height
text - the text to be displayed
Method Detail

cycleState

protected void cycleState()

Overrides:
cycleState in class StateButton