Modifier and Type | Field and Description |
---|---|
private java.awt.Color |
color |
private boolean |
unordered |
private java.util.Collection<WayPoint> |
waypoints |
Constructor and Description |
---|
Line(java.util.Collection<WayPoint> waypoints,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.awt.Color color)
Constructs a new
Line . |
Line(GpxRoute route)
Constructs a new
Line . |
Line(IGpxTrackSegment trackSegment,
java.util.Map<java.lang.String,java.lang.Object> trackAttributes,
java.awt.Color color)
Constructs a new
Line . |
Modifier and Type | Method and Description |
---|---|
boolean |
add(WayPoint e) |
boolean |
addAll(java.util.Collection<? extends WayPoint> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
java.awt.Color |
getColor()
Returns the track/route color
|
boolean |
isEmpty() |
boolean |
isUnordered()
Determines if waypoints are ordered.
|
java.util.Iterator<WayPoint> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Line(java.util.Collection<WayPoint> waypoints, java.util.Map<java.lang.String,java.lang.Object> attributes, java.awt.Color color)
Line
.waypoints
- collection of waypointsattributes
- track/route attributescolor
- color of the trackpublic Line(IGpxTrackSegment trackSegment, java.util.Map<java.lang.String,java.lang.Object> trackAttributes, java.awt.Color color)
Line
.trackSegment
- track segmenttrackAttributes
- track attributescolor
- color of the trackpublic boolean isUnordered()
true
if waypoints are orderedpublic java.awt.Color getColor()
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<WayPoint>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<WayPoint>
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<WayPoint>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<WayPoint>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<WayPoint>
public boolean addAll(java.util.Collection<? extends WayPoint> c)
addAll
in interface java.util.Collection<WayPoint>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<WayPoint>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<WayPoint>