|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rometools.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 |
Object |
clone()
|
boolean |
equals(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 Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic boolean equals(Object obj)
equals in class Objectpublic 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 | |||||||||