public interface Loader
Scene| Modifier and Type | Field and Description |
|---|---|
static int |
LOAD_ALL
This flag enables the loading of all objects into the scene.
|
static int |
LOAD_BACKGROUND_NODES
This flag enables the loading of background objects into the scene.
|
static int |
LOAD_BEHAVIOR_NODES
This flag enables the loading of behaviors into the scene.
|
static int |
LOAD_FOG_NODES
This flag enables the loading of fog objects into the scene.
|
static int |
LOAD_LIGHT_NODES
This flag enables the loading of light objects into the scene.
|
static int |
LOAD_SOUND_NODES
This flag enables the loading of sound objects into the scene.
|
static int |
LOAD_VIEW_GROUPS
This flag enables the loading of view (camera) objects into
the scene.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBasePath()
Returns the current base path setting.
|
java.net.URL |
getBaseUrl()
Returns the current base URL setting.
|
int |
getFlags()
Returns the current loading flags setting.
|
Scene |
load(java.io.Reader reader)
This method loads the Reader and returns the Scene
containing the scene.
|
Scene |
load(java.lang.String fileName)
This method loads the named file and returns the Scene
containing the scene.
|
Scene |
load(java.net.URL url)
This method loads the named file and returns the Scene
containing the scene.
|
void |
setBasePath(java.lang.String pathName)
This method sets the base path name for data files associated with
the file passed into the load(String) method.
|
void |
setBaseUrl(java.net.URL url)
This method sets the base URL name for data files associated with
the file passed into the load(URL) method.
|
void |
setFlags(int flags)
This method sets the load flags for the file.
|
static final int LOAD_LIGHT_NODES
static final int LOAD_FOG_NODES
static final int LOAD_BACKGROUND_NODES
static final int LOAD_BEHAVIOR_NODES
static final int LOAD_VIEW_GROUPS
static final int LOAD_SOUND_NODES
static final int LOAD_ALL
Scene load(java.lang.String fileName) throws java.io.FileNotFoundException, IncorrectFormatException, ParsingErrorException
java.io.FileNotFoundExceptionIncorrectFormatExceptionParsingErrorExceptionScene load(java.net.URL url) throws java.io.FileNotFoundException, IncorrectFormatException, ParsingErrorException
java.io.FileNotFoundExceptionIncorrectFormatExceptionParsingErrorExceptionScene load(java.io.Reader reader) throws java.io.FileNotFoundException, IncorrectFormatException, ParsingErrorException
java.io.FileNotFoundExceptionIncorrectFormatExceptionParsingErrorExceptionvoid setBaseUrl(java.net.URL url)
void setBasePath(java.lang.String pathName)
java.net.URL getBaseUrl()
java.lang.String getBasePath()
void setFlags(int flags)
int getFlags()
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.