public class GPSControl extends PamControlledUnit implements PamSettings
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
gpsUnitType |
Constructor and Description |
---|
GPSControl(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 |
createGPSMenu(java.awt.Frame parentFrame) |
static GPSControl |
getGpsControl()
There is only one GPS controller in the model,
so might as well make it easy to find with a static function.
|
GPSDataBlock |
getGpsDataBlock() |
GPSParameters |
getGpsParameters() |
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
GpsDataUnit |
getShipPosition(long timeMilliseconds) |
java.lang.String |
getWantedString()
Get the name of the string we're wanting.
|
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, 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, 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 java.lang.String gpsUnitType
public GPSDataBlock getGpsDataBlock()
public javax.swing.JMenuItem createGPSMenu(java.awt.Frame parentFrame)
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 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 GPSParameters getGpsParameters()
public static GPSControl getGpsControl()
public boolean removeUnit()
PamControlledUnit
removeUnit
in class PamControlledUnit
public GpsDataUnit getShipPosition(long timeMilliseconds)
public java.lang.String getWantedString()