Class TopoArc
- java.lang.Object
 - 
- com.microstrategy.web.app.maps.topology.TopoArc
 
 
- 
public class TopoArc extends java.lang.Object 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected java.util.List<GeoPoint>allPointsstatic intREVERSE_DIRECTIONstatic intSTRAIGHT_DIRECTION 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsSamePoints(java.util.List<LatLng> arc, int direction)Compare three points to decide whether the the two arcs are the same or not.java.util.List<LatLng>getAllLatLngs()java.util.List<GeoPoint>getAllPoints()GeoPointgetGeoPointAt(int index)LatLnggetLatLngAt(int index)intsize() 
 - 
 
- 
- 
Field Detail
- 
STRAIGHT_DIRECTION
public static final int STRAIGHT_DIRECTION
- See Also:
 - Constant Field Values
 
 
- 
REVERSE_DIRECTION
public static final int REVERSE_DIRECTION
- See Also:
 - Constant Field Values
 
 
- 
allPoints
protected java.util.List<GeoPoint> allPoints
 
 - 
 
- 
Constructor Detail
- 
TopoArc
public TopoArc(java.util.List<GeoPoint> points)
 
 - 
 
- 
Method Detail
- 
getLatLngAt
public LatLng getLatLngAt(int index)
 
- 
getGeoPointAt
public GeoPoint getGeoPointAt(int index)
 
- 
getAllPoints
public java.util.List<GeoPoint> getAllPoints()
 
- 
getAllLatLngs
public java.util.List<LatLng> getAllLatLngs()
 
- 
size
public int size()
 
- 
containsSamePoints
public boolean containsSamePoints(java.util.List<LatLng> arc, int direction)
Compare three points to decide whether the the two arcs are the same or not. We can do a throughout comparsion, but it would take more time.- Parameters:
 arc- The list of {@see LatLng} objects to see whether the arc exists or notdirection- {@see #STRAIGHT_DIRECTION} or {@see #REVERSE_DIRECTION}- Returns:
 
 
 - 
 
 -