public class GPXFile extends GPXObject
Modifier and Type | Field and Description |
---|---|
private boolean |
inMetadata |
private boolean |
inRte |
private boolean |
inTrk |
private boolean |
inTrkseg |
private boolean |
inWpt |
private java.lang.String |
link |
private java.util.List<Route> |
routes |
private java.util.Date |
time |
private java.util.List<Track> |
tracks |
private WaypointGroup |
waypointGroup |
color, desc, duration, eleEndFeet, eleEndMeters, eleMaxFeet, eleMaxMeters, eleMinFeet, eleMinMeters, eleStartFeet, eleStartMeters, fallTime, grossFallFeet, grossFallMeters, grossRiseFeet, grossRiseMeters, lengthMeters, lengthMiles, maxLat, maxLon, maxSpeedKmph, maxSpeedMph, minLat, minLon, name, riseTime, visible, wptsVisible
Constructor and Description |
---|
GPXFile()
Creates an empty
GPXFile . |
GPXFile(java.io.File gpx)
Creates a
GPXFile from a GPX file. |
GPXFile(java.lang.String name)
Creates an empty
GPXFile . |
Modifier and Type | Method and Description |
---|---|
Route |
addRoute() |
java.lang.String |
getLink() |
java.util.List<Route> |
getRoutes() |
java.util.Date |
getTime() |
java.util.List<Track> |
getTracks() |
WaypointGroup |
getWaypointGroup() |
void |
saveToGPXFile(java.io.File gpx)
Saves the file to disk in GPX format.
|
void |
setColor(java.awt.Color color) |
void |
setLink(java.lang.String link) |
void |
setTime(java.util.Date time) |
void |
updateAllProperties()
Updates the relevant properties of the subclass.
|
static boolean |
validateGPXFile(java.io.File gpx)
Validates a
GPXFile against the GPX 1.1 spec. |
getColor, getDesc, getDuration, getEleEndFeet, getEleEndMeters, getEleMaxFeet, getEleMaxMeters, getEleMinFeet, getEleMinMeters, getEleStartFeet, getEleStartMeters, getFallTime, getGrossFallFeet, getGrossFallMeters, getGrossRiseFeet, getGrossRiseMeters, getLengthMeters, getLengthMiles, getMaxLat, getMaxLon, getMaxSpeedKmph, getMaxSpeedMph, getMinLat, getMinLon, getName, getRiseTime, isGPXFile, isGPXFileWithNoRoutes, isGPXFileWithOneRoute, isGPXFileWithOneRouteOnly, isGPXFileWithOneTrackseg, isGPXFileWithOneTracksegOnly, isRoute, isTrack, isTrackseg, isTrackWithOneSeg, isVisible, isWaypointGroup, isWaypoints, isWptsVisible, setDesc, setName, setVisible, setWptsVisible, toString
private java.lang.String link
private java.util.Date time
private WaypointGroup waypointGroup
private java.util.List<Route> routes
private java.util.List<Track> tracks
private boolean inMetadata
private boolean inRte
private boolean inTrk
private boolean inTrkseg
private boolean inWpt
public GPXFile()
GPXFile
.public GPXFile(java.lang.String name)
GPXFile
.name
- The name of the route.public GPXFile(java.io.File gpx)
GPXFile
from a GPX file.gpx
- The GPX file.public void saveToGPXFile(java.io.File gpx)
gpx
- The GPX file.public static boolean validateGPXFile(java.io.File gpx)
GPXFile
against the GPX 1.1 spec.public java.lang.String getLink()
public void setLink(java.lang.String link)
public java.util.Date getTime()
public void setTime(java.util.Date time)
public WaypointGroup getWaypointGroup()
public java.util.List<Route> getRoutes()
public Route addRoute()
public java.util.List<Track> getTracks()
public void updateAllProperties()
GPXObject
updateAllProperties
in class GPXObject