Xj3D 2.0 VRML/X3D Code API

org.xj3d.sai
Class BrowserConfig

java.lang.Object
  extended by org.xj3d.sai.BrowserConfig

public class BrowserConfig
extends java.lang.Object

Utility class to load, qualify and store SAI and EAI browser configuration parameters, including the properties defining the browser 'skin'. Used by the various BrowserFactoryImpl's as a common parameter loader.

Version:
$Revision: 1.2 $
Author:
Rex Melton

Field Summary
 boolean antialiased
          Antialiasing enabled.
 java.lang.String antialiasingQuality
          Antialiasing quality.
 java.util.Properties browserSkin
          Properties object defining appearance of browser panel.
 java.lang.String contentDirectory
          Initial directory to use for locating content.
 java.lang.String cullingMode
          Culling Mode.
 boolean dashTop
          Placement of the navigation bar if visible.
 BrowserInterfaceTypes interfaceType
          The type of GUI interface that should be created
 int preferredHeight
          The preferred height of the window.
 int preferredWidth
          The preferred width of the window.
 java.lang.String primitiveQuality
          Primitive geometry quality.
 java.util.Map resourceMap
          Map object containing default resources refered to by the skinProperties.
 boolean showConsole
          Should the console be visible.
 boolean showDash
          Should the navigation bar be visible.
 boolean showFPS
          Should StatusBar have a frames-per-second display.
 boolean showOpenButton
          Should the open button, on the location bar, be visible.
 boolean showReloadButton
          Should the reload button, on the location bar, be visible.
 boolean showStatusBar
          Should StatusBar be shown.
 boolean showUrl
          Should the location bar be visible.
 java.lang.String textureQuality
          Texture quality.
 boolean urlReadOnly
          Should the location bar be read only.
 boolean urlTop
          Placement of the location bar if visible.
 boolean vrml97Only
          Should the browser be restricted to VRML97 only.
 
Constructor Summary
BrowserConfig()
          Create a BrowserConfig instance initialized with defaults.
BrowserConfig(java.util.Map params)
          Create a BrowserConfig instance initialized with defaults which will be overridden by any parameters passed in the argument Map.
BrowserConfig(java.lang.String[] params)
          Create a BrowserConfig instance initialized with defaults which will be overridden by any parameters passed in the argument array.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vrml97Only

public boolean vrml97Only
Should the browser be restricted to VRML97 only. Default false.


interfaceType

public BrowserInterfaceTypes interfaceType
The type of GUI interface that should be created


showDash

public boolean showDash
Should the navigation bar be visible. Default true.


dashTop

public boolean dashTop
Placement of the navigation bar if visible. Default false.


showUrl

public boolean showUrl
Should the location bar be visible. Default true.


urlTop

public boolean urlTop
Placement of the location bar if visible. Default true.


urlReadOnly

public boolean urlReadOnly
Should the location bar be read only. Default false.


showConsole

public boolean showConsole
Should the console be visible. Default false.


showOpenButton

public boolean showOpenButton
Should the open button, on the location bar, be visible. Default false.


showReloadButton

public boolean showReloadButton
Should the reload button, on the location bar, be visible. Default false.


showStatusBar

public boolean showStatusBar
Should StatusBar be shown. Default false.


showFPS

public boolean showFPS
Should StatusBar have a frames-per-second display. Default false.


contentDirectory

public java.lang.String contentDirectory
Initial directory to use for locating content. Defaults to System.getProperty("user.dir")


antialiased

public boolean antialiased
Antialiasing enabled. Default false.


antialiasingQuality

public java.lang.String antialiasingQuality
Antialiasing quality. "low"|"medium"|"high". Default "low".


primitiveQuality

public java.lang.String primitiveQuality
Primitive geometry quality. "low"|"medium"|"high". Default "medium".


textureQuality

public java.lang.String textureQuality
Texture quality. "low"|"medium"|"high". Default "medium".


browserSkin

public java.util.Properties browserSkin
Properties object defining appearance of browser panel. Defaults to an empty Properties object.


resourceMap

public java.util.Map resourceMap
Map object containing default resources refered to by the skinProperties. Default null.


cullingMode

public java.lang.String cullingMode
Culling Mode. "none"|"frustum". Default "frustum".


preferredWidth

public int preferredWidth
The preferred width of the window.


preferredHeight

public int preferredHeight
The preferred height of the window.

Constructor Detail

BrowserConfig

public BrowserConfig()
Create a BrowserConfig instance initialized with defaults.


BrowserConfig

public BrowserConfig(java.lang.String[] params)
Create a BrowserConfig instance initialized with defaults which will be overridden by any parameters passed in the argument array.

Parameters:
params - Parameters to control the look and feel.
Throws:
java.lang.IllegalArgumentException - if a parameter in the argument Map is invalid.

BrowserConfig

public BrowserConfig(java.util.Map params)
Create a BrowserConfig instance initialized with defaults which will be overridden by any parameters passed in the argument Map.

Parameters:
params - Parameters to control the look and feel.
Throws:
java.lang.IllegalArgumentException - if a parameter in the argument Map is invalid.

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium