org.xith3d.ui.hud.widgets
Class Checkbox

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.Checkbox
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 Checkbox
extends LabeledStateButton

CheckBox 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
Checkbox(boolean isHeavyWeight, float width, float height, java.lang.String text)
          Creates a new CheckBox.
Checkbox(boolean isHeavyWeight, float width, float height, java.lang.String text, HUDFont font, org.openmali.vecmath2.Colorf fontColor)
          Creates a new CheckBox.
Checkbox(boolean isHeavyWeight, float width, float height, java.lang.String text, LabeledStateButton.Description desc)
          Creates a new CheckBox.
Checkbox(float width, float height, java.lang.String text)
          Creates a new CheckBox.
Checkbox(float width, float height, java.lang.String text, HUDFont font, org.openmali.vecmath2.Colorf fontColor)
          Creates a new CheckBox.
Checkbox(float width, float height, java.lang.String text, LabeledStateButton.Description desc)
          Creates a new CheckBox.
 
Method Summary
 
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, cycleState, 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

Checkbox

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

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

Checkbox

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

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

Checkbox

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

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

Checkbox

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

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

Checkbox

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

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

Checkbox

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

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