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>
allPoints
static int
REVERSE_DIRECTION
static int
STRAIGHT_DIRECTION
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsSamePoints(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()
GeoPoint
getGeoPointAt(int index)
LatLng
getLatLngAt(int index)
int
size()
-
-
-
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:
-
-