Package org.xj3d.sai
Class BrowserConfig
java.lang.Object
org.xj3d.sai.BrowserConfig
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
FieldsModifier and TypeFieldDescriptionbooleanAntialiasing enabled.Antialiasing quality.Properties object defining appearance of browser panel.Initial directory to use for locating content.Culling Mode.booleanPlacement of the navigation bar if visible.booleanShould audio be disabled.booleanShould we force objects with no appearance to have a material for lightingThe type of GUI interface that should be createdintThe preferred height of the window.intThe preferred width of the window.Primitive geometry quality.Map object containing default resources referred to by the skinProperties.booleanShould the console be visible.booleanShould the navigation bar be visible.booleanShould StatusBar have a frames-per-second display.booleanShould the open button, on the location bar, be visible.booleanShould the reload button, on the location bar, be visible.booleanShould StatusBar be shown.booleanShould the location bar be visible.Texture quality.booleanShould the location bar be read only.booleanPlacement of the location bar if visible.booleanShould the browser be restricted to VRML97 only. -
Constructor Summary
ConstructorsConstructorDescriptionCreate a BrowserConfig instance initialized with defaults.BrowserConfig(String[] params) Create a BrowserConfig instance initialized with defaults which will be overridden by any parameters passed in the argument array.BrowserConfig(Map<String, Object> params) Create a BrowserConfig instance initialized with defaults which will be overridden by any parameters passed in the argument Map. -
Method Summary
-
Field Details
-
vrml97Only
public boolean vrml97OnlyShould the browser be restricted to VRML97 only. Default false. -
interfaceType
The type of GUI interface that should be created -
showDash
public boolean showDashShould the navigation bar be visible. Default true. -
dashTop
public boolean dashTopPlacement of the navigation bar if visible. Default false. -
showUrl
public boolean showUrlShould the location bar be visible. Default true. -
urlTop
public boolean urlTopPlacement of the location bar if visible. Default true. -
urlReadOnly
public boolean urlReadOnlyShould the location bar be read only. Default false. -
showConsole
public boolean showConsoleShould the console be visible. Default false. -
showOpenButton
public boolean showOpenButtonShould the open button, on the location bar, be visible. Default false. -
showReloadButton
public boolean showReloadButtonShould the reload button, on the location bar, be visible. Default false. -
showStatusBar
public boolean showStatusBarShould StatusBar be shown. Default false. -
showFPS
public boolean showFPSShould StatusBar have a frames-per-second display. Default false. -
contentDirectory
Initial directory to use for locating content. Defaults to System.getProperty("user.dir") -
antialiased
public boolean antialiasedAntialiasing enabled. Default false. -
antialiasingQuality
Antialiasing quality. "low"|"medium"|"high". Default "low". -
primitiveQuality
Primitive geometry quality. "low"|"medium"|"high". Default "medium". -
textureQuality
Texture quality. "low"|"medium"|"high". Default "medium". -
browserSkin
Properties object defining appearance of browser panel. Defaults to an empty Properties object. -
resourceMap
-
cullingMode
Culling Mode. "none"|"frustum". Default "frustum". -
forceLighting
public boolean forceLightingShould we force objects with no appearance to have a material for lighting -
preferredWidth
public int preferredWidthThe preferred width of the window. -
preferredHeight
public int preferredHeightThe preferred height of the window. -
disableAudio
public boolean disableAudioShould audio be disabled. Default false.
-
-
Constructor Details
-
BrowserConfig
public BrowserConfig()Create a BrowserConfig instance initialized with defaults. -
BrowserConfig
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:
IllegalArgumentException- if a parameter in the argument Map is invalid.
-
BrowserConfig
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:
IllegalArgumentException- if a parameter in the argument Map is invalid.
-