org.eclipse.ohf.stem.definitions.adapters.spatial.geo
Class LatLong

java.lang.Object
  extended by org.eclipse.ohf.stem.definitions.adapters.spatial.geo.LatLong

public class LatLong
extends java.lang.Object

This class is a collection of latitude/longitude data pairs partititioned into one or more "segments". Each segment is a sequence of latitude/longitude data pairs. A segment could form a closed polygon or it could be a path. A LatLong.SegmentBuilder can be used to construct a LatLong.Segment.


Nested Class Summary
static class LatLong.Segment
          This class represents a sequence of latitude/longitude data pairs.
static class LatLong.SegmentBuilder
          This class creates LatLong.Segment's
 
Constructor Summary
LatLong()
           
 
Method Summary
 void add(LatLong.Segment segment)
          Add a segment to a collection
 void add(LatLong latLong)
          Add the segments from one LatLong to this one.
 void add(java.util.List<LatLong.Segment> segments)
           
 java.util.List<LatLong.Segment> getSegments()
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LatLong

public LatLong()
Method Detail

add

public void add(LatLong.Segment segment)
Add a segment to a collection

Parameters:
segment - the segment to add to the collection

add

public void add(java.util.List<LatLong.Segment> segments)
Parameters:
segments - add the list of segments to the collection maintained by LatLong

add

public void add(LatLong latLong)
Add the segments from one LatLong to this one.

Parameters:
latLong - the LatLong instance that contains the segments to add.

getSegments

public final java.util.List<LatLong.Segment> getSegments()
Returns:
the list of segments

size

public final int size()
Returns:
the number of segments

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()