public class ClipControl extends PamControlledUnit implements PamSettings, ClipDisplayParent
The clip generator configuration contains a budget of how many clips it can make for each possible trigger and will, based on usage, decide in a semi random way whether or not to make a clip on the arrival of each detection.
Trigger specific settings also include a pre and post sample time.
Constructor and Description |
---|
ClipControl(java.lang.String unitName) |
Modifier and Type | Method and Description |
---|---|
javax.swing.JMenuItem |
createDetectionMenu(java.awt.Frame parentFrame)
Create a JMenu object containing MenuItems associated with PamProcesses
|
javax.swing.JMenuItem |
createDisplayMenu(java.awt.Frame parentFrame)
Create a JMenu object containing MenuItems associated with the view
|
void |
displayOptions(java.awt.Frame parentFrame) |
void |
displaySettingChange() |
ClipGenSetting |
findClipGenSetting(java.lang.String clipDataName)
Find the clip generator settings for a specific data stream.
|
ClipDisplayPanel |
generateNewPanel() |
ClipDataBlock |
getClipDataBlock() |
ClipDisplayDecorations |
getClipDecorations(ClipDisplayUnit clipDisplayUnit)
Add additional functionality and controls to a clip display unit
|
ClipProcess |
getClipProcess() |
java.lang.String |
getDisplayName()
A name (though I don't think this ever gets used by current displays)
|
java.util.ArrayList<PamDataBlock> |
getPotentialTriggers()
Get a list of datablocks which might trigger a clip generation.
|
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
void |
notifyModelChanged(int changeType)
General notification when the PAMGAURD model changes.
|
boolean |
removeUnit()
Called to remove a unit.
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
addOfflineTaskGroup, addOtherRelatedMenuItems, addPamProcess, addRelatedMenuItems, addXMLParameter, addXMLParameter, addXMLParameter, addXMLParameter, canClose, canPlayViewerSound, 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, rename, saveViewerData, setFrameNumber, setPamController, setPamModuleInfo, setPamView, setSidePanel, setTabPanel, setupControlledUnit, stopViewerSound, terminalPrint, terminalPrintln, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUnitName, getUnitType
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 javax.swing.JMenuItem createDisplayMenu(java.awt.Frame parentFrame)
PamControlledUnit
createDisplayMenu
in class PamControlledUnit
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 displayOptions(java.awt.Frame parentFrame)
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 void notifyModelChanged(int changeType)
PamControlledUnit
notifyModelChanged
in class PamControlledUnit
changeType
- type of changepublic java.util.ArrayList<PamDataBlock> getPotentialTriggers()
public ClipProcess getClipProcess()
public ClipDisplayPanel generateNewPanel()
public boolean removeUnit()
PamControlledUnit
removeUnit
in class PamControlledUnit
public ClipDataBlock getClipDataBlock()
getClipDataBlock
in interface ClipDisplayParent
public java.lang.String getDisplayName()
ClipDisplayParent
getDisplayName
in interface ClipDisplayParent
public ClipDisplayDecorations getClipDecorations(ClipDisplayUnit clipDisplayUnit)
ClipDisplayParent
getClipDecorations
in interface ClipDisplayParent
clipDisplayUnit
- display unit to decorate.public ClipGenSetting findClipGenSetting(java.lang.String clipDataName)
dataName
- data name for the data block.public void displaySettingChange()
displaySettingChange
in interface ClipDisplayParent