|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.idv.control.DisplayControlBase
ucar.unidata.idv.control.DisplayControlImpl
ucar.unidata.idv.control.AudioControl
public class AudioControl
Class AudioControl Plays and records audio
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
categories, colorScaleInfo, colorScales, contourInfo, contourInfoParams, controlContext, ctw, cw, dataSelection, defaultView, defaultViewManager, DISPLAY_LIST_NAME, displayListTable, displayMasters, displayUnit, helpUrl, initNoteText, instantiatedWithNoData, noteTextArea, noteWrapper, paramName, requestProperties, settingVisibility, sharables, showNoteText, skipSlider, srw, version, viewManagers |
| Fields inherited from interface ucar.unidata.idv.DisplayControl |
|---|
BOTTOM_LEGEND, DEFAULT_PROBEFORMAT, PREF_PREFIX, PREF_PROBEFORMAT, PREF_REMOVEONWINDOWCLOSE, PREF_SAMPLING_MODE, PREF_STANDALONE_REMOVEONCLOSE, PREF_STANDALONE_REMOVEONCLOSE_ASK, PROP_LEGENDICON, SIDE_LEGEND |
| Constructor Summary | |
|---|---|
AudioControl()
Dummy ctor |
|
| Method Summary | |
|---|---|
protected Container |
doMakeContents()
Make the gui |
void |
doRemove()
Remove the control |
byte[] |
getAudioBytes()
Get the AudioBytes property. |
String |
getPlayFilename()
Get the Filename property. |
String |
getRecordFilename()
Get the Filename property. |
boolean |
getSaveAudio()
Get the SaveAudio property. |
protected String |
getTitle()
Overwrite the base class method to return the recordFilename or url. |
void |
handleRecordBtn()
Record button pressed |
boolean |
init(DataChoice dataChoice)
Called to make this kind of Display Control; This method is called from inside DisplayControlImpl init(several args). |
void |
initDone()
Initialization is done |
void |
selectPlayFile()
Select a file to play |
void |
selectRecordFile()
Select a file to record to |
void |
setAudioBytes(byte[] value)
Set the AudioBytes property. |
void |
setPlayFilename(String value)
Set the Filename property. |
void |
setRecordFilename(String value)
Set the Filename property. |
void |
setSaveAudio(boolean value)
Set the SaveAudio property. |
void |
startRecording()
Start recording |
void |
stopRecording()
Stop recording |
| Methods inherited from class ucar.unidata.idv.control.DisplayControlBase |
|---|
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getScreenCenter, getSelectedStation, isLeftButtonDown, logException, logException, makeEarthLocation, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessage |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setShareGroup, setSharing, setUniqueId, showSharableDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ucar.unidata.collab.Sharable |
|---|
getShareGroup, getSharing, getUniqueId |
| Constructor Detail |
|---|
public AudioControl()
| Method Detail |
|---|
public boolean init(DataChoice dataChoice)
throws VisADException,
RemoteException
init in class DisplayControlImpldataChoice - the DataChoice of the moment.
RemoteException - Java RMI error
VisADException - VisAD Errorpublic void initDone()
initDone in class DisplayControlImpl
public void doRemove()
throws RemoteException,
VisADException
doRemove in interface DisplayControldoRemove in class DisplayControlImplRemoteException - On badness
VisADException - On badnessprotected String getTitle()
getTitle in class DisplayControlImpl
protected Container doMakeContents()
throws VisADException,
RemoteException
doMakeContents in class DisplayControlImplRemoteException - On badness
VisADException - On badnesspublic void handleRecordBtn()
public void stopRecording()
public void selectRecordFile()
public void selectPlayFile()
public void startRecording()
public void setRecordFilename(String value)
value - The new value for Filenamepublic String getRecordFilename()
public void setPlayFilename(String value)
value - The new value for Filenamepublic String getPlayFilename()
public void setSaveAudio(boolean value)
value - The new value for SaveAudiopublic boolean getSaveAudio()
public void setAudioBytes(byte[] value)
value - The new value for AudioBytes
public byte[] getAudioBytes()
throws IOException
IOException - On badness
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||