All Packages Class Hierarchy This Package Previous Next Index
Class java.media.j3d.MediaContainer
java.lang.Object
|
+----java.media.j3d.SceneGraphObject
|
+----java.media.j3d.NodeComponent
|
+----java.media.j3d.MediaContainer
- public class MediaContainer
- extends NodeComponent
The MediaContainer object defines all sound data: cached state flag, and
associated sound data. This is either reference the media in the form
of a URL path, or cached sound data: Java Media Player container, format
and bits.
Which JMF Players a J3D implemention will support has yet to be determined.
-
ALLOW_CACHE_READ
- For MediaContainer component objects, specifies that this object
allows the reading of its cached flag.
-
ALLOW_CACHE_WRITE
- For MediaContainer component objects, specifies that this object
allows the writing of its cached flag.
-
ALLOW_URL_READ
- For MediaContainer component objects, specifies that this object
allows the reading of it's sound data.
-
ALLOW_URL_WRITE
- For MediaContainer component objects, specifies that this object
allows the writing of it's URL String.
-
MediaContainer()
- Constructs and initializes a new MediaContainer object using defaults
for all parameters.
-
MediaContainer(String)
- Constructs and initializes a new MediaContainer object using specified
parameters
-
getCacheEnable()
- Retrieve Cache Enable state flag
-
getURL()
- Retrieve URL
-
setCacheEnable(boolean)
- Set Cache Enable state flag
Allows the writing of sound data explicitly into the MediaContainer
rather than just referencing a JavaMedia container.
-
setURL(String)
- Set URL
ALLOW_CACHE_READ
public static final int ALLOW_CACHE_READ
- For MediaContainer component objects, specifies that this object
allows the reading of its cached flag.
ALLOW_CACHE_WRITE
public static final int ALLOW_CACHE_WRITE
- For MediaContainer component objects, specifies that this object
allows the writing of its cached flag.
ALLOW_URL_READ
public static final int ALLOW_URL_READ
- For MediaContainer component objects, specifies that this object
allows the reading of it's sound data.
ALLOW_URL_WRITE
public static final int ALLOW_URL_WRITE
- For MediaContainer component objects, specifies that this object
allows the writing of it's URL String.
MediaContainer
public MediaContainer()
- Constructs and initializes a new MediaContainer object using defaults
for all parameters.
MediaContainer
public MediaContainer(String URL)
- Constructs and initializes a new MediaContainer object using specified
parameters
- Parameters:
- path - string of URL path containing non-cached sound data
setCacheEnable
public final void setCacheEnable(boolean flag)
- Set Cache Enable state flag
Allows the writing of sound data explicitly into the MediaContainer
rather than just referencing a JavaMedia container.
- Parameters:
- flag - boolean denoting if sound data is cached in this instance
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
getCacheEnable
public final boolean getCacheEnable()
- Retrieve Cache Enable state flag
- Returns:
- flag denoting is sound data is non-cached (URL) or cached.
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
setURL
public final void setURL(String path)
- Set URL
- Parameters:
- path - string of URL containing non-cached sound data
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
getURL
public final String getURL()
- Retrieve URL
- Returns:
- string of URL containing non-cached sound data
- Throws: CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graph
All Packages Class Hierarchy This Package Previous Next Index