📄 positiondatarecord.java
字号:
package com.libGPS4j2me.devices.StdGPS;import com.libGPS4j2me.IPosition;import com.libGPS4j2me.PositionDegrees;import com.libGPS4j2me.PositionRadians;import com.libGPS4j2me.devices.StdGPS.DataRecord;/** * * @author Loreto Parisi */public class PositionDataRecord implements IPosition { private String lat, lon; private String latDir, lonDir; /** Creates a new instance of PositionDataRecord */ public PositionDataRecord(DataRecord record) { lat = record.latitude; lon = record.longitude; latDir = record.latitudeDirection; lonDir = record.longitudeDirection; } /** * Not implemented. Not to use. */ public PositionRadians getLatitude() { return null; } /** * Not Implemented. Not to use. */ public PositionRadians getLongitude() { return null;} /** * This method returns the latitude of the position as String. */ public String getLatituteStr() { return lat; } /** * This method returns the longitude of the position as String. */ public String getLongitudeStr() { return lon; } /** * This method returns the latitude direction as String. */ public String getLatituteDir() { return latDir; } /** * This method returns the longitude direction as String. */ public String getLongitudeDir() { return lonDir; } /** * Returns a String containing the position in a human-readable format. */ public String toString() { StringBuffer res = new StringBuffer(); res.append("\nLatitude: " + lat + " " + latDir); res.append("\nLongitude: " + lon + " " + lonDir); return res.toString(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -