|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPamController.PamControlledUnit
SoundRecorder.RecorderControl
public class RecorderControl
Control a sound file recorder. The sound file recorder has two view panels - a main tab panel and also a smaller side panel which replicates some of the functionality of the main panel.
RecorderProcess,
RecorderSettings,
RecorderTabPanel,
RecorderSidePanel,
RecorderStorage,
RecorderView| Nested Class Summary | |
|---|---|
(package private) class |
RecorderControl.MenuRecordSettings
|
| Field Summary | |
|---|---|
(package private) java.lang.String |
actionTrigger
|
private boolean |
folderStatus
|
static int |
IDLE
|
(package private) int |
lastPressedButton
|
protected MenuItemEnabler |
menuEnabler
|
private boolean |
modelComplete
|
(package private) int |
pressedButton
|
(package private) static java.util.ArrayList<RecorderControl> |
recorderControllers
|
(package private) RecorderProcess |
recorderProcess
|
(package private) RecorderSettings |
recorderSettings
|
(package private) RecorderSidePanel |
recorderSidePanel
|
(package private) int |
recorderStatus
|
(package private) RecorderStorage |
recorderStorage
|
(package private) RecorderTabPanel |
recorderTabPanel
|
(package private) javax.swing.Timer |
recorderTimer
Nothing to do with the automatic recordings - just a general timer that triggers all sorts of things. |
(package private) static java.util.ArrayList<RecorderTrigger> |
recorderTriggers
|
static java.lang.String |
recorderUnitType
|
(package private) java.util.ArrayList<RecorderView> |
recorderViews
|
static int |
RECORDING
|
private long |
triggeredRecordingEnd
|
| Fields inherited from class PamController.PamControlledUnit |
|---|
isViewer |
| Constructor Summary | |
|---|---|
RecorderControl(java.lang.String name)
|
|
| Method Summary | |
|---|---|
static void |
actionRecorderTrigger(RecorderTrigger recorderTrigger)
static version of actionRecordTrigger can be called from anywhere in PamGuard. |
private void |
actionRecordTrigger(int triggerIndex,
RecorderTrigger recorderTrigger)
Called when an event triggers to start a recording (or continue a recording if already active). |
private void |
addRecorderTrigger(RecorderTrigger recorderTrigger)
Adds a recorder trigger to this recorderControl. |
protected void |
buttonCommand(int command)
|
javax.swing.JMenuItem |
createDetectionMenu(java.awt.Frame parentFrame)
Create a JMenu object containing MenuItems associated with PamProcesses |
void |
enableRecording()
Enables and disables the main control buttons for starting / stopping depending on whether or not the ADC is running. |
void |
enableRecordingControl(boolean enable)
Enables and disables controls on the views such as the channel selection buttons, the main settings button and also the menus.. |
int |
getRecorderStatus()
|
java.io.Serializable |
getSettingsReference()
|
long |
getSettingsVersion()
|
void |
newData(PamDataBlock dataBlock,
PamDataUnit dataUnit)
|
protected void |
newParams()
|
void |
notifyModelChanged(int changeType)
General notification when the PAMGAURD model changes. |
protected void |
recordSettingsDialog(java.awt.Frame parentFrame)
|
private static void |
registerRecorders(RecorderControl recorderControl)
Keep a static list of all recorders (primarily so that trigger information can be added to them later). |
static void |
registerRecorderTrigger(RecorderTrigger recorderTrigger)
Register recorder triggers with all recorders. |
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
|
void |
sayRecorderStatus()
|
protected void |
setFolderStatus(boolean folderOk)
|
private void |
setRecorderStatus()
Works out what the record status should be - the buttons only apply to local control, even if the off button is presses, it may be that a recording is being initiated by some other part of the system. |
void |
setRecorderStatus(int recorderStatus)
|
protected void |
setSampleRate(float sampleRate)
Called mainly so that the samplerate notification from Acquisition can be used to check the number of channels is correctly displayed. |
private int |
shouldAutoRecord()
|
private boolean |
shouldEnableRecording()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface PamController.PamSettings |
|---|
getUnitName, getUnitType |
| Field Detail |
|---|
RecorderTabPanel recorderTabPanel
RecorderSidePanel recorderSidePanel
RecorderProcess recorderProcess
RecorderSettings recorderSettings
RecorderStorage recorderStorage
java.lang.String actionTrigger
protected MenuItemEnabler menuEnabler
int recorderStatus
int pressedButton
int lastPressedButton
public static final int RECORDING
public static final int IDLE
java.util.ArrayList<RecorderView> recorderViews
static java.util.ArrayList<RecorderTrigger> recorderTriggers
static java.util.ArrayList<RecorderControl> recorderControllers
private long triggeredRecordingEnd
public static final java.lang.String recorderUnitType
private boolean modelComplete
javax.swing.Timer recorderTimer
private boolean folderStatus
| Constructor Detail |
|---|
public RecorderControl(java.lang.String name)
| Method Detail |
|---|
public void notifyModelChanged(int changeType)
PamControlledUnit
notifyModelChanged in class PamControlledUnitchangeType - type of changepublic int getRecorderStatus()
public void sayRecorderStatus()
public void enableRecording()
private boolean shouldEnableRecording()
public void enableRecordingControl(boolean enable)
enable - public javax.swing.JMenuItem createDetectionMenu(java.awt.Frame parentFrame)
PamControlledUnit
createDetectionMenu in class PamControlledUnitparentFrame - The owner frame of the menu
Note that if multiple views are to use the same menu, then they should each create a new menu (by setting Create to true) the first time they call this method.
public void newData(PamDataBlock dataBlock,
PamDataUnit dataUnit)
protected void buttonCommand(int command)
public void setRecorderStatus(int recorderStatus)
protected void setFolderStatus(boolean folderOk)
private void setRecorderStatus()
private int shouldAutoRecord()
protected void recordSettingsDialog(java.awt.Frame parentFrame)
protected void newParams()
protected void setSampleRate(float sampleRate)
sampleRate - public java.io.Serializable getSettingsReference()
getSettingsReference in interface PamSettingspublic long getSettingsVersion()
getSettingsVersion in interface PamSettingspublic boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings in interface PamSettingsprivate void addRecorderTrigger(RecorderTrigger recorderTrigger)
recorderTrigger - public static void actionRecorderTrigger(RecorderTrigger recorderTrigger)
recorderTrigger -
private void actionRecordTrigger(int triggerIndex,
RecorderTrigger recorderTrigger)
recorderTrigger - public static void registerRecorderTrigger(RecorderTrigger recorderTrigger)
recorderTrigger - private static void registerRecorders(RecorderControl recorderControl)
recorderControl -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||