public class DifarControl extends PamControlledUnit implements PamSettings
Modifier and Type | Field and Description |
---|---|
static boolean |
SPLITDISPLAYS |
Constructor and Description |
---|
DifarControl(java.lang.String unitName) |
Modifier and Type | Method and Description |
---|---|
boolean |
canDemux()
Can the system handle demuxing the next data unit ?
Currently used to enable menus on the clip display
|
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 |
deployBuoy(int channel)
Deploy a DIFAR buoy.
|
boolean |
displayMenu(java.awt.Frame parentFrame) |
CalibrationHistogram |
getCalCorrectionHistogram(int channel) |
CalibrationHistogram |
getCalibrationHistogram(int channel) |
ClipDisplayParameters |
getClipDisplayParams(DifarDataUnit difarDataUnit) |
DifarDataUnit |
getCurrentDemuxedUnit() |
java.lang.String |
getCurrentlySelectedGroup() |
DemuxProgressDisplay |
getDemuxProgressDisplay() |
DifarDisplayContainer |
getDifarDisplayContainer() |
DifarDisplayContainer2 |
getDifarDisplayContainer2() |
DIFARGram |
getDifarGram() |
DifarParameters |
getDifarParameters() |
DifarProcess |
getDifarProcess() |
DIFARQueuePanel |
getDifarQueue() |
DIFARUnitControlPanel |
getDifarUnitControlPanel() |
int |
getDisplayFFTHop(DifarDataUnit difarDataUnit) |
int |
getDisplayFFTLength(DifarDataUnit difarDataUnit)
Get the display FFT length, which may depend on the type of data unit.
|
DifarActionsVesselPanel |
getInternalActionsPanel() |
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
PamSymbol |
getSpeciesSymbol(DifarDataUnit difarDataUnit)
Get the appropriate symbol for the selected species (or none).
|
TrackedGroupProcess |
getTrackedGroupProcess() |
void |
notifyModelChanged(int changeType)
General notification when the PAMGAURD model changes.
|
double |
rangeForDataType(DifarDataUnit difarDataUnit)
Get a display range for a particular data unit, as will be used by the map.
|
boolean |
removeUnit()
Called to remove a unit.
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
void |
sendDifarMessage(DIFARMessage message)
Called from just about anywhere in the DIFAR system, this
will process various difar messages and then pass the
notification on to all the difar displays.
|
void |
setCurrentlySelectedGroup(java.lang.String groupName) |
boolean |
settingMenu(java.awt.Frame parentFrame) |
TrackedGroupProcess |
setTrackedGroupProcess(TrackedGroupProcess trackedGroupProcess) |
void |
showCalibrationDialog(int channel)
Shows the calibration dialog for a particular channel.
|
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 static final boolean SPLITDISPLAYS
public boolean removeUnit()
PamControlledUnit
removeUnit
in class PamControlledUnit
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 sendDifarMessage(DIFARMessage message)
message
- DIFAR messagepublic DifarDisplayContainer getDifarDisplayContainer()
public DifarDisplayContainer2 getDifarDisplayContainer2()
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 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 boolean settingMenu(java.awt.Frame parentFrame)
public boolean displayMenu(java.awt.Frame parentFrame)
public void notifyModelChanged(int changeType)
PamControlledUnit
notifyModelChanged
in class PamControlledUnit
changeType
- type of changepublic DIFARGram getDifarGram()
public DifarParameters getDifarParameters()
public DifarProcess getDifarProcess()
public DifarActionsVesselPanel getInternalActionsPanel()
public DIFARQueuePanel getDifarQueue()
public DemuxProgressDisplay getDemuxProgressDisplay()
public double rangeForDataType(DifarDataUnit difarDataUnit)
difarDataUnit
- public int getDisplayFFTLength(DifarDataUnit difarDataUnit)
public int getDisplayFFTHop(DifarDataUnit difarDataUnit)
public ClipDisplayParameters getClipDisplayParams(DifarDataUnit difarDataUnit)
public boolean canDemux()
public DIFARUnitControlPanel getDifarUnitControlPanel()
public DifarDataUnit getCurrentDemuxedUnit()
public java.lang.String getCurrentlySelectedGroup()
public void setCurrentlySelectedGroup(java.lang.String groupName)
public PamSymbol getSpeciesSymbol(DifarDataUnit difarDataUnit)
difarDataUnit
- DIFAR data unitpublic CalibrationHistogram getCalibrationHistogram(int channel)
public CalibrationHistogram getCalCorrectionHistogram(int channel)
public void showCalibrationDialog(int channel)
channel
- public void deployBuoy(int channel)
channel
- channel number. If < 0 or if the streamer can't be found, then show the full array dialogpublic TrackedGroupProcess getTrackedGroupProcess()
public TrackedGroupProcess setTrackedGroupProcess(TrackedGroupProcess trackedGroupProcess)