public class RecorderControl extends PamControlledUnit implements PamSettings
RecorderProcess
,
RecorderSettings
,
RecorderTabPanel
,
RecorderSidePanel
,
RecorderStorage
,
RecorderView
Modifier and Type | Field and Description |
---|---|
static int |
IDLE |
static java.lang.String |
recorderUnitType |
static int |
RECORDING |
Constructor and Description |
---|
RecorderControl(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static void |
actionRecorderTrigger(RecorderTrigger recorderTrigger,
PamDataUnit dataUnit,
long timeNow)
static version of actionRecordTrigger can be called
from anywhere in PamGuard.
|
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..
|
static RecorderTrigger |
findRecorderTrigger(java.lang.String triggerName)
Find details of a recorder trigger by name.
|
int |
getRecorderStatus() |
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
void |
newData(PamDataBlock dataBlock,
PamDataUnit dataUnit) |
void |
notifyModelChanged(int changeType)
General notification when the PAMGAURD model changes.
|
static void |
registerRecorderTrigger(RecorderTrigger recorderTrigger)
Register recorder triggers with all recorders.
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
void |
sayRecorderStatus() |
void |
setRecorderStatus(int recorderStatus) |
addOfflineTaskGroup, addOtherRelatedMenuItems, addPamProcess, addRelatedMenuItems, addXMLParameter, addXMLParameter, addXMLParameter, addXMLParameter, canClose, canPlayViewerSound, createDisplayMenu, createFileMenu, createHelpMenu, fillXMLElement, flushDataBlockBuffers, getFrameNumber, getGuiFrame, getModuleSummary, getNumOfflineTaskGroups, getNumPamProcesses, getOfflineTaskGroup, getPamController, getPamModuleInfo, getPamProcess, getPamView, getShortUnitType, getSidePanel, getTabClipCopier, getTabPanel, getTabSpecificMenuBar, getToolbarComponent, getUnitName, getUnitType, getVerboseLevel, gotoTab, isViewer, pamClose, pamHasStopped, pamToStart, playViewerSound, removePamProcess, removeUnit, rename, saveViewerData, setFrameNumber, setPamController, setPamModuleInfo, setPamView, setSidePanel, setTabPanel, setupControlledUnit, stopViewerSound, terminalPrint, terminalPrintln, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUnitName, getUnitType
public static final int RECORDING
public static final int IDLE
public static final java.lang.String recorderUnitType
public void notifyModelChanged(int changeType)
PamControlledUnit
notifyModelChanged
in class PamControlledUnit
changeType
- type of changepublic int getRecorderStatus()
public void sayRecorderStatus()
public void enableRecording()
public void enableRecordingControl(boolean enable)
enable
- public javax.swing.JMenuItem createDetectionMenu(java.awt.Frame parentFrame)
PamControlledUnit
createDetectionMenu
in class PamControlledUnit
parentFrame
- The owner frame of the menuNote 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)
public void setRecorderStatus(int recorderStatus)
public java.io.Serializable getSettingsReference()
getSettingsReference
in interface PamSettings
public long getSettingsVersion()
getSettingsVersion
in interface PamSettings
public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings
in interface PamSettings
public static void actionRecorderTrigger(RecorderTrigger recorderTrigger, PamDataUnit dataUnit, long timeNow)
recorderTrigger
- public static void registerRecorderTrigger(RecorderTrigger recorderTrigger)
recorderTrigger
- public static RecorderTrigger findRecorderTrigger(java.lang.String triggerName)
triggerName
-