|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectus.zuercher.gpx2map.data.AbstractGpxEntity
us.zuercher.gpx2map.data.Track
public class Track
Track represents a GPX track. Tracks are made up of zero or more
TrackSegment
objects.
Track supports the following properties:
Name | Type |
---|---|
name | string |
cmt | string |
desc | string |
src | string |
link | string |
type | string |
number | integer |
Nested Class Summary | |
---|---|
private static class |
Track.TrackPointIterator
TrackPointIterator iterates over TrackPoints across
TrackSegments . |
Field Summary | |
---|---|
private static Set<String> |
integerPropertyNames
Integer property names. |
private static List<String> |
nameLikePropertyNames
Subset of stringPropertyNames . |
private List<TrackSegment> |
segments
The TrackSegments that comprise this Track. |
private static Set<String> |
stringPropertyNames
String property names. |
Fields inherited from class us.zuercher.gpx2map.data.AbstractGpxEntity |
---|
dateFormatter |
Constructor Summary | |
---|---|
Track()
Constructs a new Track. |
Method Summary | |
---|---|
void |
addTrackSegment(TrackSegment segment)
Adds a TrackSegment to this Track. |
boolean |
equals(Object other)
Tests whether this Track is equal to another. |
boolean |
equals(Track other)
Tests whether this Track is equal to another. |
Set<String> |
getDateTimePropertyNames()
Returns an empty set. |
Set<String> |
getDecimalPropertyNames()
Returns an empty set. |
Set<String> |
getIntegerPropertyNames()
Returns the Track's integer property names . |
String |
getName()
Get this Track's name. |
Set<String> |
getStringPropertyNames()
Returns the Track's string property names . |
int |
hashCode()
Computes a reasonable hash code for this Track. |
Iterator<TrackPoint> |
iterator()
Returns an Track.TrackPointIterator over all TrackPoints
contained in this Track's TrackSegments . |
Iterator<TrackSegment> |
segmentIterator()
Returns an Track.TrackPointIterator over this Track's
TrackSegments . |
String |
toExtendedString(String lineSep)
Returns a string representation of this Track based on the Track's properties and TrackPoints . |
String |
toString()
Returns a simple string representation of this Track based on the track's name, if any. |
Methods inherited from class us.zuercher.gpx2map.data.AbstractGpxEntity |
---|
equals, getDateTimeProperty, getDecimalProperty, getIntegerProperty, getStringProperty, setDateTimeProperty, setDecimalProperty, setIntegerProperty, setStringProperty |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final Set<String> stringPropertyNames
private static final List<String> nameLikePropertyNames
stringPropertyNames
.
private static final Set<String> integerPropertyNames
private final List<TrackSegment> segments
TrackSegments
that comprise this Track.
Constructor Detail |
---|
public Track()
Method Detail |
---|
public String getName()
nameLikePropertyNames
set for this track.
public void addTrackSegment(TrackSegment segment)
TrackSegment
to this Track.
segment
- the TrackSegment
to add.public Iterator<TrackSegment> segmentIterator()
Track.TrackPointIterator
over this Track's
TrackSegments
.
Track.TrackPointIterator
over this Track's
TrackSegments
.public Iterator<TrackPoint> iterator()
Track.TrackPointIterator
over all TrackPoints
contained in this Track's TrackSegments
.
iterator
in interface Iterable<TrackPoint>
Track.TrackPointIterator
over all TrackPoints
contained in this Track's TrackSegments
.Track.TrackPointIterator
public int hashCode()
hashCode
in class AbstractGpxEntity
public boolean equals(Track other)
TrackPoints
to be equal.
other
- another Track
public boolean equals(Object other)
TrackPoints
to be equal.
equals
in class AbstractGpxEntity
other
- another Track
ClassCastException
- if other
is not a
Track
public String toString()
toString
in class AbstractGpxEntity
public String toExtendedString(String lineSep)
TrackPoints
.
lineSep
- line separate character
public Set<String> getStringPropertyNames()
string property names
.
getStringPropertyNames
in class AbstractGpxEntity
AbstractGpxEntity.getStringPropertyNames()
public Set<String> getDecimalPropertyNames()
getDecimalPropertyNames
in class AbstractGpxEntity
AbstractGpxEntity.getDecimalPropertyNames()
public Set<String> getIntegerPropertyNames()
integer property names
.
getIntegerPropertyNames
in class AbstractGpxEntity
AbstractGpxEntity.getIntegerPropertyNames()
public Set<String> getDateTimePropertyNames()
getDateTimePropertyNames
in class AbstractGpxEntity
AbstractGpxEntity.getDateTimePropertyNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |