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()
IAudioItem
getHeight
in interface IAudioItem
public java.lang.String getOwner()
IAudioItem
getOwner
in interface IAudioItem
public int getWidth()
IAudioItem
getWidth
in interface IAudioItem
public void makeImmovable()
IAudioItem
makeImmovable
in interface IAudioItem
public void setAudioControlObject(SNAudioController audioController)
IAudioItem
setAudioControlObject
in interface IAudioItem
audioController
- 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