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 booleanadd(WayPoint e)booleanaddAll(java.util.Collection<? extends WayPoint> c)voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)java.awt.ColorgetColor()Returns the track/route colorbooleanisEmpty()booleanisUnordered()Determines if waypoints are ordered.java.util.Iterator<WayPoint>iterator()booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)intsize()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:
trueif 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:
containsin interfacejava.util.Collection<WayPoint>
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArrayin interfacejava.util.Collection<WayPoint>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArrayin interfacejava.util.Collection<WayPoint>
-
remove
public boolean remove(java.lang.Object o)
- Specified by:
removein interfacejava.util.Collection<WayPoint>
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
- Specified by:
containsAllin interfacejava.util.Collection<WayPoint>
-
addAll
public boolean addAll(java.util.Collection<? extends WayPoint> c)
- Specified by:
addAllin interfacejava.util.Collection<WayPoint>
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAllin interfacejava.util.Collection<WayPoint>
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
- Specified by:
retainAllin interfacejava.util.Collection<WayPoint>
-
-