public class UserDisplayControl extends PamControlledUnit implements PamSettings
Constructor and Description |
---|
UserDisplayControl(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static void |
addUserDisplayProvider(UserDisplayProvider userDisplayProvider)
Add a reference to the list of providers of user displays.
|
boolean |
canPlayViewerSound() |
javax.swing.JMenu |
createDisplayMenu(java.awt.Frame parentFrame)
Create a JMenu object containing MenuItems associated with the view
|
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
javax.swing.JMenuBar |
getTabSpecificMenuBar(java.awt.Frame parentFrame,
javax.swing.JMenuBar standardMenu,
PamGui pamGui)
Create a tab specific menu to go with this PamControlledUnit.
|
void |
notifyModelChanged(int changeType)
General notification when the PAMGAURD model changes.
|
void |
pamToStart()
called just before data acquisition starts.
|
void |
playViewerSound()
Start playing sound in reponse to a call from the viewer top toolbar.
|
static void |
removeDisplayProvider(UserDisplayProvider userDisplayProvider)
Remove a reference to a list of user display provider
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
void |
stopViewerSound()
Stop playing sound in response to a call from the viewer top toolbar.
|
addOfflineTaskGroup, addOtherRelatedMenuItems, addPamProcess, addRelatedMenuItems, addXMLParameter, addXMLParameter, addXMLParameter, addXMLParameter, canClose, createDetectionMenu, createFileMenu, createHelpMenu, fillXMLElement, flushDataBlockBuffers, getFrameNumber, getGuiFrame, getModuleSummary, getNumOfflineTaskGroups, getNumPamProcesses, getOfflineTaskGroup, getPamController, getPamModuleInfo, getPamProcess, getPamView, getShortUnitType, getSidePanel, getTabClipCopier, getTabPanel, getToolbarComponent, getUnitName, getUnitType, getVerboseLevel, gotoTab, isViewer, pamClose, pamHasStopped, removePamProcess, removeUnit, rename, saveViewerData, setFrameNumber, setPamController, setPamModuleInfo, setPamView, setSidePanel, setTabPanel, setupControlledUnit, terminalPrint, terminalPrintln, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUnitName, getUnitType
public void notifyModelChanged(int changeType)
PamControlledUnit
notifyModelChanged
in class PamControlledUnit
changeType
- type of changepublic javax.swing.JMenu 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 long getSettingsVersion()
getSettingsVersion
in interface PamSettings
public java.io.Serializable getSettingsReference()
getSettingsReference
in interface PamSettings
public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings
in interface PamSettings
public javax.swing.JMenuBar getTabSpecificMenuBar(java.awt.Frame parentFrame, javax.swing.JMenuBar standardMenu, PamGui pamGui)
PamControlledUnit
Default is to throw back the standard menu to be used. This function should clone the standard menu and then modify the clone (usually by replacing the Display sub menu)
getTabSpecificMenuBar
in class PamControlledUnit
standardMenu
- the standard menu for the Pam GUI.public void pamToStart()
PamControlledUnit
pamToStart
in class PamControlledUnit
public boolean canPlayViewerSound()
canPlayViewerSound
in class PamControlledUnit
public void playViewerSound()
PamControlledUnit
playViewerSound
in class PamControlledUnit
public void stopViewerSound()
PamControlledUnit
stopViewerSound
in class PamControlledUnit
public static void addUserDisplayProvider(UserDisplayProvider userDisplayProvider)
userDisplayProvider
- reference to a provider of user displays.public static void removeDisplayProvider(UserDisplayProvider userDisplayProvider)
userDisplayProvider
- reference to a provider of user displays.