|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.data.GeoLocationInfo
public class GeoLocationInfo
Holds geo-location information - lat/lon bounding box, image size, etc. This is used to pass information from a chooser into a datasource.
| Constructor Summary | |
|---|---|
GeoLocationInfo()
Parameterless constructor for xml encoding. |
|
GeoLocationInfo(double maxLat,
double minLon,
double minLat,
double maxLon)
Create a new GeoLocation |
|
GeoLocationInfo(GeoLocationInfo that)
copy ctor |
|
GeoLocationInfo(ucar.unidata.geoloc.LatLonRect llr)
ctor |
|
GeoLocationInfo(Rectangle2D.Float rect)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
equals |
double |
getDegreesX()
Get the number of degrees from one side to the other in the X direction |
double |
getDegreesY()
Get the number of degrees from one side to the other in the Y direction |
ucar.unidata.geoloc.LatLonRect |
getLatLonRect()
Create a LatLonRect from me |
ucar.unidata.geoloc.LatLonPoint |
getLowerRight()
Get lower right point |
double |
getMaxLat()
Get the MaxLat property. |
double |
getMaxLon()
Get the MaxLon property. |
double |
getMinLat()
Get the MinLat property. |
double |
getMinLon()
Get the MinLon property. |
ucar.unidata.geoloc.LatLonPoint |
getUpperLeft()
Get the upper left point |
void |
rectify(GeoLocationInfo that,
double minResolution)
Make sure wew are within the that with the given resolution. |
void |
setMaxLat(double value)
Set the MaxLat property. |
void |
setMaxLon(double value)
Set the MaxLon property. |
void |
setMinLat(double value)
Set the MinLat property. |
void |
setMinLon(double value)
Set the MinLon property. |
void |
snapToGrid()
Snap corners to grid |
String |
toString()
Return a String representation of this |
GeoLocationInfo |
union(GeoLocationInfo that)
Union with the other geolocationinfo |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GeoLocationInfo()
public GeoLocationInfo(GeoLocationInfo that)
that - copy frompublic GeoLocationInfo(Rectangle2D.Float rect)
public GeoLocationInfo(double maxLat,
double minLon,
double minLat,
double maxLon)
maxLat - The latitude of the upper leftminLon - The longitude of the upper leftminLat - The latitude of the lowermaxLon - The longitude of the lower rightpublic GeoLocationInfo(ucar.unidata.geoloc.LatLonRect llr)
llr - The latlonrect to create me from| Method Detail |
|---|
public GeoLocationInfo union(GeoLocationInfo that)
that - object to union with
public ucar.unidata.geoloc.LatLonRect getLatLonRect()
public ucar.unidata.geoloc.LatLonPoint getUpperLeft()
public ucar.unidata.geoloc.LatLonPoint getLowerRight()
public void snapToGrid()
public void rectify(GeoLocationInfo that,
double minResolution)
that - bounds to be withinminResolution - min sizepublic double getDegreesX()
public double getDegreesY()
public void setMaxLat(double value)
value - The new value for MaxLatpublic double getMaxLat()
public void setMinLon(double value)
value - The new value for MinLonpublic double getMinLon()
public void setMinLat(double value)
value - The new value for MinLatpublic double getMinLat()
public void setMaxLon(double value)
value - The new value for MaxLonpublic double getMaxLon()
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - obj
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||