|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.AndrewGray.geoutils.MercatorMap
class defines a notional perfect mercator map with specified
width and height. Used in conjunction with MapPoint to
allow the conversion between mercator x,y coordinates and
LatLongs.
The map supports re-sizing after it it created. Upon any
resize operation all currently defined mappoints are recomputed
based on their LatLong.
MapPoint| Constructor Summary | |
MercatorMap(int w,
int h)
Create a new MercatorMap of the specified width and height. |
|
| Method Summary | |
void |
addMapPoint(MapPoint mp)
Add a new MapPoint to this map |
int |
getHeight()
Get current height of this map |
java.util.Vector |
getMapPoints()
Get the list of MapPoint current defined in this map |
int |
getOx()
get the X origin of this map |
int |
getOy()
get the Y origin of this map |
int |
getWidth()
Get current width of this map |
void |
setHeight(int h)
set the height of this map |
void |
setOx(int x)
set the X origin of this map |
void |
setOy(int y)
set Y origin of this map |
void |
setWidth(int w)
set the width of this map |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MercatorMap(int w,
int h)
w - the width of the maph - the height of the map| Method Detail |
public void addMapPoint(MapPoint mp)
mp - the new MapPoint to addpublic java.util.Vector getMapPoints()
public final void setWidth(int w)
w - the new widthpublic final void setHeight(int h)
h - the new heightpublic final int getWidth()
public final int getHeight()
public final void setOx(int x)
y - the new Y originpublic final void setOy(int y)
y - the new Y originpublic final int getOx()
public final int getOy()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||