public abstract class GPXObject
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.awt.Color |
color |
private static java.awt.Color[] |
colors |
private static int |
currentColor |
protected java.lang.String |
desc |
protected long |
duration |
protected double |
eleEndFeet |
protected double |
eleEndMeters |
protected double |
eleMaxFeet |
protected double |
eleMaxMeters |
protected double |
eleMinFeet |
protected double |
eleMinMeters |
protected double |
eleStartFeet |
protected double |
eleStartMeters |
protected long |
fallTime |
protected double |
grossFallFeet |
protected double |
grossFallMeters |
protected double |
grossRiseFeet |
protected double |
grossRiseMeters |
protected double |
lengthMeters |
protected double |
lengthMiles |
protected double |
maxLat |
protected double |
maxLon |
protected double |
maxSpeedKmph |
protected double |
maxSpeedMph |
protected double |
minLat |
protected double |
minLon |
protected java.lang.String |
name |
protected long |
riseTime |
protected boolean |
visible |
protected boolean |
wptsVisible |
Constructor and Description |
---|
GPXObject()
Default superclass constructor.
|
GPXObject(boolean randomColor)
Constructs a GPX object with a random color.
|
GPXObject(java.awt.Color color)
Constructs a GPX object with a chosen color.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor() |
java.lang.String |
getDesc() |
long |
getDuration() |
double |
getEleEndFeet() |
double |
getEleEndMeters() |
double |
getEleMaxFeet() |
double |
getEleMaxMeters() |
double |
getEleMinFeet() |
double |
getEleMinMeters() |
double |
getEleStartFeet() |
double |
getEleStartMeters() |
long |
getFallTime() |
double |
getGrossFallFeet() |
double |
getGrossFallMeters() |
double |
getGrossRiseFeet() |
double |
getGrossRiseMeters() |
double |
getLengthMeters() |
double |
getLengthMiles() |
double |
getMaxLat() |
double |
getMaxLon() |
double |
getMaxSpeedKmph() |
double |
getMaxSpeedMph() |
double |
getMinLat() |
double |
getMinLon() |
java.lang.String |
getName() |
long |
getRiseTime() |
boolean |
isGPXFile() |
boolean |
isGPXFileWithNoRoutes() |
boolean |
isGPXFileWithOneRoute() |
boolean |
isGPXFileWithOneRouteOnly() |
boolean |
isGPXFileWithOneTrackseg() |
boolean |
isGPXFileWithOneTracksegOnly() |
boolean |
isRoute() |
boolean |
isTrack() |
boolean |
isTrackseg() |
boolean |
isTrackWithOneSeg() |
boolean |
isVisible() |
boolean |
isWaypointGroup() |
boolean |
isWaypoints() |
boolean |
isWptsVisible() |
void |
setColor(java.awt.Color color) |
void |
setDesc(java.lang.String desc) |
void |
setName(java.lang.String name) |
void |
setVisible(boolean visible) |
void |
setWptsVisible(boolean wptsVisible) |
java.lang.String |
toString() |
abstract void |
updateAllProperties()
Updates the relevant properties of the subclass.
|
protected java.lang.String name
protected java.lang.String desc
protected boolean visible
protected boolean wptsVisible
protected java.awt.Color color
private static java.awt.Color[] colors
private static int currentColor
protected double minLat
protected double minLon
protected double maxLat
protected double maxLon
protected long duration
protected double lengthMeters
protected double lengthMiles
protected double maxSpeedKmph
protected double maxSpeedMph
protected double eleStartMeters
protected double eleStartFeet
protected double eleEndMeters
protected double eleEndFeet
protected double eleMinMeters
protected double eleMinFeet
protected double eleMaxMeters
protected double eleMaxFeet
protected double grossRiseFeet
protected double grossRiseMeters
protected double grossFallFeet
protected double grossFallMeters
protected long riseTime
protected long fallTime
public GPXObject()
public GPXObject(boolean randomColor)
randomColor
- If true, use a random color. If false, use white.public GPXObject(java.awt.Color color)
color
- The color.public abstract void updateAllProperties()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getDesc()
public void setDesc(java.lang.String desc)
public boolean isVisible()
public void setVisible(boolean visible)
public boolean isWptsVisible()
public void setWptsVisible(boolean wptsVisible)
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
public double getMinLat()
public double getMinLon()
public double getMaxLat()
public double getMaxLon()
public long getDuration()
public double getLengthMeters()
public double getLengthMiles()
public double getMaxSpeedKmph()
public double getMaxSpeedMph()
public double getEleStartMeters()
public double getEleStartFeet()
public double getEleEndMeters()
public double getEleEndFeet()
public double getEleMinMeters()
public double getEleMinFeet()
public double getEleMaxMeters()
public double getEleMaxFeet()
public double getGrossRiseFeet()
public double getGrossRiseMeters()
public double getGrossFallFeet()
public double getGrossFallMeters()
public long getRiseTime()
public long getFallTime()
public boolean isGPXFile()
public boolean isGPXFileWithOneRoute()
public boolean isGPXFileWithOneRouteOnly()
public boolean isGPXFileWithNoRoutes()
public boolean isGPXFileWithOneTrackseg()
public boolean isGPXFileWithOneTracksegOnly()
public boolean isWaypoints()
public boolean isRoute()
public boolean isTrack()
public boolean isTrackWithOneSeg()
public boolean isTrackseg()
public boolean isWaypointGroup()