Package org.openstreetmap.josm.data.gpx
Class Line
- java.lang.Object
-
- org.openstreetmap.josm.data.gpx.Line
-
-
Constructor Summary
Constructors Constructor Description Line(java.util.Collection<WayPoint> waypoints, java.util.Map<java.lang.String,java.lang.Object> attributes, java.awt.Color color)
Constructs a newLine
.Line(GpxRoute route)
Constructs a newLine
.Line(IGpxTrackSegment trackSegment, java.util.Map<java.lang.String,java.lang.Object> trackAttributes, java.awt.Color color)
Constructs a newLine
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 colorboolean
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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
Line
public Line(java.util.Collection<WayPoint> waypoints, java.util.Map<java.lang.String,java.lang.Object> attributes, java.awt.Color color)
Constructs a newLine
.- Parameters:
waypoints
- collection of waypointsattributes
- track/route attributescolor
- color of the track- Since:
- 15496
-
Line
public Line(IGpxTrackSegment trackSegment, java.util.Map<java.lang.String,java.lang.Object> trackAttributes, java.awt.Color color)
Constructs a newLine
.- Parameters:
trackSegment
- track segmenttrackAttributes
- track attributescolor
- color of the track- Since:
- 15496
-
-
Method Detail
-
isUnordered
public boolean isUnordered()
Determines if waypoints are ordered.- Returns:
true
if waypoints are ordered
-
getColor
public java.awt.Color getColor()
Returns the track/route color- Returns:
- the color
- Since:
- 15496
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains
in interfacejava.util.Collection<WayPoint>
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interfacejava.util.Collection<WayPoint>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interfacejava.util.Collection<WayPoint>
-
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove
in interfacejava.util.Collection<WayPoint>
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
- Specified by:
containsAll
in interfacejava.util.Collection<WayPoint>
-
addAll
public boolean addAll(java.util.Collection<? extends WayPoint> c)
- Specified by:
addAll
in interfacejava.util.Collection<WayPoint>
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAll
in interfacejava.util.Collection<WayPoint>
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
- Specified by:
retainAll
in interfacejava.util.Collection<WayPoint>
-
-