public class AudioRecorder extends AudioContainer implements IAudioItem, IAudioRecorder
com.jme3.scene.Spatial.CullHint
INestable.IChildrenChangedListener
CACHABLE_TYPE
KEY_JMEITEMDATA
Constructor and Description |
---|
AudioRecorder(java.lang.String name,
java.util.UUID uuid)
Instantiates a new audio recorder.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getAudioFile()
Gets the audio file.
|
int |
getHeight()
Gets the height.
|
java.lang.String |
getOwner()
Gets the owner.
|
int |
getWidth()
Gets the width.
|
boolean |
hasRecorded()
Checks for recorded.
|
boolean |
isPlaying()
Checks if is playing.
|
boolean |
isRecorded()
Checks if is recorded.
|
boolean |
isRecording()
Checks if is recording.
|
void |
makeImmovable()
Make immovable.
|
void |
makeMovable()
Make movable.
|
void |
onCancelRecord()
On cancel record.
|
void |
onStopRecord()
On stop record.
|
void |
removeBorder()
Removes the border.
|
void |
setAudioControlObject(SNAudioController audioControl)
Sets the audio control object.
|
void |
setBackgroundColour(com.jme3.math.ColorRGBA colour)
Sets the background colour.
|
void |
setOwner(java.lang.String owner)
Sets the owner.
|
void |
stopPlay()
Stop play.
|
void |
stopRecord(boolean success)
Stop record.
|
deconstruct, getAudioController, isCached, reconstruct, setAudioController, setCached
getManipulableSpatial, initializeGeometry
addItem, addItemListener, behaviourAdded, centerItem, convertWorldVelocityToLocalVelocity, deRegisterChildrenChangedListener, getBehaviours, getBehaviours, getChildItems, getChildrenCount, getItemChildren, getItemListeners, getItemName, getMultiTouchDispatcher, getName, getParentItem, getRelativeLocation, getRelativeLocationOfWorldLocation, getRelativeRotation, getRelativeScale, getUUID, getWorldLocation, getWorldLocation, getWorldRotationDegrees, getZOrder, getZOrderManager, hasChildren, isVisible, registerChildrenChangedListener, removeAllItems, removeItem, removeItemListener, setInteractionEnabled, setItemListeners, setItemName, setParentItem, setRelativeLocation, setRelativeRotation, setRelativeScale, setVisible, setWorldLocation, setZOrder, toString
attachChild, attachChildAt, childChange, clone, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, read, setLodLevel, setMaterial, setModelBound, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, write
addControl, addLight, breadthFirstTraversal, center, checkCulling, clone, getControl, getControl, getCullHint, getLastFrustumIntersection, getLocalCullHint, getLocalLightList, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, localToWorld, lookAt, matches, move, move, removeControl, removeControl, removeFromParent, removeLight, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setCullHint, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setShadowMode, setUserData, worldToLocal
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addItemListener, behaviourAdded, centerItem, convertWorldVelocityToLocalVelocity, getBehaviours, getBehaviours, getItemListeners, getManipulableSpatial, getMultiTouchDispatcher, getName, getParentItem, getRelativeLocation, getRelativeLocationOfWorldLocation, getRelativeRotation, getRelativeScale, getUUID, getWorldLocation, getWorldLocation, getWorldRotationDegrees, getZOrder, getZOrderManager, isVisible, removeItemListener, setInteractionEnabled, setItemListeners, setParentItem, setRelativeLocation, setRelativeRotation, setRelativeScale, setVisible, setWorldLocation, setZOrder
addItem, deRegisterChildrenChangedListener, getChildItems, getChildrenCount, hasChildren, registerChildrenChangedListener, removeAllItems, removeItem
initializeGeometry
public AudioRecorder(java.lang.String name, java.util.UUID uuid)
name
- the nameuuid
- the uuidpublic java.io.File getAudioFile()
IAudioRecorder
getAudioFile
in interface IAudioRecorder
public int getHeight()
IAudioItem
getHeight
in interface IAudioItem
public java.lang.String getOwner()
IAudioItem
getOwner
in interface IAudioItem
public int getWidth()
IAudioItem
getWidth
in interface IAudioItem
public boolean hasRecorded()
IAudioRecorder
hasRecorded
in interface IAudioRecorder
public boolean isPlaying()
public boolean isRecorded()
public boolean isRecording()
public void makeImmovable()
IAudioItem
makeImmovable
in interface IAudioRecorder
makeImmovable
in interface IAudioItem
public void makeMovable()
public void onCancelRecord()
public void onStopRecord()
public void removeBorder()
IAudioRecorder
removeBorder
in interface IAudioRecorder
public void setAudioControlObject(SNAudioController audioControl)
IAudioItem
setAudioControlObject
in interface IAudioItem
audioControl
- the new audio control objectpublic void setBackgroundColour(com.jme3.math.ColorRGBA colour)
IAudioItem
setBackgroundColour
in interface IAudioItem
colour
- the new background colourpublic void setOwner(java.lang.String owner)
IAudioItem
setOwner
in interface IAudioItem
owner
- the new ownerpublic void stopPlay()
IAudioItem
stopPlay
in interface IAudioItem
public void stopRecord(boolean success)
IAudioItem
stopRecord
in interface IAudioItem
success
- the success