Package org.xj3d.sai.external.node.sound
Class SAIAudioClip
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.sound.SAIAudioClip
- All Implemented Interfaces:
AudioClip,X3DChildNode,X3DNode,X3DSoundSourceNode,X3DTimeDependentNode,X3DUrlObject
A concrete implementation of the AudioClip node interface
- Version:
- $Revision: 1.2 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAIAudioClip(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturn the description String value.doubleReturn the duration_changed double value.doubleReturn the elapsedTime double value.booleanReturn the isActive boolean value.booleanReturn the isPaused boolean value.booleangetLoop()Return the loop boolean value.intReturn the number of MFString items in the url field.doubleReturn the pauseTime double value.floatgetPitch()Return the pitch float value.doubleReturn the resumeTime double value.doubleReturn the startTime double value.doubleReturn the stopTime double value.voidReturn the url value in the argument String[]voidsetDescription(String val) Set the description field.voidsetLoop(boolean val) Set the loop field.voidsetPauseTime(double val) Set the pauseTime field.voidsetPitch(float val) Set the pitch field.voidsetResumeTime(double val) Set the resumeTime field.voidsetStartTime(double val) Set the startTime field.voidsetStopTime(double val) Set the stopTime field.voidSet the url field.Methods inherited from class org.web3d.vrml.scripting.external.sai.SAINode
dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAIAudioClip
public SAIAudioClip(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
fieldFactory-queue-
-
-
Method Details
-
getLoop
public boolean getLoop()Return the loop boolean value.- Specified by:
getLoopin interfaceX3DTimeDependentNode- Returns:
- The loop boolean value.
-
setLoop
public void setLoop(boolean val) Set the loop field.- Specified by:
setLoopin interfaceX3DTimeDependentNode- Parameters:
val- The boolean to set.
-
getStartTime
public double getStartTime()Return the startTime double value.- Specified by:
getStartTimein interfaceX3DTimeDependentNode- Returns:
- The startTime double value.
-
setStartTime
public void setStartTime(double val) Set the startTime field.- Specified by:
setStartTimein interfaceX3DTimeDependentNode- Parameters:
val- The double to set.
-
getStopTime
public double getStopTime()Return the stopTime double value.- Specified by:
getStopTimein interfaceX3DTimeDependentNode- Returns:
- The stopTime double value.
-
setStopTime
public void setStopTime(double val) Set the stopTime field.- Specified by:
setStopTimein interfaceX3DTimeDependentNode- Parameters:
val- The double to set.
-
getPauseTime
public double getPauseTime()Return the pauseTime double value.- Specified by:
getPauseTimein interfaceX3DTimeDependentNode- Returns:
- The pauseTime double value.
-
setPauseTime
public void setPauseTime(double val) Set the pauseTime field.- Specified by:
setPauseTimein interfaceX3DTimeDependentNode- Parameters:
val- The double to set.
-
getResumeTime
public double getResumeTime()Return the resumeTime double value.- Specified by:
getResumeTimein interfaceX3DTimeDependentNode- Returns:
- The resumeTime double value.
-
setResumeTime
public void setResumeTime(double val) Set the resumeTime field.- Specified by:
setResumeTimein interfaceX3DTimeDependentNode- Parameters:
val- The double to set.
-
getElapsedTime
public double getElapsedTime()Return the elapsedTime double value.- Specified by:
getElapsedTimein interfaceX3DTimeDependentNode- Returns:
- The elapsedTime double value.
-
getDescription
Return the description String value.- Specified by:
getDescriptionin interfaceX3DSoundSourceNode- Returns:
- The description String value.
-
setDescription
Set the description field.- Specified by:
setDescriptionin interfaceX3DSoundSourceNode- Parameters:
val- The String to set.
-
getPitch
public float getPitch()Return the pitch float value.- Specified by:
getPitchin interfaceX3DSoundSourceNode- Returns:
- The pitch float value.
-
setPitch
public void setPitch(float val) Set the pitch field.- Specified by:
setPitchin interfaceX3DSoundSourceNode- Parameters:
val- The float to set.
-
getNumUrl
public int getNumUrl()Return the number of MFString items in the url field.- Specified by:
getNumUrlin interfaceX3DUrlObject- Returns:
- the number of MFString items in the url field.
-
getUrl
Return the url value in the argument String[]- Specified by:
getUrlin interfaceX3DUrlObject- Parameters:
val- The String[] to initialize.
-
setUrl
Set the url field.- Specified by:
setUrlin interfaceX3DUrlObject- Parameters:
val- The String[] to set.
-
getDuration
public double getDuration()Return the duration_changed double value.- Returns:
- The duration_changed double value.
-
getIsActive
public boolean getIsActive()Return the isActive boolean value.- Specified by:
getIsActivein interfaceX3DTimeDependentNode- Returns:
- The isActive boolean value.
-
getIsPaused
public boolean getIsPaused()Return the isPaused boolean value.- Specified by:
getIsPausedin interfaceX3DTimeDependentNode- Returns:
- The isPaused boolean value.
-