|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ascape.model.space.Coordinate
org.ascape.model.space.CoordinateContinuous
org.ascape.model.space.Coordinate1DContinuous
org.ascape.model.space.Coordinate2DContinuous
org.ascape.gis.model.MapCoordinate
public class MapCoordinate
A location on a map
| Field Summary |
|---|
| Fields inherited from class org.ascape.model.space.CoordinateContinuous |
|---|
values |
| Constructor Summary | |
|---|---|
MapCoordinate()
Constructs an instance of MapCoordinate. |
|
MapCoordinate(double lat,
double lon)
Constructs an instance of MapCoordinate. |
|
MapCoordinate(MapCoordinate coordinate)
Constructs an instance of MapCoordinate. |
|
| Method Summary | |
|---|---|
boolean |
equals(MapCoordinate other)
Returns true if two MapCoordinates are equal |
double |
getLatitude()
Gets the latitude for the MapCoordinate object. |
double |
getLongitude()
Gets the longitude for the MapCoordinate object. |
void |
setLatitude(double lat)
Sets latitude for the MapCoordinate object. |
void |
setLatLong(double lat,
double lon)
Sets latLong for the MapCoordinate object. |
void |
setLongitude(double lon)
Sets longitude for the MapCoordinate object. |
java.lang.String |
toString()
Return a String of the Latitude and Longitude of the MapCoordinate |
| Methods inherited from class org.ascape.model.space.Coordinate2DContinuous |
|---|
add, getDistance, getYValue, setYValue |
| Methods inherited from class org.ascape.model.space.Coordinate1DContinuous |
|---|
getValue, getXValue, setValue, setXValue |
| Methods inherited from class org.ascape.model.space.CoordinateContinuous |
|---|
equals, getDimensionCount, getProduct, getValueAtDimension, getValues, setValueAtDimension, setValues |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapCoordinate()
public MapCoordinate(double lat,
double lon)
lat - parameterlon - parameterpublic MapCoordinate(MapCoordinate coordinate)
coordinate - parameter| Method Detail |
|---|
public boolean equals(MapCoordinate other)
other - The other MapCoordinate
public java.lang.String toString()
toString in class Coordinate2DContinuouspublic double getLatitude()
public double getLongitude()
public void setLatLong(double lat,
double lon)
lat - the latLonglon - the latLongpublic void setLatitude(double lat)
lat - the latitudepublic void setLongitude(double lon)
lon - the longitude
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||