|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.c5corp.landUse.LandUseMap
public class LandUseMap
This class represents a map of landuse. It implements serialization, but uses the default read and write objects. It is implemented with a 2D array of Coor objects.
Constructor Summary | |
---|---|
LandUseMap(int x,
int y)
Contructor that takes the size of the map as a parameter. |
Method Summary | |
---|---|
int |
getCode(int x,
int y)
Accessor method that returns land code based on the location in the LandUseMap |
int |
getCode(int zone,
int easting,
int northing)
Accessor method that returns land code based on the location in UTM coordinates |
int |
getEasting(int x,
int y)
Accessor method that returns easting based on location in the landUseMap |
int |
getNEcornerX()
returns the associated utm coordinate for the corner |
int |
getNEcornerY()
returns the associated utm coordinate for the corner |
int |
getNorthing(int x,
int y)
Accessor method that returns northing based on location in the landUseMap |
int |
getNWcornerX()
returns the associated utm coordinate for the corner |
int |
getNWcornerY()
returns the associated utm coordinate for the corner |
int |
getSEcornerX()
returns the associated utm coordinate for the corner |
int |
getSEcornerY()
returns the associated utm coordinate for the corner |
int |
getSizeX()
Accessor funtion that returns width of the map in pixels/entries |
int |
getSizeY()
Accessor function that returns height of the map in pixels/entries |
int |
getSWcornerX()
returns the associated utm coordinate for the corner |
int |
getSWcornerY()
returns the associated utm coordinate for the corner |
int |
getZone(int x,
int y)
Accessor method that returns zone based on location in the landUseMap |
void |
printCoor(int x,
int y)
print the coordinates at x,y |
void |
setCorners(int NWn,
int NWe,
int NEn,
int NEe,
int SEn,
int SEe,
int SWn,
int SWe)
Set the corners for this area |
void |
setmyUtmCoordinatePairLandUse(int y,
int x,
int z,
int n,
int e,
int l)
Modifier function that modifies a single Coor in the LandUseMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LandUseMap(int x, int y)
y
- height of the map in pixels/entriesx
- width of the map in pixels/entriesMethod Detail |
---|
public int getCode(int x, int y)
x
- x location in mapy
- y location in map
public int getCode(int zone, int easting, int northing)
zone
- the UTM zoneeasting
- the UTM eastingnorthing
- the UTM northing
public int getZone(int x, int y)
x
- x location in mapy
- y location in map
public int getNorthing(int x, int y)
x
- x location in mapy
- y location in map
public int getEasting(int x, int y)
x
- x location in mapy
- y location in map
public void setmyUtmCoordinatePairLandUse(int y, int x, int z, int n, int e, int l)
y
- y locationx
- x locationz
- zonen
- northinge
- eastingl
- landuse codepublic void setCorners(int NWn, int NWe, int NEn, int NEe, int SEn, int SEe, int SWn, int SWe)
NWn
- utm coordinateNWe
- utm coordinateNEn
- utm coordinateNEe
- utm coordinateSEn
- utm coordinateSEe
- utm coordinateSWn
- utm coordinateSWe
- utm coordinatepublic int getNEcornerX()
public int getNEcornerY()
public int getNWcornerX()
public int getNWcornerY()
public int getSWcornerX()
public int getSWcornerY()
public int getSEcornerX()
public int getSEcornerY()
public int getSizeY()
public int getSizeX()
public void printCoor(int x, int y)
x
- x coordy
- y coord
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |