com.sun.j3d.utils.universe
Class ConfigScreen

java.lang.Object
  extended by com.sun.j3d.utils.universe.ConfigObject
      extended by com.sun.j3d.utils.universe.ConfigScreen

 class ConfigScreen
extends ConfigObject


Field Summary
(package private)  int frameBufferNumber
          The index of this screen in the GraphicsDevice array returned by GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices().
(package private)  boolean fullScreen
          Boolean indicating whether a full-screen window should be created for this ConfigScreen.
(package private)  Matrix4d headTrackerToLeftImagePlate
          The headTrackerToLeftImagePlate transform of this ConfigScreen if HMD mode is in effect.
(package private)  Matrix4d headTrackerToRightImagePlate
          The headTrackerToRightImagePlate transform of this ConfigScreen if HMD mode is in effect.
(package private)  Canvas3D j3dCanvas
          The Canvas3D created for this ConfigScreen.
(package private)  javax.swing.JFrame j3dJFrame
          The JFrame created for this ConfigScreen.
(package private)  javax.swing.JPanel j3dJPanel
          The JPanel created for this ConfigScreen to hold the Canvas3D.
(package private)  java.awt.Window j3dWindow
          The Window created for this ConfigScreen.
(package private)  int monoscopicViewPolicy
          The monoscopicViewPolicy for this ConfigScreen.
(package private)  boolean noBorderFullScreen
          Boolean indicating whether a full-screen window with no borders should be created for this ConfigScreen.
(package private)  double physicalScreenHeight
          The physical height in meters of the screen area of the GraphicsDevice associated with this ConfigScreen.
(package private)  double physicalScreenWidth
          The physical width in meters of the screen area of the GraphicsDevice associated with this ConfigScreen.
(package private)  Matrix4d trackerBaseToImagePlate
          The trackerBaseToImagePlate transform of this ConfigScreen.
(package private)  int windowHeightInPixels
          The height in pixels for the window to be created for this ConfigScreen if a full screen window is not specified.
(package private)  int windowWidthInPixels
          The width in pixels for the window to be created for this ConfigScreen if a full screen window is not specified.
(package private)  int windowX
          The X pixel position of the top-left corner of the window, relative to the physical screen.
(package private)  int windowY
          The Y pixel position of the top-left corner of the window, relative to the physical screen.
 
Fields inherited from class com.sun.j3d.utils.universe.ConfigObject
aliases, baseName, classLoader, configContainer, creatingCommand, instanceName, isAlias, original, properties, targetClass, targetClassName, targetObject
 
Constructor Summary
ConfigScreen()
           
 
Method Summary
protected  void initialize(ConfigCommand command)
          Initializes this object.
protected  void setProperty(ConfigCommand command)
          Processes attributes for this object.
 
Methods inherited from class com.sun.j3d.utils.universe.ConfigObject
createTargetObject, errorMessage, evaluateProperties, getClassForName, getNewInstance, isName, processProperties, setClassLoader, syntaxError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frameBufferNumber

int frameBufferNumber
The index of this screen in the GraphicsDevice array returned by GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices().


physicalScreenWidth

double physicalScreenWidth
The physical width in meters of the screen area of the GraphicsDevice associated with this ConfigScreen. The default is based on a screen resolution of 90 pixels/inch.


physicalScreenHeight

double physicalScreenHeight
The physical height in meters of the screen area of the GraphicsDevice associated with this ConfigScreen. The default is based on a screen resolution of 90 pixels/inch.


trackerBaseToImagePlate

Matrix4d trackerBaseToImagePlate
The trackerBaseToImagePlate transform of this ConfigScreen. The default is the identity transform.


headTrackerToLeftImagePlate

Matrix4d headTrackerToLeftImagePlate
The headTrackerToLeftImagePlate transform of this ConfigScreen if HMD mode is in effect. The default is the identity transform.


headTrackerToRightImagePlate

Matrix4d headTrackerToRightImagePlate
The headTrackerToRightImagePlate transform of this ConfigScreen if HMD mode is in effect. The default is the identity transform.


monoscopicViewPolicy

int monoscopicViewPolicy
The monoscopicViewPolicy for this ConfigScreen. The default is View.CYCLOPEAN_EYE_VIEW.


fullScreen

boolean fullScreen
Boolean indicating whether a full-screen window should be created for this ConfigScreen. The default is false.


noBorderFullScreen

boolean noBorderFullScreen
Boolean indicating whether a full-screen window with no borders should be created for this ConfigScreen. The default is false.


windowWidthInPixels

int windowWidthInPixels
The width in pixels for the window to be created for this ConfigScreen if a full screen window is not specified. The default is 512.


windowHeightInPixels

int windowHeightInPixels
The height in pixels for the window to be created for this ConfigScreen if a full screen window is not specified. The default is 512.


windowX

int windowX
The X pixel position of the top-left corner of the window, relative to the physical screen. The default is 0.


windowY

int windowY
The Y pixel position of the top-left corner of the window, relative to the physical screen. The default is 0.


j3dJFrame

javax.swing.JFrame j3dJFrame
The JFrame created for this ConfigScreen. When running under JDK 1.4 or newer, the JFrame always contains a JPanel which contains the Canvas3D. When running under JDK 1.3.1 and using a borderless full screen the JFrame will instead contain a JWindow which will contain the JPanel and Canvas3D.


j3dWindow

java.awt.Window j3dWindow
The Window created for this ConfigScreen. Under JDK 1.4 or higher this is the same reference as j3dJFrame. If a borderless full screen is specified while running under JDK 1.3.1 then this is a JWindow with the j3dJFrame as its parent.


j3dJPanel

javax.swing.JPanel j3dJPanel
The JPanel created for this ConfigScreen to hold the Canvas3D.


j3dCanvas

Canvas3D j3dCanvas
The Canvas3D created for this ConfigScreen.

Constructor Detail

ConfigScreen

ConfigScreen()
Method Detail

setProperty

protected void setProperty(ConfigCommand command)
Processes attributes for this object. Handles commands of the form:

(ScreenAttribute {instanceName} {attrName} {attrValue}) (ScreenProperty {instanceName} {attrName} {attrValue}) (DisplayAttribute {instanceName} {attrName} {attrValue}) (DisplayProperty {instanceName} {attrName} {attrValue})

Overrides:
setProperty in class ConfigObject
Parameters:
command - the command that invoked this method

initialize

protected void initialize(ConfigCommand command)
Initializes this object. Handles commands of the form:

(NewScreen {instanceName} {FrameBufferNumber}).

Overrides:
initialize in class ConfigObject
Parameters:
command - the command that invoked this method


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.