|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.uv.robotica.gvsig.mobile.gps.tracklog.WaypointManager
A static class which manages the access to a tracklog for storing waypoints
Tracklogger
Field Summary | |
static int |
WAYPOINT_TYPE_CSV
Identifies a CSV waypoint type |
static int |
WAYPOINT_TYPE_GPX
Identifies a GPX waypoint type |
Constructor Summary | |
WaypointManager()
|
Method Summary | |
static void |
clearWaypoints()
Clears waypoints file |
static void |
closeWaypoints()
Closes the waypoints file, which includes flushing the buffer and giving format to the waypoints file before closing. |
static java.lang.String |
getFileName()
Gets the name of the file where the waypoints are stored |
static java.lang.String |
getFolderName()
Gets the name of the folder where the waypoints are stored |
static int |
getType()
Gets the waypoints file type |
static void |
openWaypoints()
Opens the waypoints file |
static void |
setFileName(java.lang.String _fileName)
Sets the name of the file where the waypoints are stored |
static void |
setFolderName(java.lang.String _folderName)
Sets the name of the folder where the waypoints are stored |
static void |
setType(int _type)
Sets the waypoints file type. |
static void |
setTypeAndOpen(int _type)
Sets the waypoints type, closing the old waypoints file No need to open a new one, it will do it acutomatically when storing the next waypoint |
static void |
storeWaypoint(Waypoint _wpt)
Stores a waypoint in the tracklog |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int WAYPOINT_TYPE_GPX
public static final int WAYPOINT_TYPE_CSV
Constructor Detail |
public WaypointManager()
Method Detail |
public static void setFileName(java.lang.String _fileName)
public static java.lang.String getFileName()
public static void setFolderName(java.lang.String _folderName)
_folderName
- public static java.lang.String getFolderName()
public static void setTypeAndOpen(int _type)
_type
- one of the following values:
- WaypointManager.WAYPOINT_TYPE_GPX for a waypoints file in GPX format
- WaypointManager.WAYPOINT_TYPE_GPX for a waypoints file in CSV formatpublic static void setType(int _type)
_type
- one of the following values:
- WaypointManager.WAYPOINT_TYPE_GPX for a waypoints file in GPX format
- WaypointManager.WAYPOINT_TYPE_GPX for a waypoints file in CSV formatWaypointManager.setTypeAndOpen(int _type)
public static int getType()
public static void openWaypoints()
public static void closeWaypoints()
public static void clearWaypoints()
public static void storeWaypoint(Waypoint _wpt)
_wpt
- the waypoint to be stored
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |