org.xith3d.ui.hud.menusystem.menus.settings
Class FPIHMainSettingsMenu

java.lang.Object
  extended by org.xith3d.ui.hud.base.Widget
      extended by org.xith3d.ui.hud.base.BackgroundSettableWidget
          extended by org.xith3d.ui.hud.base.WidgetContainer
              extended by org.xith3d.ui.hud.widgets.Panel
                  extended by org.xith3d.ui.hud.menusystem.menus.MenuBase
                      extended by org.xith3d.ui.hud.menusystem.menus.settings.FPIHMainSettingsMenu
All Implemented Interfaces:
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, PaddingSettable, Menu

public class FPIHMainSettingsMenu
extends MenuBase

This is a settings menu for the FirstPersonInputHandler's main settings.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.xith3d.ui.hud.base.BackgroundSettableWidget
BackgroundSettableWidget.BackgroundSettableDescriptionBase
 
Nested classes/interfaces inherited from class org.xith3d.ui.hud.base.Widget
Widget.DescriptionBase
 
Field Summary
static java.lang.String NAME
           
 
Fields inherited from class org.xith3d.ui.hud.menusystem.menus.MenuBase
minimalHeightSet
 
Fields inherited from class org.xith3d.ui.hud.widgets.Panel
DEFAULT_HEAVYWEIGHT
 
Fields inherited from class org.xith3d.ui.hud.base.WidgetContainer
childrenOffset_HUD, childrenOffset_PX
 
Fields inherited from class org.xith3d.ui.hud.base.Widget
transformHeight_Pixels2HUD, transformWidth_Pixels2HUD
 
Constructor Summary
FPIHMainSettingsMenu(float width)
           
FPIHMainSettingsMenu(float width, float height)
           
 
Method Summary
 void applyConfig(FirstPersonInputHandler fpih)
          Applies the FirstPersonInputHandler's relevant config to this config menu.
 void extractConfig(FirstPersonInputHandler fpih)
          Reads the relevant config from this config menu and applies it to the FirstPersonInputHandler.
 float getMaxMouseXSpeed()
           
 float getMaxMouseYSpeed()
           
 float getMinMouseXSpeed()
           
 float getMinMouseYSpeed()
           
 float getMouseXSpeed()
           
 float getMouseYSpeed()
           
protected  void initWidgets()
          
 boolean isMouseYAxisInverted()
           
 void setMaxMouseXSpeed(float speed)
           
 void setMaxMouseYSpeed(float speed)
           
 void setMinMouseXSpeed(float speed)
           
 void setMinMouseYSpeed(float speed)
           
 void setMouseXSpeed(float speed)
           
 void setMouseYAxisInverted(boolean inverted)
           
 void setMouseYSpeed(float speed)
           
 
Methods inherited from class org.xith3d.ui.hud.menusystem.menus.MenuBase
getAcceptedActions, getMenuGroup, getMenuSystem, init, onActionConsumed, prepareAction, setMenuGroup, setMenuSystem, setMinimalHeight
 
Methods inherited from class org.xith3d.ui.hud.widgets.Panel
createContentPane, createContentPane, drawForeground, drawWidget, getForegroundTexture, setForegroundTexture, setForegroundTexture
 
Methods inherited from class org.xith3d.ui.hud.base.WidgetContainer
addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidgetCentered, addWidgetCentered, calculateTransformHeight_Pixels2HUD, calculateTransformWidth_Pixels2HUD, clear, createChildrenGroup, drawChildWidgets, focus, getCurrentFocusedWidget, getCurrentFocusedWidget, getCurrentHoveredWidget, getCurrentHoveredWidget, getEqualHeight, getEqualWidth, getLayout, getLocationHUD2Pixels, getLocationHUD2SG, getLocationPixels2HUD, getLocationSG2HUD, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParentWindow, getRelLocationHUD2Pixels, getResAspect, getResolution, getResX, getResY, getSGGroup, getSizeHUD2Pixels, getSizeHUD2SG, getSizeOfPixels, getSizePixels2HUD, getSizeSG2HUD, getWidget, getWidgets, getWidgetsCount, hasCustomResolution, isClippingEnbaled, isContentPane, onAttachedToHUD, onControllerAxisChanged, onControllerButtonPressed, onControllerButtonReleased, onFocusGained, onFocusLost, onInputStateChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseExited, onSizeChanged, onVisibilityChanged, pick, removeWidget, resetCurrentHoveredWidget, setClippingEnabled, setLayout, setPadding, setPadding, setResolution, setTransparency, setWidgetDirty, setZIndexSortingDirty, update, updateAbsZIndex, updateTranslation
 
Methods inherited from class org.xith3d.ui.hud.base.BackgroundSettableWidget
drawBackground, getBackgroundColor, getBackgroundTexture, getBackgroundTileMode, setBackground, setBackground, setBackground, setBackgroundColor, setBackgroundTexture, setBackgroundTexture, setBackgroundTexture, setBackgroundTexture, setBackgroundTileMode, setNoBackground
 
Methods inherited from class org.xith3d.ui.hud.base.Widget
addContainerListener, addControllerListener, addFocusListener, addInputListener, addKeyboardListener, addLocationListener, addMouseListener, addSizeListener, addVisibilityListener, bindToGlobalMouseMovement, blocksFocusMoveDeviceComponent, compareAbsZIndex, createShape, detach, drawAndUpdateWidget, drawBorder, drawWidgetAfterWidgetAssembler, 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, getPickHeight, getPickWidth, getRelLocationHUD2Pixels_, getRootHostWidget, getShape, getSize, getSizeHUD2Pixels_, getSizeHUD2SG_, getSizeOfPixels_, getSizePixels2HUD_, getSizeSG2HUD_, getToolTip, getTop, getTransparency, getUserObject, getWidgetAssembler, getWidth, getWidthPX, getZIndex, hasDropShadow, hasFocus, hasFocus, hasToolTip, initSize, isAHostedWidgetDirty, isClickable, isDraggable, isFocussable, isHeavyWeight, isHovered, isInitialized, isInitializing, isPickable, isThisWidgetDirty, isVisible, notifyOnDragStopped, onAttachedToContainer, onDetachedFromContainer, onDetachedFromHUD, onLocationChanged, onMouseButtonPressed, onMouseButtonReleased, onMouseEntered, onMouseMoved, onMouseStopped, onMouseWheelMoved, 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, setUserObject, setVisible, setWidth, setZIndex, startDragging, toString, updateSizeFactors
 
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.menusystem.Menu
getName
 

Field Detail

NAME

public static final java.lang.String NAME
Constructor Detail

FPIHMainSettingsMenu

public FPIHMainSettingsMenu(float width,
                            float height)

FPIHMainSettingsMenu

public FPIHMainSettingsMenu(float width)
Method Detail

setMaxMouseXSpeed

public void setMaxMouseXSpeed(float speed)

getMaxMouseXSpeed

public float getMaxMouseXSpeed()

setMinMouseXSpeed

public void setMinMouseXSpeed(float speed)

getMinMouseXSpeed

public float getMinMouseXSpeed()

setMouseXSpeed

public void setMouseXSpeed(float speed)

getMouseXSpeed

public float getMouseXSpeed()

setMaxMouseYSpeed

public void setMaxMouseYSpeed(float speed)

getMaxMouseYSpeed

public float getMaxMouseYSpeed()

setMinMouseYSpeed

public void setMinMouseYSpeed(float speed)

getMinMouseYSpeed

public float getMinMouseYSpeed()

setMouseYSpeed

public void setMouseYSpeed(float speed)

getMouseYSpeed

public float getMouseYSpeed()

setMouseYAxisInverted

public void setMouseYAxisInverted(boolean inverted)

isMouseYAxisInverted

public boolean isMouseYAxisInverted()

applyConfig

public void applyConfig(FirstPersonInputHandler fpih)
Applies the FirstPersonInputHandler's relevant config to this config menu.

Parameters:
fpih -

extractConfig

public void extractConfig(FirstPersonInputHandler fpih)
Reads the relevant config from this config menu and applies it to the FirstPersonInputHandler.

Parameters:
fpih -

initWidgets

protected void initWidgets()

Specified by:
initWidgets in class MenuBase