|
|||||||||||
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.TracklogManager
A static class which manages the access to a tracklog for storing trackpoints
Tracklogger
Field Summary | |
static int |
TRACKLOG_TYPE_CSV
Identifies a CSV tracklog type |
static int |
TRACKLOG_TYPE_GPX
Identifies a GPX tracklog type |
Constructor Summary | |
TracklogManager()
|
Method Summary | |
static void |
clearTracklog()
Clears tracklog and keeps tracking if it was already doing it |
static void |
closeTracklog()
Closes the tracklog, which includes flushing the buffer and giving format to the tracklog file before closing. |
static java.lang.String |
getFileName()
Gets the name of the file where the tracklog is stored |
static java.lang.String |
getFolderName()
Gets the name of the folder where the tracklog is stored |
static boolean |
getStopTrackingWhenMinimized()
Check whether the program shall stop tracking when minimized |
static int |
getType()
Gets the tracklog type |
static boolean |
isTracking()
Gets the current tracklog state |
static void |
openTracklog()
Opens the tracklog |
static void |
setFileName(java.lang.String _fileName)
Sets the name of the file where the tracklog is stored |
static void |
setFolderName(java.lang.String _folderName)
Sets the name of the folder where the tracklog is stored |
static void |
setStopTrackingWhenMinimized(boolean _stopTrackingWhenMinimized)
Specifies whether the program shall stop tracking when minimized |
static void |
setType(int _type)
Sets the tracklog type Should not be used before closing the tracklog |
static void |
setTypeAndOpen(int _type)
Sets the tracklog type and keeps tracking if it was already doing it, closing the old tracklog and opening a new one. |
static void |
startTracking()
Begins tracking. |
static void |
stopTracking()
Stops tracking. |
static void |
storeTrackpoint(Trackpoint _trkpt)
Stores a trackpoint 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 TRACKLOG_TYPE_GPX
public static final int TRACKLOG_TYPE_CSV
Constructor Detail |
public TracklogManager()
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:
- TracklogManager.TRACKLOG_TYPE_GPX for a tracklog in GPX format
- TracklogManager.TRACKLOG_TYPE_GPX for a tracklog in CSV formatpublic static void setType(int _type)
_type
- one of the following values:
- TracklogManager.TRACKLOG_TYPE_GPX for a tracklog in GPX format
- TracklogManager.TRACKLOG_TYPE_GPX for a tracklog in CSV formatTracklogManager.setTypeAndOpen(int _type)
public static int getType()
public static boolean isTracking()
public static void setStopTrackingWhenMinimized(boolean _stopTrackingWhenMinimized)
_stopTrackingWhenMinimized
- Set to true if the program shall stop tracking in that casepublic static boolean getStopTrackingWhenMinimized()
public static void openTracklog()
public static void closeTracklog()
public static void clearTracklog()
public static void startTracking()
public static void stopTracking()
public static void storeTrackpoint(Trackpoint _trkpt)
_trkpt
- the trackpoint to be stored
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |