public class UserRecorder extends java.lang.Object implements IAudioItem
| Modifier and Type | Field and Description |
|---|---|
static float |
BUTTON_HEIGHT
The Constant BUTTON_HEIGHT.
|
static float |
BUTTON_WIDTH
The Constant BUTTON_WIDTH.
|
| Constructor and Description |
|---|
UserRecorder(java.lang.String prompt,
IStage stage,
java.io.File folder,
UserRecordingPromptLabel userRecordingPromptLabel,
ITextbox entityItem,
EntityManager entityManager)
Instantiates a new user recorder.
|
| Modifier and Type | Method and Description |
|---|---|
IItem |
asItem()
As item.
|
void |
close()
Close.
|
int |
getHeight()
Gets the height.
|
java.lang.String |
getOwner()
Gets the owner.
|
int |
getWidth()
Gets the width.
|
void |
makeImmovable()
Make immovable.
|
void |
setAudioControlObject(SNAudioController audioController)
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.
|
public static final float BUTTON_HEIGHT
public static final float BUTTON_WIDTH
public UserRecorder(java.lang.String prompt,
IStage stage,
java.io.File folder,
UserRecordingPromptLabel userRecordingPromptLabel,
ITextbox entityItem,
EntityManager entityManager)
throws ContentTypeNotBoundException
prompt - the promptstage - the stagefolder - the folderuserRecordingPromptLabel - the user recording prompt labelentityItem - the entity itementityManager - the entity managerContentTypeNotBoundException - the content type not bound exceptionpublic IItem asItem()
public void close()
public int getHeight()
IAudioItemgetHeight in interface IAudioItempublic java.lang.String getOwner()
IAudioItemgetOwner in interface IAudioItempublic int getWidth()
IAudioItemgetWidth in interface IAudioItempublic void makeImmovable()
IAudioItemmakeImmovable in interface IAudioItempublic void setAudioControlObject(SNAudioController audioController)
IAudioItemsetAudioControlObject in interface IAudioItemaudioController - the new audio control objectpublic void setBackgroundColour(com.jme3.math.ColorRGBA colour)
IAudioItemsetBackgroundColour in interface IAudioItemcolour - the new background colourpublic void setOwner(java.lang.String owner)
IAudioItemsetOwner in interface IAudioItemowner - the new ownerpublic void stopPlay()
IAudioItemstopPlay in interface IAudioItempublic void stopRecord(boolean success)
IAudioItemstopRecord in interface IAudioItemsuccess - the success