Package loggerForms.controls
Class LatLongControl
java.lang.Object
loggerForms.controls.LoggerControl
loggerForms.controls.LatLongControl
- All Implemented Interfaces:
 ClipboardOwner
holds gps stamp, both lat and lon will save separately in the data base but will display in between 1 to 3(if time too) fields on the form and in one in the data table. will probably extend this to give GPSTimestamp which will bundle in a timestamp field too.
- Author:
 - GrahamWeatherup
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static intstatic intstatic intprotected MaskFormatterprotected static intstatic intstatic intprotected MaskFormatterstatic intstatic intprotected JFormattedTextFieldprotected JFormattedTextFieldFields 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
ConstructorsConstructorDescriptionLatLongControl(ControlDescription controlDescription, LoggerForm loggerForm)  - 
Method Summary
Modifier and TypeMethodDescriptionintAutomatically update a control.intfillNMEAControlData(NMEADataUnit dataUnit) The end-result of an auto-update of Lat-LongInteger[]getChannelArray(String channelsStr) getData()voidlostOwnership(Clipboard arg0, Transferable arg1) voidthis will populate the Field with either last entered data or most up to date entryvoidReturn to the default value based on the associated control descriptionMethods inherited from class loggerForms.controls.LoggerControl
addF1KeyListener, addFocusListenerToAllSubComponants, addMouseListenerToAllSubComponants, clear, clearDataError, clearDataWarning, f1Pressed, findNMEADataBlock, getComponent, getControlDescription, getDataWarning, getLoggerForm, lFocusGained, setToolTipToAllSubJComponants, updateNMEAData, updateNMEAData 
- 
Field Details
- 
latDegMax
public static int latDegMax - 
latDegMin
public static int latDegMin - 
lonDegMax
public static int lonDegMax - 
lonDegMin
public static int lonDegMin - 
minNsecMax
public static int minNsecMax - 
minNsecMin
public static int minNsecMin - 
LAT_FIELD_LENGTH
protected static int LAT_FIELD_LENGTH - 
LON_FIELD_LENGTH
protected static int LON_FIELD_LENGTH - 
textFieldLat
 - 
textFieldLon
 - 
latFor
 - 
lonFor
 
 - 
 - 
Constructor Details
- 
LatLongControl
- Parameters:
 controlDescription-loggerForm-
 
 - 
 - 
Method Details
- 
getChannelArray
- Parameters:
 channelsStr-- Returns:
 
 - 
getData
- Specified by:
 getDatain classLoggerControl- Returns:
 - data from field(s) of component
 
 - 
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
 
 - 
setData
Description copied from class:LoggerControlthis will populate the Field with either last entered data or most up to date entry- Specified by:
 setDatain classLoggerControl
 - 
setDefault
public void setDefault()Description copied from class:LoggerControlReturn to the default value based on the associated control description- Specified by:
 setDefaultin classLoggerControl
 - 
lostOwnership
- Specified by:
 lostOwnershipin interfaceClipboardOwner
 - 
getDataError
- Specified by:
 getDataErrorin classLoggerControl- Returns:
 
 - 
fillNMEAControlData
The end-result of an auto-update of Lat-Long- Specified by:
 fillNMEAControlDatain classLoggerControl- Parameters:
 dataUnit- NMEA data unit- Returns:
 - success flag.
 
 
 -