Package loggerForms.controls
Class NMEAControl
java.lang.Object
loggerForms.controls.LoggerControl
loggerForms.controls.SimpleControl
loggerForms.controls.NMEAControl
- Direct Known Subclasses:
 NMEACharControl,NMEAFloatControl,NMEAIntegerControl
Intermediate class for all NMEA data types. 
 Contains functionality to find particular NMEA strings, correct 
 string. Then extracts desired section of that string
 searching multiple NMEA inputs if necessary to locate the
- Author:
 - Doug Gillespie
 
- 
Field Summary
Fields inherited from class loggerForms.controls.SimpleControl
textFieldFields inherited from class loggerForms.controls.LoggerControl
AUTO_UPDATE_CANT, AUTO_UPDATE_FAIL, AUTO_UPDATE_SUCCESS, component, controlDescription, controlMenu, dataError, dataType, dataWarning, loggerForm, sqlType - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionintAutomatically update a control.intfillNMEAControlData(NMEADataUnit dataUnit) Called once a correct NMEA data unit has been found to write the data into the control.intTries to find the appropriate NMEA string by searching multiple data blocks if necessary.intupdateNMEAData(NMEADataUnit nmeaData) Used when NMEA data is being updated in response to the arrival of a new NMEA string (i.e.Methods inherited from class loggerForms.controls.SimpleControl
clear, getDataError, setData, setDefaultMethods inherited from class loggerForms.controls.LoggerControl
addF1KeyListener, addFocusListenerToAllSubComponants, addMouseListenerToAllSubComponants, clearDataError, clearDataWarning, f1Pressed, findNMEADataBlock, getComponent, getControlDescription, getData, getDataWarning, getLoggerForm, lFocusGained, setToolTipToAllSubJComponants 
- 
Constructor Details
- 
NMEAControl
 
 - 
 - 
Method Details
- 
autoUpdate
public int autoUpdate()Description copied from class:LoggerControlAutomatically update a control. This is only possible for controls such as time, timestamps and NMEA items.- Overrides:
 autoUpdatein classLoggerControl- Returns:
 - AUTO_UPDATE_SUCCESS, AUTO_UPDATE_FAIL or AUTO_UPDATE_CANT
 
 - 
updateNMEAData
public int updateNMEAData()Tries to find the appropriate NMEA string by searching multiple data blocks if necessary. IF the previous call was Successful, then it will just go straight to that same data block, otherwise, it will search all available datablocks.- Overrides:
 updateNMEADatain classLoggerControl- Returns:
 
 - 
fillNMEAControlData
Description copied from class:LoggerControlCalled once a correct NMEA data unit has been found to write the data into the control.- Overrides:
 fillNMEAControlDatain classSimpleControl- Parameters:
 dataUnit- NMEA data unit- Returns:
 - success flag.
 
 - 
updateNMEAData
Used when NMEA data is being updated in response to the arrival of a new NMEA string (i.e. on forms which save all NMEA data from a single string). An actual string is passed in, but there is just a chance that it will be the wrong type in which case the default is used.- Overrides:
 updateNMEADatain classLoggerControl- Parameters:
 nmeaData-
 
 -