|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.syndication.feed.module.georss.geometries.PositionList
public class PositionList
A list of geographic positions, latitude, longitude decimal degrees WGS84
Constructor Summary | |
---|---|
PositionList()
Creates a new empty instance of PositionList |
Method Summary | |
---|---|
void |
add(double latitude,
double longitude)
Add a position at the end of the list |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
double |
getLatitude(int pos)
|
double |
getLongitude(int pos)
|
void |
insert(int pos,
double latitude,
double longitude)
Add a position at a given index in the list. |
void |
remove(int pos)
Remove the position at the index, the rest of the list is shifted one place to the "left" |
void |
replace(int pos,
double latitude,
double longitude)
Replace the position at the index with new values |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PositionList()
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int size()
public double getLongitude(int pos)
pos
- position index
public double getLatitude(int pos)
pos
- position index
public void add(double latitude, double longitude)
latitude
- longitude
- public void insert(int pos, double latitude, double longitude)
pos
- position indexlatitude
- longitude
- public void replace(int pos, double latitude, double longitude)
pos
- position indexlatitude
- longitude
- public void remove(int pos)
pos
- position index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |