public class Track extends GPXObject
Modifier and Type | Field and Description |
---|---|
protected int |
number |
private java.util.List<WaypointGroup> |
tracksegs |
protected java.lang.String |
type |
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 |
---|
Track(java.awt.Color color)
Constructs a
Track with the chosen color. |
Modifier and Type | Method and Description |
---|---|
WaypointGroup |
addTrackseg() |
int |
getNumber() |
java.util.List<WaypointGroup> |
getTracksegs() |
java.lang.String |
getType() |
void |
setColor(java.awt.Color color) |
void |
setNumber(int number) |
void |
setType(java.lang.String type) |
java.lang.String |
toString() |
void |
updateAllProperties()
Updates the relevant properties of the subclass.
|
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
protected int number
protected java.lang.String type
private java.util.List<WaypointGroup> tracksegs
public Track(java.awt.Color color)
Track
with the chosen color.color
- The color.public int getNumber()
public void setNumber(int number)
public java.lang.String getType()
public void setType(java.lang.String type)
public java.util.List<WaypointGroup> getTracksegs()
public WaypointGroup addTrackseg()
public void updateAllProperties()
GPXObject
updateAllProperties
in class GPXObject