public class IlpGeographicPolyline extends IlpGeographicPolyPoints
| Constructor and Description |
|---|
IlpGeographicPolyline(IlpGeographicPosition[] positions)
Creates a new
IlpGeographicPolyline instance, connecting given
points. |
| Modifier and Type | Method and Description |
|---|---|
IlpGeographicPosition |
getFrom()
Returns the starting point of the polyline.
|
int |
getNumberOfPoints()
Returns the number of points in the polyline.
|
IlpGeographicPosition |
getPoint(int index)
Returns a specific point (0 <= index < getNumberOfPoints()).
|
IlpGeographicPosition[] |
getPoints()
Returns the array of points.
|
IlpGeographicPosition |
getPosition(int index)
Deprecated.
Please use
getPoint instead. |
IlpGeographicPosition[] |
getPositions()
Deprecated.
Please use
getPoints instead. |
IlpGeographicPosition |
getTo()
Returns the end point of the polyline.
|
equals, hashCode, setPositions, toStringpublic IlpGeographicPolyline(IlpGeographicPosition[] positions)
IlpGeographicPolyline instance, connecting given
points.positions - A non-empty array of points.public IlpGeographicPosition getFrom()
public IlpGeographicPosition getTo()
public int getNumberOfPoints()
getNumberOfPoints in class IlpGeographicPolyPointspublic IlpGeographicPosition getPoint(int index)
@Deprecated public IlpGeographicPosition getPosition(int index)
getPoint instead.getPosition in class IlpGeographicPolyPointspublic IlpGeographicPosition[] getPoints()
@Deprecated public IlpGeographicPosition[] getPositions()
getPoints instead.getPositions in class IlpGeographicPolyPoints© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.