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

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.WidgetContainerBase
              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.GraphicsMainSettingsMenu
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, BackgroundSettable, BackgroundSettableWidget, BorderSettable, PaddingSettable, Widget, WidgetContainer, ScrollbarListener, Menu

public class GraphicsMainSettingsMenu
extends MenuBase

This is a settings menu for main graphics settings.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.xith3d.ui.hud.widgets.Panel
Panel.Description
 
Nested classes/interfaces inherited from interface org.xith3d.ui.hud.base.Widget
Widget.DescriptionBase
 
Nested classes/interfaces inherited from interface org.xith3d.ui.hud.base.WidgetContainer
WidgetContainer.FocusMoveDirection
 
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.base.WidgetContainerBase
childrenTG
 
Fields inherited from class org.xith3d.ui.hud.base.WidgetBase
containerListeners, transformGroup, translation, Z_INDEX_UNIT, Z_INDEX_UNIT_ASSEMBLER
 
Constructor Summary
GraphicsMainSettingsMenu(float width)
           
GraphicsMainSettingsMenu(float width, float height)
           
GraphicsMainSettingsMenu(float width, float height, int zIndex)
           
GraphicsMainSettingsMenu(float width, int zIndex)
           
 
Method Summary
 void applyConfig(CanvasConstructionInfo canvasInfo)
          Applies the CanvasConstructionInfo to this settings menu.
 void extractConfig(CanvasConstructionInfo canvasInfo)
          Reads the relevant settings from this settings menu and applies it to the CanvasConstructionInfo.
 DisplayMode getDisplayMode()
           
 FSAA getFSAA()
           
 DisplayMode.FullscreenMode getFullscreenMode()
           
 OpenGLLayer getOpenGLLayer()
           
protected  float getPickHeight()
          
 boolean getVSync()
           
protected  void initWidgets()
          
 void setDisplayMode(DisplayMode displayMode)
           
 void setFSAA(FSAA fsaa)
           
 void setFullscreenMode(DisplayMode.FullscreenMode fullscreen)
           
 void setOpenGLLayer(OpenGLLayer openGLLayer)
           
 void setVSync(boolean vsync)
           
 
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
getBackground, getBackgroundColor, getBackgroundTileHeight, getBackgroundTileSize, getBackgroundTileWidth, getBorder, getForeground, getTransparency, setBackground, setBackground, setBackground, setBackgroundTileSize, setBackgroundTileSize, setBorder, setBorder, setForeground, setForeground, setSize, update
 
Methods inherited from class org.xith3d.ui.hud.base.WidgetContainerBase
addContainerScrollListener, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidgetCentered, addWidgetCentered, clear, focus, getChildrenOffset, getChildrenOffsetX, getChildrenOffsetY, getCurrentFocusedWidget, getCurrentFocusedWidget, getEqualHeight, getEqualWidth, getInnerAspect, getInnerHeight, getInnerSize, getInnerWidth, getLayout, getLocationCanvas2HUD, getLocationHUD2Canvas, getLocationHUD2SG, getLocationSG2HUD, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getResAspect, getResolution, getResX, getResY, getScrollScale, getScrollScaleX, getScrollScaleY, getSGGroup, getSGPixelHeight, getSGPixelSize, getSGPixelWidth, getSizeCanvas2HUD, getSizeHUD2Canvas, getSizeHUD2SG, getSizeOfPixels, getSizeOnHUD, getSizeSG2HUD, getWidgets, isClippingEnbaled, moveFocus, onControllerAxisChanged, onControllerButtonPressed, onControllerButtonReleased, onDetached, onFocusGained, onFocusLost, onInputStateChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseUnbound, onScrollbarValueChanged, pick, removeContainerScrollListener, removeWidget, setChildrenOffset, setClippingEnabled, setContainer, setLayout, setPadding, setPadding, setScrollScale, setScrollScale, setTransparency, setVisible, updateTranslation
 
Methods inherited from class org.xith3d.ui.hud.base.RectangularWidget
getPickSGZPosition, getPickWidth
 
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, onMouseButtonPressed, onMouseButtonReleased, onMouseEntered, onMouseLeft, onMouseMoved, onMouseStopped, onMouseWheelMoved, onRemovedFromContainer, pickWidgetAssembler, removeContainerListener, removeFocusListener, removeInputListener, removeLocationListener, removeSizeListener, removeVisibilityListener, requestFocus, setAssembly, setCachedToolTipWidget, setClickable, setContextMenu, setCursor, setDraggable, setFocussable, setHeight, setLocation, setLocation, setLocation, setName, setPickable, setSize, setSize, setSize, setToolTip, setTransparency, setUserObject, setWidth, setZIndex, toString
 
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
 
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, getSGNode, getSGZPosition, getSize, getToolTip, getTop, getTransparency, 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
 

Field Detail

NAME

public static final java.lang.String NAME
Constructor Detail

GraphicsMainSettingsMenu

public GraphicsMainSettingsMenu(float width,
                                float height,
                                int zIndex)

GraphicsMainSettingsMenu

public GraphicsMainSettingsMenu(float width,
                                float height)

GraphicsMainSettingsMenu

public GraphicsMainSettingsMenu(float width,
                                int zIndex)

GraphicsMainSettingsMenu

public GraphicsMainSettingsMenu(float width)
Method Detail

setOpenGLLayer

public void setOpenGLLayer(OpenGLLayer openGLLayer)

getOpenGLLayer

public final OpenGLLayer getOpenGLLayer()

setDisplayMode

public void setDisplayMode(DisplayMode displayMode)

getDisplayMode

public final DisplayMode getDisplayMode()

setFSAA

public void setFSAA(FSAA fsaa)

getFSAA

public final FSAA getFSAA()

setVSync

public void setVSync(boolean vsync)

getVSync

public final boolean getVSync()

setFullscreenMode

public void setFullscreenMode(DisplayMode.FullscreenMode fullscreen)

getFullscreenMode

public final DisplayMode.FullscreenMode getFullscreenMode()

applyConfig

public void applyConfig(CanvasConstructionInfo canvasInfo)
Applies the CanvasConstructionInfo to this settings menu.

Parameters:
canvasInfo -

extractConfig

public void extractConfig(CanvasConstructionInfo canvasInfo)
Reads the relevant settings from this settings menu and applies it to the CanvasConstructionInfo.

Parameters:
canvasInfo -

getPickHeight

protected float getPickHeight()

Overrides:
getPickHeight in class RectangularWidget
Returns:
the height on which to pick. By default this is exactly getHeight().

initWidgets

protected void initWidgets()

Specified by:
initWidgets in class MenuBase